Я пытаюсь реализовать следующее:
Пожалуйста, проверьте изображение здесь:
![enter image description here](https://i.stack.imgur.com/w0WGn.jpg)
Проблема заключается в том, что пользователь нажимает на поле «Создать сообщение». Edittext, кнопки отправки / сохранения / отмены скрыты программной клавиатурой.
Есть идеи, как сделать эти кнопки всегда видимыми?Спасибо.
[EDIT] Наконец-то все решено! Пришлось использовать Linearlayout вместо RelativeLayout и назначить правильный параметр layout_weight.Большое спасибо Femi за указание на то, что кнопки должны находиться за пределами ScrollView.
Вот окончательный рабочий макет XML на случай, если кто-то посчитает его полезным:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"><ScrollView android:layout_alignParentTop="true"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/InnerRelativeLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<EditText
android:id="@+id/editTextCompose"
android:layout_width="fill_parent"
android:layout_height="200dp"
android:gravity="top"
android:singleLine="false" android:lines="5"
android:inputType="text"
android:layout_below="@+id/editTextSubject"
>
</EditText>
</RelativeLayout>
</ScrollView><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></LinearLayout>