Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.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 ListView不滚动_Android_Android Listview - Fatal编程技术网

android ListView不滚动

android ListView不滚动,android,android-listview,Android,Android Listview,我的布局中的ListView有问题,无法滚动。 我已经用自定义适配器填充了它,但填充后列表视图不会滚动,并且被锁定。 我怎样才能修好它? 我真的很感谢你的帮助。 我的Listview部分的xml代码如下所示: <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="4"

我的布局中的ListView有问题,无法滚动。 我已经用自定义适配器填充了它,但填充后列表视图不会滚动,并且被锁定。 我怎样才能修好它? 我真的很感谢你的帮助。 我的Listview部分的xml代码如下所示:

<LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="4"
          android:orientation="vertical" >

          <ListView
              android:id="@+id/lvDownloads"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content" >
          </ListView>

</LinearLayout>

关于

尝试将ListView高度设置为与父项匹配,而不是包装内容ListView中是否有足够的项目使其可滚动?我将其更改为与父项匹配,但它不再工作!!是的,我有足够的项目,其余项目不在屏幕上更改线性布局高度以匹配父项。