Add margin between a RadioButton and its label in Android?

后端 未结 18 1480
春和景丽
春和景丽 2020-12-02 10:43

Is it possible to add a little bit of space between a RadioButton and the label while still using Android\'s built-in components? By default the text looks a little scrunche

18条回答
  •  渐次进展
    2020-12-02 11:43

    You can this code on your XML file

    
    

    or use this on Activity class

    radioButton.setPadding(12, 10, 0, 10);
    

提交回复
热议问题