Android Adjustpan funktioniert nach dem ersten Mal nicht

Mein Problem: Ab dem zweiten Mal, wenn die Software-Tastatur auf dem Bildschirm angezeigt wird, wird mein EditText vollständig ausgeblendet.

Attribut android: windowSoftInputMode = "adjustPan" wurde in der AndroidManifest.xml angegeben, funktioniert aber nur beim ersten Mal.

Ich habe folgendes Layout:

 <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="464dp"
        android:gravity="top"
        android:orientation="vertical"
        android:paddingLeft="16dp"
        android:paddingRight="16dp" >

        <ListView
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="10"
            android:background="#E3E3E2"
            android:gravity="top" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal" >

            <EditText
                android:id="@+id/addListText"
                android:layout_width="0dp"
                android:layout_height="48dp"
                android:layout_weight="10"
                android:contentDescription="@string/addItemContentDescription"
                android:gravity="bottom|center_horizontal"
                android:inputType="textLongMessage"
                android:textColor="#E3E3E2"
                android:visibility="gone" />

            <ImageButton
                android:id="@+id/addTextListButton"
                android:layout_width="0dp"
                android:layout_height="48dp"
                android:layout_weight="1"
                android:layout_gravity="right"
                android:background="@android:color/transparent"
                android:contentDescription="@string/addItemButton"
                android:scaleType="fitCenter"
                android:src="@drawable/plus_add"
                android:visibility="gone" />
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="fill_parent"
        android:gravity="bottom|center_horizontal"
        android:orientation="horizontal"
        android:paddingLeft="16dp"
        android:paddingRight="16dp" >

        <ImageButton
            android:id="@+id/syncListsButton"
            android:layout_width="64dp"
            android:layout_height="match_parent"
            android:src="@android:drawable/ic_popup_sync" />

        <ImageButton
            android:id="@+id/showOrHide"
            android:layout_width="64dp"
            android:layout_height="match_parent" />

        <ImageButton
            android:id="@+id/delListButton"
            android:layout_width="64dp"
            android:layout_height="match_parent"
            android:src="@android:drawable/ic_menu_delete" />
    </LinearLayout>
</LinearLayout>

Die Schaltfläche "showOrHide" zeigt / versteckt die Kombination "addListText" / "addTextListButton".

Wenn der EditText zum ersten Mal angezeigt wird und ich ihn berühre, wird die Bildschirmtastatur angezeigt und die Kombination "addListText" / "addTextListButton" wird korrekt verschoben. Wenn ich die Tastatur verstecke und dann wieder einblende, verdeckt die Tastatur meine addListText-Editbox vollständig!

Irgendeine Idee, was los ist? Ich teste es auf Android 4.2.2.

Bitte helfen Sie! Vielen Dank :-)

bearbeiten: Ich habe auch versucht, das erste LinearLayout in eine ScrollView einzufügen, aber es funktioniert nicht!

Antworten auf die Frage(8)

Ihre Antwort auf die Frage