Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:id="@+id/tabHost"
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:background="#C1FFAA"
  10. app:layout_constraintBottom_toBottomOf="parent"
  11. app:layout_constraintLeft_toLeftOf="parent"
  12. app:layout_constraintRight_toRightOf="parent"
  13. app:layout_constraintTop_toTopOf="parent"
  14. tools:context=".MainActivity">
  15.  
  16. <LinearLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:orientation="vertical">
  20.  
  21. <TabWidget
  22. android:id="@android:id/tabs"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:background="#99C971" />
  26.  
  27. <FrameLayout
  28. android:id="@android:id/tabcontent"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent">
  31.  
  32. <LinearLayout
  33. android:id="@+id/tab1"
  34. android:layout_width="match_parent"
  35. android:layout_height="match_parent"
  36. android:orientation="vertical">
  37.  
  38. <ImageView
  39. android:id="@+id/imageView"
  40. android:layout_width="match_parent"
  41. android:layout_height="match_parent"
  42. app:srcCompat="@drawable/trujillanos" />
  43.  
  44. </LinearLayout>
  45.  
  46. <LinearLayout
  47. android:id="@+id/tab2"
  48. android:layout_width="match_parent"
  49. android:layout_height="match_parent"
  50. android:orientation="vertical">
  51.  
  52. <ImageView
  53. android:id="@+id/imageView2"
  54. android:layout_width="match_parent"
  55. android:layout_height="match_parent"
  56. app:srcCompat="@drawable/trujillo" />
  57. </LinearLayout>
  58.  
  59. <LinearLayout
  60. android:id="@+id/tab3"
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent"
  63. android:orientation="vertical">
  64.  
  65. <ImageView
  66. android:id="@+id/imageView3"
  67. android:layout_width="match_parent"
  68. android:layout_height="match_parent"
  69. app:srcCompat="@drawable/valdefuentes" />
  70. </LinearLayout>
  71.  
  72. <LinearLayout
  73. android:id="@+id/tab4"
  74. android:layout_width="match_parent"
  75. android:layout_height="match_parent"
  76. android:orientation="vertical">
  77.  
  78. <ImageView
  79. android:id="@+id/imageView4"
  80. android:layout_width="match_parent"
  81. android:layout_height="match_parent"
  82. app:srcCompat="@drawable/zurbaran" />
  83. </LinearLayout>
  84.  
  85. </FrameLayout>
  86. </LinearLayout>
  87. </TabHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement