I need to show 6 listview in linear layout. East listview should show all the items without scroll bar.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#e2e2e2"
android:id="@+id/ll"
>
<TableLayout
android:id = "@+id/headertable"
android:background="@drawable/header"
android:layout_height="wrap_content"
android:layout_width="fill_parent">
<TextView
android:id="@+id/mybooktitle"
android:text="My Books"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textColor = "#ffffffff"
android:textSize = "24dp"
android:textStyle = "bold"
android:gravity ="center"
/>
</TableLayout>
<TableLayout
android:id = "@+id/contenttable"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_marginTop="10dp"
android:layout_marginLeft="9dp"
android:layout_marginRight="9dp"
android:layout_marginBottom="10dp"
>
<TableRow>
<TextView android:id="@+id/currentrentals"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
></TextView>
</TableRow>
<TableRow>
<ListView
android:id="@+id/mybooksList"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:scrollbars="none"
></ListView>
</TableRow>
</TableLayout>
</LinearLayout>
Is there anyway to do it.
I read some where to add items directly to linearlayout but linearlayout donot support adapters.