이클립스에서는 모두보기에는 좋지만 줄과 목록보기 사이의 장치에는 큰 거리가 있습니다. 목록과 행 사이의 거리를 제거하는 방법은 무엇입니까? 다음은 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>
!
감사합니다! 넌 나를 구했다. –
행복하게 도와 드릴 수 있습니다. – Harsha