开发者

make my form in Android goes up when keyboard appear

开发者 https://www.devze.com 2023-02-18 08:36 出处:网络
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

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

精彩评论

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