Java listview可滚动的问题

Java listview可滚动的问题,java,android,listview,Java,Android,Listview,我不知道为什么我的列表视图不能完全滚动 我还向您展示了关于适配器XML的single list view item.XML,我将该项放在我的列表视图的每一行中,希望您能帮助我 谢谢大家 我给你看照片 这是.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_wi

我不知道为什么我的列表视图不能完全滚动

我还向您展示了关于适配器XML的single list view item.XML,我将该项放在我的
列表视图的每一行中,希望您能帮助我

谢谢大家

我给你看照片

这是.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/a"
    android:layout_marginLeft="5dp"
    android:background="@color/white"


    >

 <ListView
        android:id="@+id/listview"
       android:layout_marginTop="0dp"

       android:layout_width="fill_parent"
       android:layout_height="match_parent">

    </ListView>

    </LinearLayout>

single_listview_item.XML


在适配器的xml、RelativeLayout标记中,编写匹配父项的wrap\u content replace,如下所示

 android:layout_height="wrap_content"

将您的
单个列表视图\u项.XML
RelativeLayout
android:layout\u height=“match\u parent”
更改为
android:layout\u height=“wrap\u content”


列表视图的高度也更改为
包装内容

适配器的高度是多少xml@VishalVaishnav如果我只选中1个复选框,则我更新了代码显示适配器代码以减少xmlok中的填充,但如果我选中2个复选框,则我有相同的问题
 android:layout_height="wrap_content"