Skip to content

Instantly share code, notes, and snippets.

@nitindhar7
Created January 31, 2012 03:23
Show Gist options
  • Save nitindhar7/1708545 to your computer and use it in GitHub Desktop.
Save nitindhar7/1708545 to your computer and use it in GitHub Desktop.
Tab layout for the tutorial
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:id="@+id/tabcontainer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="48dp"
android:background="#000"
android:gravity="center_horizontal" >
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fadeScrollbars="false"
android:fadingEdge="none"
android:scrollbars="@null" >
</FrameLayout>
</LinearLayout>
</TabHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment