This is done by changing the paddingLeft attribute to RadioButton . The default addition is enough for the button to clear the text, as shown in the first image. I would start with android:paddingLeft="0dp" , which will put the button on top of the text and conduct an experiment from there.
<RadioButton android:id="@+id/radioButtonHello" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello!" android:paddingLeft="0dp"/>
user901309
source share