I use the Sherlock tabs and therefore have fragment activity for the tab. Unfortunately, when the keyboard appears, the following happens:

The keyboard overlaps the two buttons directly below the third text box. However, I want the two buttons to display when the keyboard is open.
I tried a couple of things:
- Added
android:windowSoftInputMode="adjustResize" , as well as android:windowSoftInputMode="adjustPan" in the action that contains these three tabs - An illustrated fragment of a scroll tab is wrapped, which partially works, allowing you to scroll the screen to view two buttons
This is the XML for the snippet:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#EBEBEB" android:orientation="vertical" > <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="20dp" android:layout_weight="1" android:gravity="right" > <EditText android:id="@+id/TextBox" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#ffffff" android:height="50dp" android:hint="@string/BoxHint" android:paddingLeft="15dp" > </EditText> <TextView android:id="@+id/LocBoxHint" android:layout_width="50dp" android:layout_height="50dp" android:layout_below="@+id/TextBox" android:background="#ffffff" android:gravity="center" android:padding="10dp" android:text="\@" android:textSize="22dp" /> <EditText android:id="@+id/LocBox" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_below="@+id/TextBox" android:layout_toRightOf="@+id/LocBoxHint" android:background="#ffffff" android:hint="Joey's Pizza" > </EditText> <TextView android:id="@+id/DateTimeBoxHint" android:layout_width="50dp" android:layout_height="50dp" android:layout_below="@+id/LocBoxHint" android:background="#ffffff" android:gravity="center" android:padding="10dp" android:text="#" android:textSize="22dp" /> <EditText android:id="@+id/DateTimeBox" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_below="@+id/LocBox" android:layout_toRightOf="@+id/DateTimeBoxHint" android:background="#ffffff" android:hint="Friday 8pm" android:paddingRight="60dp" android:layout_marginBottom="50dp" /> <ImageButton android:id="@+id/DateTimePicker" android:layout_width="50dp" android:layout_height="50dp" android:layout_alignParentRight="true" android:layout_below="@+id/LocBox" android:onClick="dateTimeButton" android:src="@drawable/ic_menu_today" android:background="#ffffff" /> <LinearLayout android:layout_width="fill_parent" android:layout_height="50dp" android:layout_below="@+id/DateTimeBox" android:orientation="horizontal" android:layout_marginTop="-50dp" > <Button android:id="@+id/infoButton" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_weight="5" android:onClick="infoButton" android:text="i" android:textColor="#ffffff" /> <Button android:id="@+id/Button" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_weight="2" android:onClick="planButton" android:text="@string/Button" android:textColor="#ffffff" /> </LinearLayout> </RelativeLayout> </LinearLayout>
Any thoughts?
source share