I want to create a layout that will have n numbers of textview
on the left side and have listView
on the right side .And the top of right side have above listview
i need to have to buttons .Something like this :
|Button1||Button2|
-------------------
|TEXTView|ListView |
|TEXTView| |
|TEXTView| |
|TEXTView| |
|TEXTView| |
I tried something like this but it is not working for me
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:orientation="horizontal" >
<Button
android:id="@+id/btnClear"
android:layout_width="90dp"
android:layout_height="50dp"
android:layout_gravity="right|center"
android:gravity="right|center"
android:text="Clear" />
<Button
android:id="@+id/btnApply"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|center"
android:gravity="right|center"
android:text="Clear" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/txtBrand"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="Brand" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ListView
android:id="@+id/subCategory"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="6"
android:cacheColorHint="@android:color/transparent"
android:divider="@android:color/transparent"
android:fadingEdge="none" />
</LinearLayout>
</LinearLayout>
Kindly suggest me the changes in this