Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/210.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 当WindowsOfInputMode为adjustPan时,如何使ScrollView可滚动?_Android_Scrollview_Bottomnavigationview - Fatal编程技术网

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
谢谢,但没有帮助。