Activity isn't resizing when keyboard is shown

六月ゝ 毕业季﹏ 提交于 2019-11-28 13:53:07

Put the following lines in your onCreate()

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);

Then your Activity will automatically push up/down when , Key Board shown/hide in screen.

Setting up with , Manifest file , didn't work for me.

Put your form inside ScrollView. So that when keyboard pop-out, your components are able to scroll.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!