开发者

Edit text hides behind on-screen keyboard

开发者_StackOverflow社区

How can i keep my edit text floating above the on screen keyboard?


You will have to write your activity's layout to adapt into the smaller room you will have when keyboard is up. That can be done for example including a ScrollView in your design.

Additionally, you will have to add following into your Activity's definition in the manifest file:

android:windowSoftInputMode="adjustResize"

Now the activity's view will resize when keyboard is visible.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜