make my form in Android goes up when keyboard appe

2019-02-26 01:51发布

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?

1条回答
叼着烟拽天下
2楼-- · 2019-02-26 02:52

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

查看更多
登录 后发表回答