Wednesday 2 November 2011

categorylist.xml=>for sub cat


<?xml version="1.0" encoding="utf-8"?>
<TabHost android:layout_width="fill_parent"
android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:layout_width="fill_parent"
android:gravity="center" android:id="@+id/topbar"
android:layout_height="wrap_content" android:layout_gravity="center"
android:background="@drawable/mainheading">
<Button android:layout_width="wrap_content"
android:background="@drawable/back" android:layout_height="wrap_content"
android:layout_margin="5dip" android:id="@+id/back" />
<TextView android:layout_width="fill_parent" android:id="@+id/top_text"
android:textStyle="bold" android:textSize="17sp" android:gravity="center"
android:layout_gravity="center" android:layout_height="wrap_content"
android:layout_alignBottom="@+id/back" android:text="Sub Categories" />
</RelativeLayout>
<RelativeLayout android:layout_width="fill_parent"
android:id="@+id/bottombar" android:layout_height="wrap_content">
<LinearLayout android:id="@+id/layouttab"
android:layout_centerHorizontal="true" android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_alignParentBottom="true">

<!-- Button android:id="@+id/btn1" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:text="btn1" /> <Button android:id="@+id/btn2"
android:layout_height="wrap_content" android:layout_width="wrap_content"
android:text="btn2" /> <Button android:id="@+id/btn3" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:text="btn3" / -->
<TabWidget android:id="@android:id/tabs"
android:layout_height="wrap_content" android:layout_width="wrap_content">
<FrameLayout android:id="@android:id/tabcontent"
android:layout_height="fill_parent" android:layout_width="wrap_content"></FrameLayout>
</TabWidget>
</LinearLayout>
<ListView android:layout_width="fill_parent"
android:focusable="false" android:fadingEdge="none"
android:layout_below="@id/topbar" android:id="@+id/list_category1"
android:layout_height="wrap_content"></ListView>
<ListView android:layout_width="fill_parent"
android:focusable="false" android:fadingEdge="none"
android:layout_below="@id/topbar" android:id="@+id/list_category2"
android:layout_height="wrap_content"></ListView>
</RelativeLayout>
</LinearLayout>
</TabHost>

No comments:

Post a Comment