Wednesday, March 16, 2011

How to avoid the on-screen keyboard from covering the EditText in android

whenever I click on the EditText, the screen readjusts and the edittext-view moves up. But this is not enough and the soft-keyboard still covers the view to not show what a user typing.

My layout is as follows:

A listview occupying 65% of screen height, followed by an editetxt view and a button

LISTVIEW


______________________________
EDITTEXT              |BUTTON 
______________________________

My activity has the following flag set android:windowSoftInputMode="stateAlwaysHidden|adjustPan"

From stackoverflow

0 comments:

Post a Comment