Układ psich klawiatury androida kiedy się pojawi

Oto układ:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_weight="1" />

        <FrameLayout
            android:background="#0000ff"
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_weight="1" />

        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_weight="1" />

    </LinearLayout>

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true" />

</RelativeLayout>

Chcę, aby niebieski pasek pozostawał nienaruszony po dotknięciu EditText i wyświetleniu miękkiej klawiatury. To znaczy. Chcę, aby jego rozmiar i pozycja zostały zachowane. Wypróbowałem wszystkie cztery możliwe wartości parametru mojej aktywnościandroid:windowSoftInputMode w AndroidManifest. I zawsze mój niebieski pasek przesuwa się lub kurczy na miękkiej klawiaturze:

android:windowSoftInputMode="adjustUnspecified" lub domyślnie:

android:windowSoftInputMode="adjustPan" lubandroid:windowSoftInputMode="adjustNothing":

android:windowSoftInputMode="adjustResize":

Czy zawsze jest możliwe zachowanie tego samego rozmiaru i pozycji, gdy pojawia się miękki keyb?

questionAnswers(3)

yourAnswerToTheQuestion