Advertisement
ricky_yulianto

Untitled

Jul 7th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.16 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@android:color/white"
  8. android:focusable="false"
  9. android:focusableInTouchMode="true"
  10. android:fitsSystemWindows="true"
  11. android:orientation="vertical"
  12. tools:context="codelabs.ambarrukmo.activity.PromoDetailMyCardActivity">
  13.  
  14.  
  15. <include
  16. layout="@layout/header_layout_promodetail_2"/>
  17.  
  18.  
  19. <!--<include-->
  20. <!--layout="@layout/error"/>-->
  21. <!--<include-->
  22. <!--layout="@layout/loading"/>-->
  23.  
  24.  
  25. <FrameLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  29.  
  30.  
  31. <android.support.v4.widget.NestedScrollView
  32. android:id="@+id/nested_scroll"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent">
  35.  
  36. <LinearLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:orientation="vertical">
  40.  
  41.  
  42. <RelativeLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:layout_marginTop="0dp"
  46. android:background="@android:color/transparent"
  47. android:padding="0dp">
  48.  
  49. <LinearLayout
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:layout_alignParentTop="true"
  53. android:orientation="horizontal">
  54.  
  55. <ImageView
  56. android:id="@+id/img_promo1"
  57. android:layout_width="0dp"
  58. android:layout_height="80dp"
  59. android:layout_marginEnd="5dp"
  60. android:layout_weight="1"
  61. android:src="@drawable/img_step2" />
  62.  
  63. <ImageView
  64. android:id="@+id/img_promo2"
  65. android:layout_width="0dp"
  66. android:layout_height="80dp"
  67. android:layout_marginEnd="5dp"
  68. android:layout_weight="1"
  69. android:src="@drawable/img_step2" />
  70.  
  71. <ImageView
  72. android:id="@+id/img_promo3"
  73. android:layout_width="0dp"
  74. android:layout_height="80dp"
  75. android:layout_marginEnd="5dp"
  76. android:layout_weight="1"
  77. android:src="@drawable/img_step2" />
  78.  
  79. <ImageView
  80. android:id="@+id/img_promo4"
  81. android:layout_width="0dp"
  82. android:layout_height="80dp"
  83. android:layout_marginEnd="5dp"
  84. android:layout_weight="1"
  85. android:src="@drawable/img_step2" />
  86.  
  87. <!--<android.support.v7.widget.RecyclerView-->
  88. <!--android:id="@+id/rv_list_image"-->
  89. <!--android:layout_width="match_parent"-->
  90. <!--android:layout_height="match_parent"-->
  91. <!--android:gravity="center"-->
  92. <!--android:text="@string/loremipsum"-->
  93. <!--android:textColor="@android:color/black"-->
  94. <!--android:textSize="18sp"-->
  95. <!--android:textStyle="bold" />-->
  96.  
  97. </LinearLayout>
  98. </RelativeLayout>
  99.  
  100. <LinearLayout
  101. android:layout_width="match_parent"
  102. android:layout_height="match_parent"
  103. android:layout_marginTop="10dp"
  104. android:background="@android:color/transparent"
  105. android:gravity="center_vertical"
  106. android:orientation="horizontal"
  107. android:padding="0dp">
  108.  
  109. <RelativeLayout
  110. android:layout_width="match_parent"
  111. android:layout_height="wrap_content"
  112. android:layout_marginStart="10dp"
  113. android:layout_marginEnd="10dp"
  114. android:padding="0dp">
  115.  
  116. <TextView
  117. android:id="@+id/tv_name_merchant"
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:text="Kintan Buffet"
  121. android:textColor="@android:color/black"
  122. android:textSize="15sp"
  123. android:textStyle="bold" />
  124.  
  125. <ImageView
  126. android:id="@+id/tv_star"
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:layout_alignTop="@+id/tv_name_merchant"
  130. android:layout_alignBottom="@+id/tv_name_merchant"
  131. android:layout_marginStart="10dp"
  132. android:layout_toRightOf="@+id/tv_name_merchant"
  133. android:gravity="center_vertical"
  134. android:src="@drawable/ic_star"
  135. android:text="My Points"
  136. android:textColor="@android:color/black"
  137. android:textSize="13sp" />
  138.  
  139. <ImageView
  140. android:id="@+id/tv_star2"
  141. android:layout_width="wrap_content"
  142. android:layout_height="wrap_content"
  143. android:layout_alignTop="@+id/tv_star"
  144. android:layout_alignBottom="@+id/tv_star"
  145. android:layout_marginStart="5dp"
  146. android:layout_toRightOf="@+id/tv_star"
  147. android:gravity="center_vertical"
  148. android:src="@drawable/ic_star"
  149. android:text="My Points"
  150. android:textColor="@android:color/black"
  151. android:textSize="13sp" />
  152.  
  153. <ImageView
  154. android:id="@+id/tv_star3"
  155. android:layout_width="wrap_content"
  156. android:layout_height="wrap_content"
  157. android:layout_alignTop="@+id/tv_star2"
  158. android:layout_alignBottom="@+id/tv_star2"
  159. android:layout_marginStart="5dp"
  160. android:layout_toRightOf="@+id/tv_star2"
  161. android:gravity="center_vertical"
  162. android:src="@drawable/ic_star"
  163. android:text="My Points"
  164. android:textColor="@android:color/black"
  165. android:textSize="13sp" />
  166.  
  167.  
  168. </RelativeLayout>
  169. </LinearLayout>
  170.  
  171. <LinearLayout
  172. android:layout_width="match_parent"
  173. android:layout_height="match_parent"
  174. android:layout_marginTop="0dp"
  175. android:background="@android:color/transparent"
  176. android:gravity="center_vertical"
  177. android:orientation="horizontal"
  178. android:padding="10dp">
  179.  
  180. <RelativeLayout
  181. android:layout_width="match_parent"
  182. android:layout_height="wrap_content"
  183. android:padding="0dp">
  184.  
  185. <TextView
  186. android:id="@+id/tv_name_category"
  187. android:layout_width="wrap_content"
  188. android:layout_height="wrap_content"
  189. android:background="@drawable/btn_border_catg"
  190. android:paddingStart="15dp"
  191. android:paddingTop="5dp"
  192. android:paddingEnd="15dp"
  193. android:paddingBottom="5dp"
  194. android:text="Dining"
  195. android:textColor="@color/dot_dark_screen2"
  196. android:textSize="13sp" />
  197.  
  198. <TextView
  199. android:id="@+id/tv_value"
  200. android:layout_width="wrap_content"
  201. android:layout_height="wrap_content"
  202. android:layout_alignTop="@+id/tv_name_category"
  203. android:layout_alignBottom="@+id/tv_name_category"
  204. android:layout_alignParentEnd="true"
  205. android:layout_marginStart="10dp"
  206. android:layout_marginEnd="10dp"
  207. android:gravity="center_vertical"
  208. android:src="@drawable/ic_star"
  209. android:text="8.3"
  210. android:textColor="@color/dot_dark_screen2"
  211. android:textSize="21sp"
  212. android:textStyle="bold" />
  213.  
  214. </RelativeLayout>
  215. </LinearLayout>
  216.  
  217. <LinearLayout
  218. android:layout_width="match_parent"
  219. android:layout_height="match_parent"
  220. android:layout_marginTop="0dp"
  221. android:background="@android:color/transparent"
  222. android:gravity="center_vertical"
  223. android:orientation="horizontal"
  224. android:padding="5dp">
  225.  
  226. <RelativeLayout
  227. android:layout_width="match_parent"
  228. android:layout_height="wrap_content"
  229. android:layout_marginStart="5dp"
  230. android:layout_marginEnd="5dp"
  231. android:padding="0dp">
  232.  
  233. <TextView
  234. android:id="@+id/tv_address"
  235. android:layout_width="wrap_content"
  236. android:layout_height="wrap_content"
  237. android:text="Gandaria City, Lt. Upper Ground"
  238. android:textColor="@color/half_black"
  239. android:textSize="13sp" />
  240.  
  241. <TextView
  242. android:id="@+id/tv_value_catg"
  243. android:layout_width="wrap_content"
  244. android:layout_height="wrap_content"
  245. android:layout_alignTop="@+id/tv_address"
  246. android:layout_alignBottom="@+id/tv_address"
  247. android:layout_alignParentEnd="true"
  248. android:layout_marginStart="10dp"
  249. android:layout_marginEnd="10dp"
  250. android:gravity="center_vertical"
  251. android:text="Impressive"
  252. android:textColor="@color/dot_dark_screen2"
  253. android:textSize="14sp"
  254. android:textStyle="bold" />
  255.  
  256. </RelativeLayout>
  257. </LinearLayout>
  258.  
  259.  
  260. <LinearLayout
  261. android:layout_width="match_parent"
  262. android:layout_height="match_parent"
  263. android:layout_marginTop="30dp"
  264. android:background="@android:color/transparent"
  265. android:gravity="center_vertical"
  266. android:orientation="horizontal"
  267. android:padding="5dp">
  268.  
  269. <LinearLayout
  270. android:layout_width="match_parent"
  271. android:layout_height="match_parent"
  272. android:orientation="vertical">
  273.  
  274. <TextView
  275. android:id="@+id/tv_title_review"
  276. android:layout_width="match_parent"
  277. android:layout_height="match_parent"
  278. android:gravity="center"
  279. android:text="10 guest talked about comfortable place"
  280. android:textColor="@color/grey500"
  281. android:textSize="12sp"
  282. android:textStyle="italic" />
  283.  
  284. </LinearLayout>
  285. </LinearLayout>
  286.  
  287. <LinearLayout
  288. android:layout_width="match_parent"
  289. android:layout_height="match_parent"
  290. android:layout_marginStart="10dp"
  291. android:layout_marginTop="0dp"
  292. android:layout_marginEnd="10dp"
  293. android:background="@android:color/transparent"
  294. android:gravity="center_vertical"
  295. android:orientation="horizontal"
  296. android:padding="5dp">
  297.  
  298. <LinearLayout
  299. android:layout_width="match_parent"
  300. android:layout_height="match_parent"
  301. android:orientation="vertical">
  302.  
  303. <TextView
  304. android:id="@+id/tv_desc_review"
  305. android:layout_width="match_parent"
  306. android:layout_height="match_parent"
  307. android:drawableStart="@drawable/ic_chevron_left"
  308. android:drawableEnd="@drawable/ic_chevron_right"
  309. android:drawablePadding="10dp"
  310. android:drawableTint="@color/dot_dark_screen1"
  311. android:gravity="center"
  312. android:text="Comfortable place around Gandaria for eating with family, cheap, and clean."
  313. android:textColor="@android:color/black"
  314. android:textSize="13sp"
  315. android:textStyle="bold" />
  316.  
  317. </LinearLayout>
  318. </LinearLayout>
  319.  
  320. <LinearLayout
  321. android:layout_width="match_parent"
  322. android:layout_height="match_parent"
  323. android:layout_marginTop="0dp"
  324. android:background="@android:color/transparent"
  325. android:gravity="center_vertical"
  326. android:orientation="horizontal"
  327. android:padding="5dp">
  328.  
  329. <LinearLayout
  330. android:layout_width="match_parent"
  331. android:layout_height="match_parent"
  332. android:orientation="vertical">
  333.  
  334. <TextView
  335. android:id="@+id/tv_name_review"
  336. android:layout_width="match_parent"
  337. android:layout_height="match_parent"
  338. android:gravity="center"
  339. android:text="H.Saeb Riyadh"
  340. android:textColor="@color/grey500"
  341. android:textSize="13sp"
  342. android:textStyle="bold" />
  343.  
  344. </LinearLayout>
  345. </LinearLayout>
  346.  
  347. <LinearLayout
  348. android:layout_width="match_parent"
  349. android:layout_height="match_parent"
  350. android:layout_marginTop="30dp"
  351. android:background="@android:color/transparent"
  352. android:gravity="center_vertical"
  353. android:orientation="horizontal"
  354. android:padding="10dp">
  355.  
  356. <LinearLayout
  357. android:layout_width="match_parent"
  358. android:layout_height="match_parent"
  359. android:orientation="vertical">
  360.  
  361. <TextView
  362. android:id="@+id/tv_notice"
  363. android:layout_width="match_parent"
  364. android:layout_height="match_parent"
  365. android:gravity="center"
  366. android:text="Restaurant Description"
  367. android:textColor="@android:color/black"
  368. android:textSize="14sp"
  369. android:textStyle="bold" />
  370.  
  371. </LinearLayout>
  372. </LinearLayout>
  373.  
  374. <LinearLayout
  375. android:layout_width="match_parent"
  376. android:layout_height="match_parent"
  377. android:layout_marginStart="10dp"
  378. android:layout_marginTop="0dp"
  379. android:layout_marginEnd="10dp"
  380. android:background="@android:color/transparent"
  381. android:orientation="horizontal"
  382. android:padding="5dp">
  383.  
  384. <LinearLayout
  385. android:layout_width="match_parent"
  386. android:layout_height="match_parent"
  387. android:orientation="vertical">
  388.  
  389. <TextView
  390. android:id="@+id/tv_notice2"
  391. android:layout_width="match_parent"
  392. android:layout_height="match_parent"
  393. android:gravity="left"
  394. android:text="@string/terms"
  395. android:textColor="@color/black_semi_transparent"
  396. android:textSize="13sp" />
  397.  
  398. </LinearLayout>
  399. </LinearLayout>
  400.  
  401.  
  402. <LinearLayout
  403. android:layout_width="match_parent"
  404. android:layout_height="match_parent"
  405. android:layout_marginStart="10dp"
  406. android:layout_marginTop="0dp"
  407. android:layout_marginEnd="10dp"
  408. android:background="@android:color/transparent"
  409. android:orientation="horizontal"
  410. android:padding="5dp">
  411.  
  412. <LinearLayout
  413. android:layout_width="match_parent"
  414. android:layout_height="match_parent"
  415. android:orientation="vertical">
  416.  
  417. <TextView
  418. android:layout_width="match_parent"
  419. android:layout_height="match_parent"
  420. android:gravity="left"
  421. android:text="@string/terms"
  422. android:textColor="@color/black_semi_transparent"
  423. android:textSize="13sp" />
  424.  
  425. </LinearLayout>
  426. </LinearLayout>
  427.  
  428.  
  429. <LinearLayout
  430. android:layout_width="match_parent"
  431. android:layout_height="match_parent"
  432. android:layout_marginStart="10dp"
  433. android:layout_marginTop="0dp"
  434. android:layout_marginEnd="10dp"
  435. android:layout_marginBottom="20dp"
  436. android:background="@android:color/transparent"
  437. android:orientation="horizontal"
  438. android:padding="5dp">
  439.  
  440. <LinearLayout
  441. android:layout_width="match_parent"
  442. android:layout_height="match_parent"
  443. android:orientation="vertical">
  444.  
  445. <TextView
  446. android:layout_width="match_parent"
  447. android:layout_height="match_parent"
  448. android:gravity="left"
  449. android:text="@string/terms"
  450. android:textColor="@color/black_semi_transparent"
  451. android:textSize="13sp" />
  452.  
  453. </LinearLayout>
  454. </LinearLayout>
  455.  
  456.  
  457. </LinearLayout>
  458.  
  459.  
  460.  
  461. </android.support.v4.widget.NestedScrollView>
  462.  
  463. </FrameLayout>
  464.  
  465. <FrameLayout
  466. android:layout_width="match_parent"
  467. android:layout_height="wrap_content"
  468. android:nestedScrollingEnabled="false"
  469. android:background="?attr/selectableItemBackgroundBorderless"
  470. android:layout_gravity="bottom">
  471.  
  472.  
  473. <Button
  474. android:layout_width="match_parent"
  475. android:layout_height="match_parent"
  476. android:layout_gravity="center_horizontal"
  477. android:layout_marginStart="20dp"
  478. android:layout_marginEnd="20dp"
  479. android:layout_marginTop="10dp"
  480. android:layout_marginBottom="20dp"
  481. android:background="@drawable/btn_change"
  482. android:paddingStart="40dp"
  483. android:paddingEnd="40dp"
  484. android:text="GET VOUCHER"
  485. android:fontFamily="@font/poppins_medium"
  486. android:textAllCaps="false"
  487. android:textColor="@android:color/white"
  488. android:textSize="13sp"
  489. android:textStyle="bold" />
  490.  
  491.  
  492.  
  493. </FrameLayout>
  494.  
  495.  
  496.  
  497.  
  498.  
  499. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement