android ListView不滚动
我的布局中的ListView有问题,无法滚动。 我已经用自定义适配器填充了它,但填充后列表视图不会滚动,并且被锁定。 我怎样才能修好它? 我真的很感谢你的帮助。 我的Listview部分的xml代码如下所示: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"
<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中是否有足够的项目使其可滚动?我将其更改为与父项匹配,但它不再工作!!是的,我有足够的项目,其余项目不在屏幕上更改线性布局高度以匹配父项。