Posted By

rottendevice on 06/22/11


Tagged

tabs android tabwidget tabhost


Versions (?)

Android - Tabs on the bottom


 / Published in: XML
 

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@android:id/tabhost"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. android:background="#FFF">
  7. <LinearLayout
  8. android:orientation="vertical"
  9. android:layout_width="fill_parent"
  10. android:layout_height="fill_parent">
  11. <FrameLayout
  12. android:id="@android:id/tabcontent"
  13. android:layout_width="fill_parent"
  14. android:layout_height="77dp"
  15. android:layout_weight="1" />
  16. <TabWidget
  17. android:id="@android:id/tabs"
  18. android:layout_width="fill_parent"
  19. android:layout_height="77dp"
  20. android:layout_weight="0" />
  21. </LinearLayout>
  22. </TabHost>

Report this snippet  

You need to login to post a comment.