Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@granoeste
Forked from aharisu/gist:857961
Created March 7, 2011 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save granoeste/858063 to your computer and use it in GitHub Desktop.
Save granoeste/858063 to your computer and use it in GitHub Desktop.
[Android][Layout] Tab on the bottom with TabView
<?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"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dip"
>
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
/>
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@android:id/tabs"
>
</FrameLayout>
</RelativeLayout>
</TabHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment