我用于报告布局的 xml :
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background"
android:orientation="vertical" >
<ListView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</ListView>
<TextView
android:id="@+id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/main_no_items"/>
</LinearLayout>
正如您在图像中看到的,列表项之间存在不必要的距离。我尽一切努力使列表项之间的距离最小化,但它永远不会减少:(我希望两个项目之间没有间隙。请指导我如何在一个列表项之后获得下一个项目,除了分区线之外没有间隙。