I make App which uses Listview
main_acivity.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/common_bg_common"
tools:context=".MainActivity" >
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="#000000"
android:dividerHeight="3sp" >
</ListView>
</RelativeLayout>
and costomItem is below
costomo_cell.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF" >
<LinearLayout
android:id="@+id/linear1"
android:layout_width="match_parent"
android:layout_height="300dp"
android:layout_alignParentTop="true"
android:background="#cc9933"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical|center_horizontal"
android:text="dummyCanvas"
android:textColor="#000000" />
</LinearLayout>
<LinearLayout
android:id="@+id/linear2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/linear1"
android:background="#cc3333"
android:orientation="vertical" >
<TextView
android:id="@+id/_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000000"/>
</LinearLayout>
</RelativeLayout>
Now,I want to fill Screen by One Item. I have think to write match_parent in custom_cell.xml,but cant.
I dont want to write xxdp. Linear1 is 2/3 size in screen size. other content (linear2) is 1/3 size...
How I configure Custom cell layout?
--------edited---
I upload scrennshot.
black line is one Item separete.
I want to adjust on Screen Size