El teclado suave de Android estropea el diseño cuando aparece
Aquí hay un diseño:
<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>
Quiero que la barra azul permanezca intacta cuando se toca EditText y aparece el teclado virtual. Es decir. Quiero que su tamaño y posición sean preservados. Probé los cuatro valores posibles para el parámetro de mi actividad.android:windowSoftInputMode
En el AndroidManifest. Y siempre mi barra azul se mueve o se encoge en el teclado suave que aparece:
android:windowSoftInputMode="adjustUnspecified"
o por defecto:
android:windowSoftInputMode="adjustPan"
oandroid:windowSoftInputMode="adjustNothing"
:
android:windowSoftInputMode="adjustResize"
:
¿Es posible mantener el mismo tamaño y posición cuando aparece la tecla programable?