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?
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?