Wednesday, April 9, 2014

Why did not setMargin property RadioButton


activity in the property RadioButton has setpadding Why did not setMargin property? I'm going crazy
Setpadding background with the words of a very vague on the stretch I do not stretch ah ah I want to set its margin
And xml can be directly layout_marginLeft activity in such settings Why not? ?

Now is such a case five RadioButton horizontally arranged in a RadioGroup in
However, the effect of different mobile phone is not the same resolution in a large empty out a chunk of the right I would like to set the outside activity such spacing RadioButton RadioButton in each background image according to the resolution will not be stretched

beginners do not spray thank Andrew
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Has this property
setLayoutParams
Inside this parameter depends on your parent layout type
RadioButtonSee below
http://blog.csdn.net/mirage520/article/details/7049660

PS: cat avatar good
Reply:
With RadioGroup.LayoutParams (int w, int h) to set the width and height of the RadioButton. The width of your own definition, highly set WRAP_CONTENT.
Reply:
I am very grateful for the first time in the second floor ah csdn ask questions answered so well too thanks

No comments:

Post a Comment