tags:

views:

136

answers:

1

friends,

i am using following layout and tring to enter text and then saving the data but facing one problem when i click on EditText to type something.

keyboard appears and covers half of layout of EditText and button. but when i type in it it shows completely.before typing in it keyboard covers half of Edittext layout.

can any one guide me how to show whole textbox with button after appearence of keyboard?

any help would be appriciated.

<LinearLayout
 android:layout_width="fill_parent"
 android:id="@+id/LayoutReply"
          android:layout_height="wrap_content"
          android:background="#ffcc33"
           android:layout_alignParentBottom="true"
                 android:paddingBottom="50px"
                  android:orientation="horizontal"  

>

    <EditText 
         android:id="@+id/txtMessage"
        android:hint="Please enter text to reply!"
         android:layout_width="wrap_content"
         android:maxLength="160"
        android:layout_height="wrap_content"

        ></EditText>
    <Button android:layout_height="wrap_content" android:id="@+id/btnPostReply"
        android:layout_width="wrap_content"
        android:text="@string/Message_Reply"></Button>


    </LinearLayout>
A: 

Read http://developer.android.com/resources/articles/on-screen-inputs.html and then experiment with the android:windowSoftInputMode values to get what you want.

CommonsWare