danhc
danhc

Reputation: 21

make my form in Android goes up when keyboard appear

I'm having a problem with my login form, it consists of username, password, and submit button. But when I touch my username EditText, the keyboard shows and it covers up my password and submit button.

Then I change my manifest to

android:windowSoftInputMode="adjustResize|stateHidden"

The whole form is now goes up, but my layout becomes resized and it doesn't look good. So, can I control how much my layout will go up, when I use adjustPan?

Upvotes: 2

Views: 1090

Answers (1)

Hanry
Hanry

Reputation: 5531

Try setting android:layout_weight="1" for the all the texts and buttons used..It may work.

Upvotes: 2

Related Questions