minafaw3

tabs_layout

Oct 25th, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:id="@android:id/tabhost"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. tools:context=".Commentory_Home" >
  7.  
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:orientation="vertical" >
  12.  
  13. <TabWidget
  14. android:id="@android:id/tabs"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_weight="0" >
  18. </TabWidget>
  19.  
  20. <FrameLayout
  21. android:id="@android:id/tabcontent"
  22. android:layout_width="0dp"
  23. android:layout_height="0dp"
  24. android:layout_weight="0" >
  25. </FrameLayout>
  26.  
  27. <android.support.v4.view.ViewPager
  28. android:id="@+id/pager"
  29. android:layout_width="match_parent"
  30. android:layout_height="0dp"
  31. android:layout_weight="1" />
  32. </LinearLayout>
  33.  
  34. </TabHost>
Advertisement
Add Comment
Please, Sign In to add comment