I know we can set the following values to the android:gravity
and android:layout_gravity
properties:
Something I saw on Sandip's blog that I almost missed, fixed my problem. He said layout_gravity
DOES NOT WORK WITH LinearLayout
.
If you're using a LinearLayout
and the gravity settings are driving you nuts (like me), then switch to something else.
I actually switched to a RelativeLayout
then used layout_alignParentLeft
and layout_alignParentRight
on the 2 contained TextView
s to get them on one line to go far left and far right.