开发者

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 an开发者_StackOverflowd it doesn't look good. So, can I control how much my layout will go up, when I use adjustPan?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜