Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/224.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_Expandablelistview - Fatal编程技术网

Android:可扩展ListView组之间的空间

Android:可扩展ListView组之间的空间,android,expandablelistview,Android,Expandablelistview,如何在可展开的listview组之间添加额外的空间,如下图所示,如果没有项目,该空间也应保留 希望这个例子能对你有所帮助 希望这个例子能对你有所帮助 试试这个 <ExpandableListView android:id="@+id/lvExp" android:layout_height="match_parent" android:layout_width="match_parent" android:

如何在
可展开的listview组
之间添加额外的
空间
,如下图所示,如果没有项目,该空间也应保留


希望这个例子能对你有所帮助


希望这个例子能对你有所帮助

试试这个

        <ExpandableListView
        android:id="@+id/lvExp"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:dividerHeight="Your desired height"
        android:divider="Your desired color"/> 

试试这个

        <ExpandableListView
        android:id="@+id/lvExp"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:dividerHeight="Your desired height"
        android:divider="Your desired color"/> 


看到这篇文章,但这不符合我的要求。在xml文件中为父组布局添加边距..我认为这可以解决问题尝试了这一点,但它只增加了第一组的高度看到了这篇文章,但这不符合我的要求。在xml文件中为父组布局添加边距..我认为它可以解决问题尝试了这一点,但它只是增加第一组的高度尝试了这个,但它给了我空间之间的黑色现在该怎么办?@Zahid它还增加了子项之间的间距。我不想要子项之间的分隔高度。我试过了,但它给了我空间之间的黑色。现在该怎么办?@Zahid它还为子项之间添加了边距。我不想要子项之间的分隔高度。