
다음과 같은 화면이 있습니다. 리니어레이아웃안에 테이블레이아웃으로 구성하였고..
ListView에 layout_span값을 주어서 위 화면의 가로부분을 가득 채우고 싶은데 아무리해도
안되네요.. 작성한 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:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:text="Top 50"
android:textSize="35sp"/>
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp" >
<View
android:layout_width="match_parent"
android:background="#999999"
android:layout_height="1dp"/>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginLeft="1dp"
android:gravity="center"
android:padding="3dp"
android:layout_weight="1"
android:text="순위" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginLeft="1dp"
android:padding="3dp"
android:layout_weight="1"
android:gravity="center"
android:text="ID"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginLeft="1dp"
android:padding="3dp"
android:layout_weight="1"
android:gravity="center"
android:text="점수"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginLeft="1dp"
android:gravity="center"
android:padding="3dp"
android:layout_weight="1"
android:text="날짜" />
</TableRow>
<View
android:layout_width="match_parent"
android:background="#999999"
android:layout_height="1dp"/>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ListView
android:id="@+id/TopList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_span ="4" >
</ListView>
</TableRow>
</TableLayout>
</LinearLayout>
ListView를 4개의 컬럼너비만큼 차지하게 하려면 어떻게 해야할까요...