Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.24 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".MainActivity">
  9.  
  10. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11. android:id="@+id/menu_baohanh"
  12. android:layout_width="240dp"
  13. android:layout_height="match_parent"
  14. android:background="@color/colorMenu"
  15. android:orientation="vertical"
  16. app:layout_constraintTop_toTopOf="parent">
  17.  
  18. <ImageView
  19. android:id="@+id/logo_vinsmart"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_marginLeft="96.5dp"
  23. android:layout_marginTop="51dp"
  24. android:paddingTop="13.250dp"
  25. android:paddingBottom="15.750dp"
  26. android:focusable="false"
  27. android:gravity="center_vertical"
  28. android:src="@drawable/vsmart" />
  29. <TextView
  30. android:id="@+id/Infomation"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:paddingLeft="@dimen/menu_text_margin"
  34. android:paddingTop="13.250dp"
  35. android:paddingBottom="15.750dp"
  36. android:gravity="center_vertical"
  37. android:background="@drawable/selector"
  38. android:text="@string/information"
  39. android:textSize="@dimen/dimen_text"
  40. android:textColor="@color/text_selector"
  41. android:focusedByDefault="true"
  42. android:focusable="true"
  43. android:focusableInTouchMode="true"
  44. android:nextFocusDown="@+id/warrantyhistory"
  45. android:nextFocusUp="@+id/contact"/>
  46. <TextView
  47. android:id="@+id/warrantyhistory"
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:paddingLeft="@dimen/menu_text_margin"
  51. android:paddingTop="13.250dp"
  52. android:paddingBottom="15.750dp"
  53. android:gravity="center_vertical"
  54. android:background="@drawable/selector"
  55. android:text="@string/warrantyhistory"
  56. android:textSize="@dimen/dimen_text"
  57. android:textColor="@color/text_selector"
  58. android:focusableInTouchMode="true"
  59. android:nextFocusDown="@+id/warrantyconditions"
  60. android:nextFocusUp="@+id/Infomation" />
  61. <TextView
  62. android:id="@+id/warrantyconditions"
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:paddingLeft="@dimen/menu_text_margin"
  66. android:paddingTop="13.250dp"
  67. android:paddingBottom="15.750dp"
  68. android:gravity="center_vertical"
  69. android:background="@drawable/selector"
  70. android:text="@string/warrantyconditions"
  71. android:textSize="@dimen/dimen_text"
  72. android:textColor="@color/text_selector"
  73. android:focusableInTouchMode="true"
  74. android:nextFocusDown="@+id/warrantypolicy" />
  75. <TextView
  76. android:id="@+id/warrantypolicy"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:paddingLeft="@dimen/menu_text_margin"
  80. android:paddingTop="13.250dp"
  81. android:paddingBottom="15.750dp"
  82. android:gravity="center_vertical"
  83. android:background="@drawable/selector"
  84. android:text="@string/warrantypolicy"
  85. android:textSize="@dimen/dimen_text"
  86. android:textColor="@color/text_selector"
  87. android:focusableInTouchMode="true"
  88. android:nextFocusDown="@+id/sevicecenter" />
  89. <TextView
  90. android:id="@+id/sevicecenter"
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:paddingLeft="@dimen/menu_text_margin"
  94. android:paddingTop="13.250dp"
  95. android:paddingBottom="15.750dp"
  96. android:gravity="center_vertical"
  97. android:background="@drawable/selector"
  98. android:text="@string/sevicecenter"
  99. android:textSize="@dimen/dimen_text"
  100. android:textColor="@color/text_selector"
  101. android:focusableInTouchMode="true"
  102. android:nextFocusDown="@+id/support"
  103. />
  104. <TextView
  105. android:id="@+id/support"
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:paddingLeft="@dimen/menu_text_margin"
  109. android:paddingTop="13.250dp"
  110. android:paddingBottom="15.750dp"
  111. android:gravity="center_vertical"
  112. android:background="@drawable/selector"
  113. android:text="@string/support"
  114. android:textSize="@dimen/dimen_text"
  115. android:textColor="@color/text_selector"
  116. android:focusableInTouchMode="true"
  117. android:nextFocusDown="@+id/contact"
  118. />
  119. <TextView
  120. android:id="@+id/contact"
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:paddingLeft="@dimen/menu_text_margin"
  124. android:paddingTop="13.250dp"
  125. android:paddingBottom="15.750dp"
  126. android:gravity="center_vertical"
  127. android:background="@drawable/selector"
  128. android:text="@string/contact"
  129. android:textSize="@dimen/dimen_text"
  130. android:textColor="@color/text_selector"
  131. android:focusableInTouchMode="true"
  132. android:nextFocusDown="@+id/Infomation"
  133. />
  134. </LinearLayout>
  135.  
  136. <RelativeLayout
  137. android:id="@+id/fragment_container"
  138. android:layout_width="0dp"
  139. android:layout_height="match_parent"
  140. app:layout_constraintStart_toStartOf="parent"
  141. app:layout_constraintEnd_toEndOf="parent"
  142. android:layout_marginStart="@dimen/menu_weight"
  143. app:layout_constraintTop_toBottomOf="parent"
  144. app:layout_constraintBottom_toBottomOf="parent">
  145.  
  146. <ImageView
  147. android:id="@+id/image_frame"
  148. android:layout_width="wrap_content"
  149. android:layout_height="wrap_content"
  150. android:layout_gravity="center_horizontal"
  151. android:layout_marginTop="66dp"
  152. android:src="@drawable/tttb" />
  153. <TextView
  154. android:id="@+id/text_frame"
  155. android:layout_width="wrap_content"
  156. android:layout_height="wrap_content"
  157. android:layout_gravity="center_horizontal"
  158. android:layout_marginTop="162.500dp"
  159. android:text="Thông tin thiết bị"
  160. android:textStyle="bold"
  161. android:textSize="22.5dp"
  162. android:textColor="@color/colorText"
  163. />
  164. </RelativeLayout>
  165. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement