android - windowSoftInputMode为adjustPan时如何使ScrollView可滚动?
问题描述
我BottomNavigationView
在我的活动中使用。当键盘打开并且windowSoftInputMode
不是时 adjustPan
,BottomNavigationView
显示在键盘上。这就是为什么我设置windowSoftInputMode
为adjustPan
. 但是,现在,我ScrollView
的不可滚动。当我更改windowSoftInputMode
为 时adjustResize
,ScrollView
工作正常。以下结构是可滚动的,当windowSoftInputMode
设置为时adjustResize
,但不可滚动,如果adjustPan
设置:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Other stuff -->
</android.support.constraint.ConstraintLayout>
</ScrollView>
ScrollView
用作根视图。那么,如何解决这个问题呢?
解决方案
推荐阅读
- arrays - 动态数组中的删除操作
- javascript - 我将如何打开一个在打开时不聚焦的新窗口
- c# - 取消关闭窗口的任务。如何检测任务是否同步返回?
- html - 如何使用 PrimeNG 在标题中显示保存的过滤器?
- typo3-8.x - TYPO3 表 tx_realurl_pathcache 不存在
- python - 在谷歌应用引擎和 ndb 数据存储中从 python2.7 升级到 python3.7
- rest - 通过 SAP Business ByDesign 上的 API 更新由客户支付的供应商发票
- linux - Linux中从.xls到csv的数据格式问题
- azure - 尝试将文件上传到 Azure 上的自定义视觉时,我不断收到未经授权的访问错误
- ios - 为什么可观察对象中的更新变量不会更新视图?