用软键盘的Android顺动编辑文本 [英] moving edit text along with soft keyboard android
问题描述
我有我的应用程序的评论编辑文本。编辑文本是在屏幕的底部对齐。当编辑文本的重点是我想用软键盘单独移动编辑文本无类似注释编辑框在Facebook的布局变化等观点。我在清单尝试adjustpan但它会将所有的意见与软键盘。 adjustresize清单中隐藏了一些view.please提供建议。
I am having an comment edit text in my application. The edit text is aligned at the bottom of the screen. when edit text is focused i want to move edit text alone with soft keyboard without changing other views in layout similar to comment edit box in facebook. I tried adjustpan in manifest but it moves all views up with soft keyboard. adjustresize in manifest hides some view.please provide suggestions.
推荐答案
添加
安卓windowSoftInputMode =adjustPan
android:windowSoftInputMode="adjustPan"
在您的AndroidManifest文件(在活动属性)
in your AndroidManifest file (in activity property)
这篇关于用软键盘的Android顺动编辑文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!