Привет У меня есть xml-макет, в котором у меня две кнопки внизу родительского макета. Здесь всякий раз, когда открывается мягкая клавиатура, эти кнопки скрыты, поэтому мне нужно нажать кнопку выше с помощью клавиатуры. Я разместил свой xml-макет здесь, пожалуйста, обратитесь к нему и помогите мне в достижении этого.Нажать линейную компоновку с помощью мягкой клавиатуры
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:isScrollContainer="false">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/view1"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/leftPane"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3">
<ListView
android:id="@+id/Left_listView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#0A2F41"
android:duplicateParentState="true"
android:fadingEdge="vertical"
android:gravity="center"
android:listSelector="#335E73"
android:scrollbars="none"
android:smoothScrollbar="true"
android:soundEffectsEnabled="true" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rightPane"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="5">
<EditText
android:id="@+id/searchkeyword_editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableRight="@drawable/icon_close"
android:hint="Search"
android:inputType="textNoSuggestions"
android:maxLines="1"
android:paddingRight="10dp" />
<ListView
android:id="@+id/right_listView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/searchkeyword_editText"
android:fadingEdge="vertical"
android:gravity="center"
android:scrollbars="none"
android:smoothScrollbar="true"
android:soundEffectsEnabled="true" />
</RelativeLayout>
</LinearLayout>
<View
android:id="@+id/view1"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_above="@+id/bottom_linearLayout"
android:background="#000"
android:visibility="visible" />
<LinearLayout
android:id="@+id/bottom_linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:visibility="visible">
<TextView
android:id="@+id/cancel_textView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:padding="12dp"
android:text="Cancel"
android:textSize="15sp" />
<View
android:layout_width="0.5dp"
android:layout_height="match_parent"
android:background="#000" />
<TextView
android:id="@+id/apply_textView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#02B5CC"
android:gravity="center"
android:padding="12dp"
android:text="Apply"
android:textColor="#fff"
android:textSize="15sp"
android:visibility="visible" />
</LinearLayout>
</RelativeLayout>
Также в моем манифесте я добавил нижнюю строку для достижения вышеуказанного действия.
android:windowSoftInputMode="stateVisible|adjustResize"
Я хотел бы иметь что-то вроде this.
Я извиняюсь, это не сработало. Спасибо за вашу попытку. –