How to keep all fields and texts visible while the soft keyboard is displayed

I work on this login screen and I want all fields, texts and buttons to change when the IME is displayed. I already used android: windowSoftInputMode = "adjustResize" on androidManifest.xml, but I still get some elements under others.

I don’t care if the TextView Agora Cadastre (id = cadastrar) remains a virtual keyboard. But, while there are a few elements, I'm trying to make at least EditTexts (and their TextViews) and the button visible.

I found this unanswered question that might be interesting: http://stackoverflow.com/questions/6484024/soft-keyboard-keep-one-view- stationary-while-moving-other

thanks for the help!

Screen without IME: http://imageshack.us/photo/my-images/138/semttulo2mr.png/

Screen with IME (TextView1 becomes hidden): http://imageshack.us/photo/my-images/404/semttulo3xw.png/

Stackoverflow complains about my code formatting, so I uploaded the xml file here: https://rapidshare.com/files/1767398103/login.xml And I can’t post more than two links, so I put spaces in them.

+3
source share
1 answer

, ( ) . , , , , . .

, .

:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width = "fill_parent"
    android:layout_height = "fill_parent"
    android:orientation="vertical"
    >
    <Space 
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:layout_weight="1">
        <!-- Username Controls here -->
    <Space 
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:layout_weight="1">
        <!-- Password Controls here -->
    <Space 
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:layout_weight="1">
        <!-- Login Button here -->
    <Space 
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:layout_weight="1">
        <!-- TextView here -->
    <Space 
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:layout_weight="1">
</LinearLayout>

, .

+2

All Articles