When I use a RelativeLayout
with either fill_parent
or wrap_content
as height and an element which specifies: android:layout_alignPa
This seems to be a bug in Android itself, see http://code.google.com/p/android/issues/detail?id=1394.
I worked around it by wrapping my RelativeLayout
in a FrameLayout
and putting my bottom aligned view as a children of the FrameLayout
with android:layout_gravity="bottom"
. This hinders you from referencing it from within the RelativeLayout
so you'll have to work around that (for example using margins).
If anyone has a better workaround, please share.