开发者

Textfield to scroll up automatically above virtual keyboard

开发者 https://www.devze.com 2023-04-06 00:03 出处:网络
The issue that I face in my bblwuit app is this: I have a textfield, when clicking on it the virtual keyboard opens, which is fine.However, the text field is hidden behind the keyboard.How do I make

The issue that I face in my bblwuit app is this:

I have a textfield, when clicking on it the virtual keyboard opens, which is fine. However, the text field is hidden behind the keyboard. How do I make the screen scroll auto开发者_如何学编程matically so that the textfield is visible above the virtual keyboard?

Thanks


Use code like this

VerticalFieldManager vfm=new VerticalFieldManager(VERTICAL_SCROLL);
BasicEditField bef=new BasicEditField();
vfm.add(bef);
add(vfm);
0

精彩评论

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

关注公众号