How can I set layout_gravity programmatically?
I need to set position of a button LEFT or CENTER or RIGHT in a particular layout, I used the myButton.setGravity(Gravity.LEFT); but, it sets the gravity of button's text.
How can I set layout_gravity programmatically?
I need to set position of a button LEFT or CENTER or RIGHT in a particular layout, I used the myButton.setGravity(Gravity.LEFT); but, it sets the gravity of button's text.