开发者

Android - What is the best way to avoid hiding EditText under Soft Keyboard

I have Activity with root 开发者_开发问答LinearLayout. I set some of the components weight to "1" to fill the gap. Now the problem is, Some EditText are hide under the Soft Keypad while typing. And I can't disable my keypad because, there are no hard keypad. How can I avoid such situation? Any suggestion?


You can use ScrollView to avoid this.


Normally under these situations, you can put everything that should be visible while typing, under a ScrollView this way, when keyboard pops up, Android automatically scrolls (and keeps scrolling as needed) all the content above keyboard, so that user never loses sight of the control where he/she has to type.


I found the correct solution for my problem.

Here is the helping page - http://developer.android.com/resources/articles/on-screen-inputs.html

Thanks everyone for replying.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜