What you need to do is have this LinearLayout that you placed inside the RelativeLayout. The relative layout preferably matches your root location with fill_parent for height, as it should reach the bottom.
then add this to your LinearLayout instead of gravity:
android:layout_centerHorizontal="true" android:layout_alignParentBottom="true"
Example:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:layout_height="wrap_content" android:background="@color/black" android:id="@+id/ll_bookmarkslistad" android:layout_width="fill_parent" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" > </LinearLayout> </RelativeLayout>
Tapirboy
source share