<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="bottom|top"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@color/background_bottom_bar"
>
<TextView
android:text="Header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
<GridView
android:id="@+id/gridview_practioner"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:columnWidth="90dp"
android:horizontalSpacing="10dp"
android:numColumns="5"
android:layout_weight="1"
android:stretchMode="columnWidth"
android:verticalSpacing="10dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:text="Footer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/background_bottom_bar"
android:layout_gravity="bottom"/>
</LinearLayout>
</LinearLayout>
Note :
here if you are using listview or gridview , you have to give listview or gridview weight =1.
No comments:
Post a Comment