Advertisement
ricky_yulianto

Untitled

Jul 7th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.42 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. xmlns:card_view="http://schemas.android.com/tools"
  7. android:background="@android:color/white"
  8. android:fitsSystemWindows="true"
  9. android:orientation="vertical">
  10.  
  11.  
  12. <android.support.v7.widget.Toolbar
  13. android:id="@+id/toolbar"
  14. android:layout_width="match_parent"
  15. android:layout_height="?attr/actionBarSize"
  16. android:background="@color/white"
  17. android:layout_marginTop="0dp"
  18. app:contentInsetLeft="0dp"
  19. app:contentInsetStart="0dp">
  20.  
  21. <RelativeLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:gravity="center_vertical"
  25. android:paddingLeft="10dp"
  26. android:paddingRight="@dimen/activity_horizontal_margin">
  27.  
  28. <ImageView
  29. android:id="@+id/iv_back"
  30. android:layout_width="40dp"
  31. android:layout_height="150dp"
  32. android:layout_alignParentTop="true"
  33. android:src="@drawable/ic_chevron_left"
  34. android:tint="@android:color/black" />
  35.  
  36. <TextView
  37. android:id="@+id/tv_toolbar_title"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_alignParentTop="true"
  41. android:layout_centerInParent="true"
  42. android:layout_centerHorizontal="true"
  43. android:layout_marginTop="17dp"
  44. android:text="Promo Detail"
  45. android:fontFamily="@font/poppins_semibold"
  46. android:textColor="@android:color/black"
  47. android:textSize="16sp"
  48. android:textStyle="bold" />
  49.  
  50. </RelativeLayout>
  51. </android.support.v7.widget.Toolbar>
  52.  
  53.  
  54. <!--<FrameLayout-->
  55. <!--android:layout_width="match_parent"-->
  56. <!--android:layout_height="match_parent"-->
  57. <!--app:layout_behavior="@string/appbar_scrolling_view_behavior">-->
  58.  
  59. <!--<include layout="@layout/error"/>-->
  60.  
  61. <!--<include layout="@layout/loading"/>-->
  62.  
  63.  
  64. <android.support.v4.widget.NestedScrollView
  65. android:id="@+id/container_content"
  66. android:layout_width="match_parent"
  67. android:layout_height="match_parent">
  68.  
  69. <LinearLayout
  70. android:layout_width="match_parent"
  71. android:layout_height="match_parent"
  72. android:orientation="vertical">
  73.  
  74.  
  75. <ImageView
  76. android:id="@+id/img_top_promo"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:scaleType="centerCrop"
  80. android:adjustViewBounds="true"
  81. android:src="@drawable/placeholder220"
  82. android:layout_marginBottom="10dp"
  83. android:layout_marginTop="0dp"/>
  84.  
  85.  
  86. <LinearLayout
  87. android:layout_width="match_parent"
  88. android:layout_height="match_parent"
  89. android:layout_marginTop="0dp"
  90. android:background="@android:color/transparent"
  91. android:gravity="center_vertical"
  92. android:orientation="horizontal"
  93. android:padding="10dp">
  94.  
  95. <LinearLayout
  96. android:layout_width="match_parent"
  97. android:layout_height="match_parent"
  98. android:orientation="vertical">
  99.  
  100. <TextView
  101. android:id="@+id/tv_promoinfo"
  102. android:layout_width="match_parent"
  103. android:layout_height="match_parent"
  104. android:text="@string/loremipsum"
  105. android:textStyle="bold"
  106. android:fontFamily="@font/poppins_medium"
  107. android:textColor="@android:color/black"
  108. android:textSize="16sp"
  109. android:gravity="center"/>
  110.  
  111. </LinearLayout>
  112. </LinearLayout>
  113. <View
  114. android:layout_width="match_parent"
  115. android:layout_height="1dp"
  116. android:layout_marginTop="3dp"
  117. android:background="@color/dash" />
  118.  
  119.  
  120.  
  121.  
  122. <LinearLayout
  123. android:layout_width="match_parent"
  124. android:layout_height="wrap_content"
  125. android:layout_marginTop="0dp"
  126. android:background="@android:color/transparent"
  127. android:gravity="center_vertical"
  128. android:orientation="horizontal"
  129. android:padding="0dp">
  130.  
  131. <LinearLayout
  132. android:layout_width="wrap_content"
  133. android:layout_height="wrap_content"
  134. android:orientation="vertical">
  135.  
  136. <LinearLayout
  137. android:gravity="center_vertical"
  138. android:layout_width="match_parent"
  139. android:layout_height="wrap_content"
  140. android:orientation="horizontal">
  141. <LinearLayout
  142. android:layout_weight="1"
  143. android:padding="10dp"
  144. android:layout_width="0dp"
  145. android:layout_height="wrap_content"
  146. android:orientation="vertical"
  147. android:background="@drawable/border_right">
  148.  
  149. <ImageView
  150. android:id="@+id/img_timepromo"
  151. android:layout_width="match_parent"
  152. android:layout_height="wrap_content"
  153. android:gravity="center_horizontal"
  154. android:src="@drawable/voucher_valid" />
  155.  
  156. <TextView
  157. android:id="@+id/tv_periodpromo"
  158. android:textSize="13sp"
  159. android:textColor="@color/half_black"
  160. android:text="Promo Period"
  161. android:fontFamily="@font/poppins_regular"
  162. android:layout_marginTop="10dp"
  163. android:gravity="center_horizontal"
  164. android:layout_width="match_parent"
  165. android:layout_height="match_parent" />
  166.  
  167. <TextView
  168. android:id="@+id/tv_datepromo"
  169. android:textSize="13sp"
  170. android:minLines="2"
  171. android:maxLines="2"
  172. android:textColor="@color/half_black"
  173. android:text="6 Januari - 14 Februari 2019"
  174. android:layout_marginTop="10dp"
  175. android:fontFamily="@font/poppins_regular"
  176. android:gravity="center_horizontal"
  177. android:layout_width="match_parent"
  178. android:layout_height="match_parent" />
  179. </LinearLayout>
  180.  
  181.  
  182. <LinearLayout
  183. android:layout_weight="1"
  184. android:padding="10dp"
  185. android:layout_width="0dp"
  186. android:layout_height="wrap_content"
  187. android:orientation="vertical"
  188. android:background="@drawable/border_right">
  189.  
  190. <ImageView
  191. android:id="@+id/tv_img_money"
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:gravity="center_horizontal"
  195. android:src="@drawable/ic_minimum_transaction" />
  196.  
  197. <TextView
  198. android:id="@+id/tv_min_transc"
  199. android:textSize="13sp"
  200. android:layout_marginTop="0dp"
  201. android:textColor="@color/half_black"
  202. android:text="Minimum Transaction"
  203. android:gravity="center"
  204. android:fontFamily="@font/poppins_regular"
  205. android:minLines="1"
  206. android:layout_width="match_parent"
  207. android:layout_height="match_parent" />
  208.  
  209. <TextView
  210. android:id="@+id/tv_money_transc"
  211. android:textSize="13sp"
  212. android:layout_marginTop="0dp"
  213. android:textColor="@color/half_black"
  214. android:text="Rp 1.500.000"
  215. android:fontFamily="@font/poppins_regular"
  216. android:gravity="center_horizontal"
  217. android:layout_width="match_parent"
  218. android:layout_height="match_parent" />
  219. </LinearLayout>
  220. </LinearLayout>
  221.  
  222. <View
  223. android:layout_width="match_parent"
  224. android:layout_height="2dp"
  225. android:layout_marginTop="0dp"
  226. android:background="@color/dash" />
  227.  
  228. <LinearLayout
  229. android:layout_width="match_parent"
  230. android:layout_height="wrap_content"
  231. android:orientation="horizontal"
  232. android:gravity="center"
  233. android:padding="10dp">
  234.  
  235. <ImageView
  236. android:layout_width="wrap_content"
  237. android:layout_height="wrap_content"
  238. android:src="@drawable/ic_coupon_promo"
  239. android:textColor="@android:color/black"
  240. android:textSize="14sp" />
  241.  
  242. <TextView
  243. android:layout_width="wrap_content"
  244. android:layout_height="wrap_content"
  245. android:layout_marginStart="10dp"
  246. android:text="Promo Code"
  247. android:fontFamily="@font/poppins_regular"
  248. android:textColor="@android:color/black"
  249. android:textSize="14sp" />
  250.  
  251. </LinearLayout>
  252.  
  253. <LinearLayout
  254. android:layout_width="match_parent"
  255. android:layout_height="wrap_content"
  256. android:orientation="horizontal"
  257. android:gravity="center"
  258. android:padding="10dp">
  259.  
  260. <TextView
  261. android:id="@+id/tv_code_promo"
  262. android:layout_width="wrap_content"
  263. android:layout_height="40dp"
  264. android:text="MDRHOKI"
  265. android:fontFamily="@font/poppins_regular"
  266. android:background="@drawable/btn_blue"
  267. android:src="@drawable/ic_money"
  268. android:gravity="center"
  269. android:paddingStart="10dp"
  270. android:paddingEnd="10dp"
  271. android:textColor="@android:color/holo_red_dark"
  272. android:textSize="13sp" />
  273.  
  274. <TextView
  275. android:id="@+id/tv_copy_code"
  276. android:layout_width="wrap_content"
  277. android:layout_height="40dp"
  278. android:layout_marginStart="0dp"
  279. android:background="@drawable/btn_borderblue"
  280. android:text="Copy Code"
  281. android:clickable="true"
  282. android:fontFamily="@font/poppins_thin"
  283. android:gravity="center"
  284. android:paddingStart="10dp"
  285. android:paddingEnd="10dp"
  286. android:textColor="@color/black_semi_transparent"
  287. android:textSize="13sp" />
  288.  
  289. </LinearLayout>
  290. <View
  291. android:layout_width="match_parent"
  292. android:layout_height="2dp"
  293. android:layout_marginTop="16dp"
  294. android:background="@color/dash" />
  295.  
  296. <LinearLayout
  297. android:layout_width="match_parent"
  298. android:layout_height="wrap_content"
  299. android:orientation="horizontal"
  300. android:gravity="center"
  301. android:padding="10dp">
  302.  
  303. <TextView
  304. android:visibility="gone"
  305. android:layout_width="wrap_content"
  306. android:layout_height="40dp"
  307. android:text="Terms &amp; Conditions"
  308. android:gravity="center"
  309. android:paddingStart="10dp"
  310. android:paddingEnd="10dp"
  311. android:textColor="@android:color/black"
  312. android:textSize="13sp" />
  313. </LinearLayout>
  314.  
  315. <LinearLayout
  316. android:layout_width="match_parent"
  317. android:layout_height="wrap_content"
  318. android:orientation="vertical"
  319. android:padding="10dp">
  320.  
  321. <!--<com.skyhope.showmoretextview.ShowMoreTextView-->
  322. <!--android:id="@+id/tv_terms"-->
  323. <!--android:layout_width="match_parent"-->
  324. <!--android:layout_height="wrap_content"-->
  325. <!--android:layout_marginTop="2dp"-->
  326. <!--android:text="@string/lorem"-->
  327. <!--android:textColor="@color/black_semi_transparent"-->
  328. <!--android:textSize="13sp" />-->
  329.  
  330. <TextView
  331. android:id="@+id/tv_terms_info"
  332. android:layout_width="wrap_content"
  333. android:layout_height="wrap_content"
  334. android:layout_marginTop="2dp"
  335. android:fontFamily="@font/poppins_regular"
  336. android:text="@string/lorem"
  337. android:textSize="12dp"/>
  338. </LinearLayout>
  339.  
  340. </LinearLayout>
  341. </LinearLayout>
  342.  
  343.  
  344. <Button
  345. android:id="@+id/btn_check_now"
  346. android:layout_width="match_parent"
  347. android:layout_height="match_parent"
  348. android:layout_gravity="center_horizontal"
  349. android:layout_marginStart="20dp"
  350. android:layout_marginEnd="20dp"
  351. android:layout_marginTop="5dp"
  352. android:layout_marginBottom="20dp"
  353. android:background="@drawable/btn_change"
  354. android:paddingStart="40dp"
  355. android:paddingEnd="40dp"
  356. android:text="CHECK NOW"
  357. android:fontFamily="@font/poppins_regular"
  358. android:textAllCaps="false"
  359. android:textColor="@android:color/white"
  360. android:textSize="13sp"
  361. android:textStyle="bold" />
  362.  
  363. </LinearLayout>
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370. </android.support.v4.widget.NestedScrollView>
  371.  
  372. <!--</FrameLayout>-->
  373.  
  374. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement