tags:

views:

29

answers:

0

I have added a Button to a view in java code. Basically I want to add the xml

android:layout_gravity="center_horizontal"

to the Button but do this in Java code, how is this done?