Advertisement
Guest User

Untitled

a guest
May 26th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.71 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. xmlns:app="http://schemas.android.com/apk/res-auto">
  7.  
  8. <ImageView
  9. android:id="@+id/image_view"
  10. android:layout_width="match_parent"
  11. android:layout_height="225dp"
  12. android:background="@color/colorPrimaryDark" />
  13.  
  14. <de.hdodenhof.circleimageview.CircleImageView
  15. android:id="@+id/profile_image"
  16. android:layout_width="85dp"
  17. android:layout_height="85dp"
  18. android:layout_alignParentLeft="true"
  19. android:layout_alignParentStart="true"
  20. app:civ_border_width="2dp"
  21. app:civ_border_color="#000000"
  22. android:layout_alignParentTop="true"
  23. android:layout_marginLeft="12dp"
  24. android:layout_marginStart="12dp"
  25. android:layout_marginTop="185dp"
  26. android:src="#ff0000" />
  27.  
  28. <FrameLayout
  29. android:id="@+id/cv_detail_product"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. android:layout_below="@id/image_view">
  33.  
  34. <LinearLayout
  35. android:layout_width="match_parent"
  36. android:layout_height="match_parent"
  37. android:layout_margin="8dp"
  38. android:layout_marginTop="8dp"
  39. android:orientation="vertical">
  40.  
  41. <RelativeLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:orientation="horizontal">
  45.  
  46. <TextView
  47. android:id="@+id/tv_store_name"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:layout_centerInParent="true"
  51. android:text="Nama Toko"
  52. android:textAlignment="center"
  53. android:textColor="#000000"
  54. android:textSize="21sp" />
  55.  
  56. <TextView
  57. android:id="@+id/tv_harga"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_alignParentEnd="true"
  61. android:layout_alignParentRight="true"
  62. android:text="x hari yang lalu"
  63. android:textColor="#000000" />
  64.  
  65. </RelativeLayout>
  66.  
  67. <ScrollView
  68. android:layout_width="match_parent"
  69. android:layout_height="0dp"
  70. android:layout_marginTop="26dp"
  71. android:layout_weight="1">
  72.  
  73. <LinearLayout
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:orientation="vertical">
  77.  
  78. <LinearLayout
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. android:orientation="horizontal">
  82.  
  83. <TextView
  84. android:layout_width="125dp"
  85. android:layout_height="wrap_content"
  86. android:text="Colorway"
  87. android:textSize="18sp" />
  88.  
  89.  
  90. <TextView
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:text="Black Mesh / White Sole"
  94. android:textSize="18sp" />
  95.  
  96. </LinearLayout>
  97.  
  98. <View
  99. android:layout_width="match_parent"
  100. android:layout_height="1dp"
  101. android:background="#2c848484" />
  102.  
  103. <LinearLayout
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:layout_marginTop="16dp"
  107. android:orientation="horizontal">
  108.  
  109. <TextView
  110. android:layout_width="125dp"
  111. android:layout_height="wrap_content"
  112. android:text="Size"
  113. android:textSize="18sp" />
  114.  
  115. <TextView
  116. android:layout_width="wrap_content"
  117. android:layout_height="wrap_content"
  118. android:text="US 9/ UK 8/ EUR 42"
  119. android:textSize="18sp" />
  120.  
  121. </LinearLayout>
  122.  
  123. <View
  124. android:layout_width="match_parent"
  125. android:layout_height="1dp"
  126. android:background="#2c848484" />
  127.  
  128. <LinearLayout
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:layout_marginTop="16dp"
  132. android:orientation="horizontal">
  133.  
  134. <TextView
  135. android:layout_width="125dp"
  136. android:layout_height="wrap_content"
  137. android:text="Condition"
  138. android:textSize="18sp" />
  139.  
  140. <TextView
  141. android:layout_width="wrap_content"
  142. android:layout_height="wrap_content"
  143. android:text="Brand New in Box"
  144. android:textSize="18sp" />
  145.  
  146. </LinearLayout>
  147.  
  148. <View
  149. android:layout_width="match_parent"
  150. android:layout_height="1dp"
  151. android:background="#2c848484" />
  152.  
  153. <LinearLayout
  154. android:layout_width="match_parent"
  155. android:layout_height="wrap_content"
  156. android:layout_marginTop="16dp"
  157. android:orientation="horizontal">
  158.  
  159. <TextView
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:layout_marginLeft="12dp"
  163. android:layout_marginRight="12dp"
  164. android:text="Description"
  165. android:textSize="18sp" />
  166.  
  167.  
  168. </LinearLayout>
  169.  
  170. <TextView
  171. android:id="@+id/tv_description"
  172. android:layout_width="wrap_content"
  173. android:layout_height="wrap_content"
  174. android:layout_marginTop="6dp"
  175. android:text="test"
  176. android:textSize="18sp" />
  177.  
  178. </LinearLayout>
  179.  
  180. </ScrollView>
  181.  
  182.  
  183. <LinearLayout
  184. android:layout_width="match_parent"
  185. android:layout_height="wrap_content"
  186. android:orientation="horizontal">
  187.  
  188. <Button
  189. android:id="@+id/btn_buy"
  190. android:layout_width="125dp"
  191. android:layout_height="wrap_content"
  192. android:text="Beli" />
  193.  
  194. <TextView
  195. android:layout_width="wrap_content"
  196. android:layout_height="wrap_content"
  197. android:layout_marginLeft="4dp"
  198. android:layout_marginStart="4dp"
  199. android:text="Harga : "
  200. android:textSize="16sp" />
  201.  
  202. <TextView
  203. android:id="@+id/tv_price_old"
  204. android:layout_width="wrap_content"
  205. android:layout_height="wrap_content"
  206. android:layout_weight="1"
  207. android:text="Rp. 10000"
  208. android:textSize="16sp" />
  209.  
  210. <TextView
  211. android:id="@+id/tv_price"
  212. android:layout_width="wrap_content"
  213. android:layout_height="wrap_content"
  214. android:layout_weight="1"
  215. android:text="Rp. 5000"
  216. android:textColor="#000000"
  217. android:textSize="21sp" />
  218.  
  219. </LinearLayout>
  220. </LinearLayout>
  221.  
  222. </FrameLayout>
  223.  
  224.  
  225. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement