I have a full screen dialog that has a relative layout that contains a TableLayout. Whenever the soft keyboard is displayed on the screen, it shrinks these buttons. Instead of filling the bottom of the screen, they only fill a third of it. How can I keep the size of the buttons the same similar to the Contact app?
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:fitsSystemWindows="true" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TableLayout android:id="@+id/recipeButtons" android:background="#B0B0B0" android:padding="3dip" android:stretchColumns="0,1" android:layout_alignParentBottom="true" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TableRow android:gravity="center"> <Button android:id="@+id/editOtherAdditionButton" android:text="Save" /> <Button android:id="@+id/removeOtherAdditionButton" android:text="Delete" /> </TableRow> </TableLayout> <ScrollView android:layout_alignParentTop="true" android:layout_marginBottom="55dip" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="3dip" android:stretchColumns="0,1"> <TableRow android:gravity="center" android:background="#382E17"> <TextView android:text="@string/app_name" android:textSize="16dip" android:typeface="sans" android:layout_span="2" android:textStyle="bold" android:gravity="center" android:layout_width="fill_parent" android:textColor="@color/text_color" /> </TableRow> <TableRow android:gravity="center"> <TextView android:text="Edit Other" android:textSize="30dip" android:typeface="sans" android:layout_span="2" android:layout_width="fill_parent" android:textColor="@color/ text_color" /> </TableRow> <TableRow android:gravity="center"> <TextView android:text="Name:" android:textColor="@color/ text_color" android:textSize="16dip" android:textStyle="bold" /> <Spinner android:id="@+id/addOtherNameSpinner" android:layout_width="200dip" /> </TableRow> <TableRow android:gravity="center"> <TextView android:text="Amount:" android:textColor="@color/ text_color" android:textSize="16dip" android:textStyle="bold" /> <EditText android:id="@+id/addOtherAmount" android:gravity="top" android:inputType="numberDecimal" android:layout_width="200dip" / > </TableRow> <TableRow android:gravity="center"> <TextView android:text="When:" android:textColor="@color/ text_color" android:textSize="16dip" android:textStyle="bold" /> <Spinner android:id="@+id/addOtherNameSpinner" android:layout_width="200dip" /> </TableRow> </TableLayout> </ScrollView> </RelativeLayout> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en