Hi the following is my layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#aaaaaa"
android:id="@+id/mainLayout"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_marginTop="55dp"
android:layout_height="wrap_content"
android:gravity="top">
<include layout="@layout/search_bar"/>
</LinearLayout>
<android.support.v4.view.ViewPager
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="fill_parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_gravity="bottom"
android:orientation="horizontal"
android:layout_height="50dp"
android:background="#eeeeee"
android:gravity="bottom">
<ImageButton
android:id="@+id/ImageButton1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginLeft="1dip"
android:layout_marginRight="1dip"
android:src="@drawable/appdrawer" />
</LinearLayout>
</LinearLayout>
The ImageButton is shown at the bottom when the layout is opened, but when I put the focus on the SearchBox, the keyboard opens and the ImageButton is pushed upwards. How can I make the ImageButton stay as the footer.