Guest User

Untitled

a guest
Oct 19th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  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. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7. android:orientation="vertical"
  8. android:layout_width="fill_parent"
  9. android:layout_height="fill_parent">
  10. <RelativeLayout
  11. android:id="@+id/welcome"
  12. android:layout_width="fill_parent"
  13. android:layout_height="wrap_content">
  14. <TextView xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:id="@+id/cc_welcome"
  16. android:layout_width="fill_parent"
  17. android:layout_height="wrap_content"
  18. android:text="Welcome"
  19. android:layout_centerInParent="true"
  20. android:textColor="#ffffff"/>
  21. </RelativeLayout>
  22. <RelativeLayout
  23. android:layout_below="@id/welcome"
  24. android:orientation="vertical"
  25. android:layout_width="fill_parent"
  26. android:layout_height="fill_parent">
  27. <TabWidget
  28. android:id="@android:id/tabs"
  29. android:layout_alignParentTop="true"
  30. android:layout_width="fill_parent"
  31. android:layout_height="wrap_content" />
  32. <FrameLayout
  33. android:id="@android:id/tabcontent"
  34. android:layout_width="fill_parent"
  35. android:layout_height="fill_parent"
  36. android:layout_below="@android:id/tabs"/>
  37. </RelativeLayout>
  38. </RelativeLayout>
  39. </TabHost>
  40.  
  41. <?xml version="1.0" encoding="utf-8"?>
  42. <android.support.v4.app.FragmentTabHost
  43. xmlns:android="http://schemas.android.com/apk/res/android"
  44. android:id="@android:id/tabhost"
  45. android:layout_width="match_parent"
  46. android:layout_height="match_parent">
  47.  
  48. <LinearLayout
  49. android:layout_width="match_parent"
  50. android:layout_height="match_parent"
  51. android:orientation="vertical">
  52.  
  53. <FrameLayout
  54. android:id="@android:id/tabcontent"
  55. android:layout_width="match_parent"
  56. android:layout_height="0dp"
  57. android:layout_weight="1"
  58. />
  59.  
  60. <TabWidget
  61. android:id="@android:id/tabs"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:fadingEdge="none"
  65. android:showDividers="none"
  66. />
  67.  
  68. </LinearLayout>
  69.  
  70.  
  71. </android.support.v4.app.FragmentTabHost>
Add Comment
Please, Sign In to add comment