Android 当WindowsOfInputMode为adjustPan时,如何使ScrollView可滚动?
我在活动中使用Android 当WindowsOfInputMode为adjustPan时,如何使ScrollView可滚动?,android,scrollview,bottomnavigationview,Android,Scrollview,Bottomnavigationview,我在活动中使用BottomNavigationView。当键盘打开且windowsofInputMode为非adjustPan时,底部导航视图将显示在键盘上方。这就是为什么我将windowSoftInputMode设置为adjustPan。但是,现在,我的ScrollView不可滚动。当我将windowsofInputMode更改为adjustResize时,ScrollView工作正常。当windowSoftInputMode设置为adjustResize时,以下结构可滚动,但如果设置了adj
BottomNavigationView
。当键盘打开且windowsofInputMode
为非adjustPan
时,底部导航视图将显示在键盘上方。这就是为什么我将windowSoftInputMode
设置为adjustPan
。但是,现在,我的ScrollView
不可滚动。当我将windowsofInputMode
更改为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
用作根视图。那么,如何解决这个问题呢 尝试在scrollview标签中添加android:isScrollContainer=“false”
,然后使用adjustPan
谢谢,但没有帮助。