在eclipse中所有看起來都不錯,但在行和列表視圖之間的設備上有很大的距離。 如何刪除列表和行之間的距離? 這裏的XML佈局:將行綁定到ListView的末尾
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/gradient"
android:orientation="vertical" >
<TextView
android:id="@+id/reminder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
/>
<View
android:layout_width="match_parent"
android:layout_height="6dp"
android:background="@drawable/line_top"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="18dp"
/>
<ListView
android:id="@+id/mainList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_weight="0.91"
>
</ListView>
<View
android:layout_width="match_parent"
android:layout_height="6dp"
android:background="@drawable/line_bottom"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="18dp"
android:layout_marginBottom="18dp"
/>
</LinearLayout>
!
謝謝!你救了我。 – 2014-10-06 11:55:14
快樂我可以幫助你。 – Harsha 2014-10-06 12:20:32