Oto układ:android miękki układ klawiatury psuje gdy pojawia
<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ę niebieski pasek pozostać nienaruszone podczas EditText dotknięciu i pojawia się klawiatura. To znaczy. Chcę zachować jego wielkość i pozycję. Wypróbowałem wszystkie cztery możliwe wartości parametru mojej aktywności android:windowSoftInputMode
w AndroidManifest. I zawsze moje niebieskie porusza bar lub kurczy w miękkiej klawiatury pojawiają:
android:windowSoftInputMode="adjustUnspecified"
lub domyślnie:
android:windowSoftInputMode="adjustPan"
lub android:windowSoftInputMode="adjustNothing"
:
android:windowSoftInputMode="adjustResize"
:
Czy możliwe jest utrzymanie tego samego rozmiaru i pozycji po pojawieniu się funkcji soft keyb?
Próbowałem z 'adjustNothing' i wydaje się działać na moim urządzeniu (Google Nexus) – fiddler