开发者

How to make a text entry fields move up when on screen keyboard is present

开发者 https://www.devze.com 2023-01-10 07:18 出处:网络
How to m开发者_StackOverflowake a text entry fields move up when on screen keyboard is present?This post on the Android Developer Blog covers several options for dealing with layout issues when an on-

How to m开发者_StackOverflowake a text entry fields move up when on screen keyboard is present?


This post on the Android Developer Blog covers several options for dealing with layout issues when an on-screen input method editor is visible.


Just an idea :

you could use the getHeight() method from inputmethodservice.Keyboard to get the height of the softkeyboard on the screen, and then add a minus margin to your EditeText?

0

精彩评论

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