我有多行EditText
在ScrollView
。当显示键盘时,我需要使整个EditText
可见。现在它重叠显示仅第一行的EditText
的底部部分。 我已经在这里阅读了很多问题,试过adjustPan
/adjustResize
组合等,但没有什么帮助。软键盘重叠多行编辑文本
0
A
回答
0
在AndroidManifest.xml
:
<activity
android:configChanges="orientation|keyboardHidden|screenSize"
android:windowSoftInputMode="adjustResize"
...
windowSoftInputMode
是关键,但我个人发现configChanges
帮助了。
0
一些更多的信息使用您的EditText以下XML代码:
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="10dp"/>
0
放置在顶层滚动型所有的意见,使内容可以滚动当屏幕没有你的身材高大。为了总体布局的目的,假设屏幕的高度不是一个好主意。如果您希望您的内容能够在所有屏幕尺寸和方向以及键盘状态下滚动,请始终使用ScrollView。
3
<EditText
android:id="@+id/et_feedback"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:lines="8"
android:maxLines="10"
android:minLines="6"
android:padding="10dp"
android:gravity="top|left"
android:inputType="textMultiLine"
android:background="@drawable/et_bg"
android:scrollbars="vertical" />
相关问题
- 1. 键盘重叠自定义编辑文本
- 2. 键盘重叠编辑桌面布局上的文本
- 3. 文本编辑键盘
- 4. 软键盘与文本框重叠并使其无法访问
- 5. Android 4.0软键盘重叠EditText
- 6. 软键盘与TabHost中的EditText重叠
- 7. 软键盘和编辑文本的问题
- 8. Android软键盘没有打开编辑文本点击事件
- 9. 编辑文本和软键盘在片段中的问题
- 10. IOS文本框重叠键盘
- 11. Softwindow键盘隐藏编辑文本
- 12. 禁用编辑文本的Swype键盘
- 13. 用键盘编辑UIButton文本
- 14. 听编辑文本当键盘关闭
- 15. Android编辑文本和虚拟键盘
- 16. Android:键盘隐藏编辑文本
- 17. 键盘不显示编辑文本
- 18. 保持工具栏位置锁定布局时,软键盘来了,软键盘下面编辑文本
- 19. 键盘我使用这个XML文件下面的XML文件时,我就EDITTEXT点击键盘重叠编辑文本重叠的EditText
- 20. 在编辑文本中输入文字后无法隐藏软键盘
- 21. 软键盘发行
- 22. 问题与编辑文字和软键盘
- 23. Android键盘重叠的EditText
- 24. 编辑文本框后,软键盘消失的布局下部分不显示
- 25. 如何在编辑文本中选择默认菜单时隐藏软键盘?
- 26. Android:软键盘覆盖编辑文本(调整resize或adjustpan不工作)
- 27. 当编辑文本专注于Genymotion设备时软键盘不会弹出
- 28. 软键盘覆盖文本编辑框...通常的修补程序不工作
- 29. Android studio添加文本来编辑键盘上的文本
- 30. 两个编辑文本在同一行,不重叠
添加有问题的布局。 –