2

enter image description hereI am making my activity in such a way that radio button is at extreme left and its label is at extreme right.I can use a text view beside each radio button to look like that without any label of radio button.But is it possible to break its label and make it to appear at right?

Shahzad Imam
  • 2,030
  • 2
  • 26
  • 45

3 Answers3

2

Sorry to the given answers.I found the answer myself.I have to use only one attribute in the xml file where radio button is described

android:gravity="center|right"
Shahzad Imam
  • 2,030
  • 2
  • 26
  • 45
0

you can try alternet way by a table with 2 column , in one put radio button without text and in another put TextView with the text you want :)

Lucifer
  • 29,392
  • 25
  • 90
  • 143
0

As far as I am aware, the answer is no.

You could however specify the android:paddingLeft to put some space between the radio button and it's label.

According to this thread, it needs to be a value of 50dip or more, as the padding is measured from the left edge of the radio button drawable.

Community
  • 1
  • 1
TheLastBert
  • 466
  • 4
  • 16