Advertisement
ricky_yulianto

Untitled

Jul 25th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.70 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:id="@+id/cordinatorLayout"
  9. android:orientation="vertical"
  10. tools:context="codelabs.ambarrukmo.activity.PromoDetailMyCardActivity">
  11.  
  12.  
  13. <!--<include-->
  14. <!--layout="@layout/header_layout_promodetail_2"/>-->
  15.  
  16. <android.support.design.widget.AppBarLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content">
  19.  
  20. <android.support.design.widget.CollapsingToolbarLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. app:contentScrim="@color/white"
  24. app:expandedTitleGravity="top"
  25. app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
  26.  
  27.  
  28. <LinearLayout
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:background="@color/white"
  32. android:orientation="vertical">
  33.  
  34. <ImageView
  35. android:id="@+id/image_center"
  36. android:layout_width="match_parent"
  37. android:layout_height="@dimen/_150sdp"
  38. android:layout_marginBottom="@dimen/_1sdp"
  39. android:adjustViewBounds="false"
  40. android:scaleType="centerCrop"
  41. android:src="@color/grey500"
  42.  
  43. app:layout_collapseMode="parallax"
  44. app:layout_collapseParallaxMultiplier="0.5"/>
  45.  
  46. <LinearLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:orientation="horizontal">
  50.  
  51. <ImageView
  52. android:id="@+id/image1"
  53. android:layout_width="0dp"
  54. android:layout_weight="1"
  55. android:layout_height="@dimen/_50sdp"
  56. android:adjustViewBounds="true"
  57. android:scaleType="centerCrop"
  58. android:layout_marginEnd="@dimen/_1sdp"
  59. android:src="@color/grey500"/>
  60.  
  61. <ImageView
  62. android:id="@+id/image2"
  63. android:layout_width="0dp"
  64. android:layout_weight="1"
  65. android:layout_height="@dimen/_50sdp"
  66. android:adjustViewBounds="true"
  67. android:scaleType="centerCrop"
  68. android:layout_marginEnd="@dimen/_1sdp"
  69. android:src="@color/grey500"/>
  70.  
  71. <ImageView
  72. android:id="@+id/image3"
  73. android:layout_width="0dp"
  74. android:layout_weight="1"
  75. android:layout_height="@dimen/_50sdp"
  76. android:adjustViewBounds="true"
  77. android:scaleType="centerCrop"
  78. android:layout_marginEnd="@dimen/_1sdp"
  79. android:src="@color/grey500"/>
  80.  
  81. <FrameLayout
  82. android:layout_width="0dp"
  83. android:layout_height="@dimen/_50sdp"
  84. android:layout_weight="1"
  85. android:alpha="0.5"
  86. android:background="@android:color/background_dark">
  87.  
  88. <ImageView
  89. android:id="@+id/image4"
  90. android:scaleType="centerCrop"
  91. android:adjustViewBounds="true"
  92. android:layout_width="match_parent"
  93. android:layout_height="match_parent" />
  94.  
  95. <TextView
  96. android:layout_width="match_parent"
  97. android:layout_gravity="center"
  98. android:layout_height="match_parent"
  99. android:alpha="0.5"
  100. android:background="@android:color/background_dark"
  101. android:gravity="center"
  102. android:text="See All Photos"
  103. android:fontFamily="@font/poppins_regular"
  104. android:textSize="@dimen/_8sdp"
  105. android:textColor="@android:color/white" />
  106. </FrameLayout>
  107. </LinearLayout>
  108. </LinearLayout>
  109.  
  110.  
  111. <android.support.v7.widget.Toolbar
  112. android:id="@+id/toolbar"
  113. android:layout_width="match_parent"
  114. android:layout_height="wrap_content"
  115. app:layout_collapseMode="pin"
  116. android:layout_marginTop="@dimen/_20sdp">
  117.  
  118. <ImageView
  119. android:id="@+id/iv_back"
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content"
  122. android:src="@drawable/left_white"/>
  123.  
  124.  
  125. </android.support.v7.widget.Toolbar>
  126. </android.support.design.widget.CollapsingToolbarLayout>
  127. </android.support.design.widget.AppBarLayout>
  128.  
  129.  
  130. <android.support.v4.widget.NestedScrollView
  131. android:layout_width="match_parent"
  132. android:layout_height="wrap_content"
  133. app:layout_behavior="android.support.design.widget.AppBarLayout$ScrollingViewBehavior">
  134.  
  135.  
  136. <LinearLayout
  137. android:id="@+id/content"
  138. android:layout_width="match_parent"
  139. android:layout_height="wrap_content"
  140. android:orientation="vertical"
  141. android:layout_marginBottom="@dimen/_50sdp">
  142.  
  143. <LinearLayout
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:layout_marginHorizontal="@dimen/_15sdp"
  147. android:orientation="vertical">
  148.  
  149. <LinearLayout
  150. android:layout_width="match_parent"
  151. android:layout_height="match_parent"
  152. android:layout_marginTop="10dp"
  153. android:background="@android:color/transparent"
  154. android:gravity="center_vertical"
  155. android:orientation="horizontal"
  156. android:padding="0dp">
  157.  
  158. <LinearLayout
  159. android:layout_width="match_parent"
  160. android:layout_height="wrap_content">
  161. <TextView
  162. android:id="@+id/store_name"
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:layout_marginEnd="@dimen/_5sdp"
  166. android:text="Store Name"
  167. android:fontFamily="@font/poppins_medium"
  168. android:textStyle="bold" />
  169. <android.support.v7.widget.AppCompatRatingBar
  170. style="@style/Widget.AppCompat.RatingBar.Small"
  171. android:id="@+id/rating"
  172. android:layout_width="wrap_content"
  173. android:layout_height="wrap_content"
  174. android:numStars="5"
  175. android:rating="3"
  176. android:progressTint="@color/yellow"
  177. android:layout_gravity="center"/>
  178.  
  179.  
  180. </LinearLayout>
  181. </LinearLayout>
  182. <LinearLayout
  183. android:layout_width="match_parent"
  184. android:layout_height="match_parent"
  185. android:layout_marginTop="10dp"
  186. android:background="@android:color/transparent"
  187. android:gravity="center_vertical"
  188. android:orientation="horizontal"
  189. android:padding="0dp">
  190.  
  191. <RelativeLayout
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:padding="0dp">
  195.  
  196. <TextView
  197. android:id="@+id/tv_name_category"
  198. android:layout_width="wrap_content"
  199. android:layout_height="wrap_content"
  200. android:background="@drawable/btn_border_catg"
  201. android:fontFamily="@font/poppins_regular"
  202. android:paddingStart="15dp"
  203. android:paddingTop="5dp"
  204. android:paddingEnd="15dp"
  205. android:paddingBottom="5dp"
  206. android:text="test"
  207. android:textColor="@color/dot_dark_screen2"
  208. android:textSize="13sp" />
  209.  
  210. <TextView
  211. android:id="@+id/tv_value"
  212. android:layout_width="wrap_content"
  213. android:layout_height="wrap_content"
  214. android:layout_alignTop="@+id/tv_name_category"
  215. android:layout_alignBottom="@+id/tv_name_category"
  216. android:fontFamily="@font/poppins_regular"
  217. android:layout_alignParentEnd="true"
  218. android:layout_marginStart="10dp"
  219. android:layout_marginEnd="10dp"
  220. android:gravity="center_vertical"
  221. android:src="@drawable/ic_star"
  222. android:text="8.3"
  223. android:textColor="@color/dot_dark_screen2"
  224. android:textSize="21sp"
  225. android:textStyle="bold" />
  226.  
  227. </RelativeLayout>
  228. </LinearLayout>
  229.  
  230. <LinearLayout
  231. android:layout_width="match_parent"
  232. android:layout_height="match_parent"
  233. android:layout_marginTop="10dp"
  234. android:background="@android:color/transparent"
  235. android:gravity="center_vertical"
  236. android:orientation="horizontal"
  237. android:padding="0dp">
  238.  
  239. <RelativeLayout
  240. android:layout_width="match_parent"
  241. android:layout_height="wrap_content"
  242. android:layout_marginStart="5dp"
  243. android:layout_marginEnd="0dp"
  244. android:padding="0dp">
  245.  
  246. <TextView
  247. android:id="@+id/tv_address"
  248. android:layout_width="wrap_content"
  249. android:layout_height="wrap_content"
  250. android:fontFamily="@font/poppins_medium"
  251. android:text="Ambarrukmo plaza"
  252. android:textColor="@color/half_black"
  253. android:textSize="13sp" />
  254.  
  255. <TextView
  256. android:id="@+id/tv_value_catg"
  257. android:layout_width="wrap_content"
  258. android:layout_height="wrap_content"
  259. android:layout_alignTop="@+id/tv_address"
  260. android:layout_alignBottom="@+id/tv_address"
  261. android:fontFamily="@font/poppins_regular"
  262. android:layout_alignParentEnd="true"
  263. android:layout_marginStart="10dp"
  264. android:layout_marginEnd="10dp"
  265. android:gravity="center_vertical"
  266. android:text="Impressive"
  267. android:textColor="@color/dot_dark_screen2"
  268. android:textSize="14sp"
  269. android:textStyle="bold" />
  270.  
  271. </RelativeLayout>
  272. </LinearLayout>
  273.  
  274. <LinearLayout
  275. android:layout_width="match_parent"
  276. android:layout_height="match_parent"
  277. android:layout_marginTop="30dp"
  278. android:background="@android:color/transparent"
  279. android:gravity="center_vertical"
  280. android:orientation="horizontal"
  281. android:padding="5dp">
  282.  
  283. <LinearLayout
  284. android:layout_width="match_parent"
  285. android:layout_height="match_parent"
  286. android:orientation="vertical">
  287.  
  288. <TextView
  289. android:id="@+id/tv_title_review"
  290. android:layout_width="match_parent"
  291. android:layout_height="match_parent"
  292. android:gravity="center"
  293. android:fontFamily="@font/poppins_italic"
  294. android:text="Guest talked about comfortable place"
  295. android:textColor="@color/grey500"
  296. android:textSize="12sp" />
  297.  
  298. </LinearLayout>
  299. </LinearLayout>
  300.  
  301. <!--<LinearLayout-->
  302. <!--android:layout_width="match_parent"-->
  303. <!--android:layout_height="wrap_content"-->
  304. <!--android:layout_marginTop="0dp"-->
  305. <!--android:gravity="center_vertical"-->
  306. <!--android:orientation="horizontal"-->
  307. <!--android:padding="0dp">-->
  308. <!---->
  309. <!--<LinearLayout-->
  310. <!--android:layout_width="match_parent"-->
  311. <!--android:layout_height="match_parent"-->
  312. <!--android:orientation="vertical">-->
  313.  
  314. <LinearLayout
  315. android:layout_width="match_parent"
  316. android:layout_height="match_parent"
  317. android:layout_marginStart="10dp"
  318. android:layout_marginTop="0dp"
  319. android:layout_marginEnd="10dp"
  320. android:background="@android:color/transparent"
  321. android:gravity="center_vertical"
  322. android:orientation="horizontal"
  323. android:padding="5dp">
  324.  
  325. <LinearLayout
  326. android:layout_width="match_parent"
  327. android:layout_height="match_parent"
  328. android:orientation="vertical">
  329.  
  330. <TextView
  331. android:id="@+id/tv_desc_review"
  332. android:layout_width="match_parent"
  333. android:layout_height="match_parent"
  334. android:drawableStart="@drawable/ic_chevron_left"
  335. android:drawableEnd="@drawable/ic_chevron_right"
  336. android:drawablePadding="10dp"
  337. android:drawableTint="@color/dot_dark_screen1"
  338. android:gravity="center"
  339. android:text="Comfortable place around Gandaria for eating with family, cheap, and clean."
  340. android:textColor="@android:color/black"
  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="0dp"
  351. android:background="@android:color/transparent"
  352. android:gravity="center_vertical"
  353. android:orientation="horizontal"
  354. android:padding="5dp">
  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_name_review"
  363. android:layout_width="match_parent"
  364. android:layout_height="match_parent"
  365. android:gravity="center"
  366. android:text="H.Saeb Riyadh"
  367. android:textColor="@color/grey500"
  368. android:textSize="13sp"
  369. android:textStyle="bold" />
  370.  
  371. </LinearLayout>
  372. </LinearLayout>
  373.  
  374. <LinearLayout
  375. android:visibility="gone"
  376. android:id="@+id/card_viewslider"
  377. android:layout_width="match_parent"
  378. android:layout_height="wrap_content"
  379. android:orientation="horizontal"
  380. android:layout_margin="0dp">
  381. <RelativeLayout
  382. android:id="@+id/rvPromoBanner"
  383. android:layout_width="match_parent"
  384. android:layout_height="match_parent">
  385.  
  386. <FrameLayout
  387. android:layout_width="match_parent"
  388. android:layout_height="match_parent">
  389.  
  390. <android.support.v4.view.ViewPager
  391. android:id="@+id/viewPager"
  392. android:layout_width="wrap_content"
  393. android:layout_height="match_parent" />
  394.  
  395. </FrameLayout>
  396.  
  397.  
  398.  
  399. <ImageView
  400. android:id="@+id/next"
  401. android:layout_width="40dp"
  402. android:layout_height="40dp"
  403. android:background="@drawable/ic_chevron_right"
  404. android:layout_marginEnd="10dp"
  405. android:backgroundTint="@color/yellow"
  406. android:layout_centerInParent="true"
  407. android:layout_alignParentRight="true"
  408. android:layout_alignParentEnd="true"/>
  409.  
  410. <ImageView
  411. android:id="@+id/previous"
  412. android:layout_width="40dp"
  413. android:layout_height="40dp"
  414. android:layout_marginStart="10dp"
  415. android:backgroundTint="@color/yellow"
  416. android:background="@drawable/ic_chevron_left"
  417. android:layout_alignParentLeft="true"
  418. android:layout_centerInParent="true"
  419. android:layout_alignParentStart="true"
  420. android:layout_alignTop="@+id/next"/>
  421. <!---->
  422. </RelativeLayout>
  423. <!--</LinearLayout>-->
  424. <!--</LinearLayout>-->
  425. </LinearLayout>
  426.  
  427.  
  428. <!--<LinearLayout-->
  429. <!--android:layout_width="match_parent"-->
  430. <!--android:layout_height="match_parent"-->
  431. <!--android:layout_marginTop="0dp"-->
  432. <!--android:background="@android:color/transparent"-->
  433. <!--android:gravity="center_vertical"-->
  434. <!--android:orientation="horizontal"-->
  435. <!--android:padding="5dp">-->
  436.  
  437. <!--<LinearLayout-->
  438. <!--android:layout_width="match_parent"-->
  439. <!--android:layout_height="match_parent"-->
  440. <!--android:orientation="vertical">-->
  441.  
  442. <!--<TextView-->
  443. <!--android:id="@+id/tv_name_review"-->
  444. <!--android:layout_width="match_parent"-->
  445. <!--android:layout_height="match_parent"-->
  446. <!--android:gravity="center"-->
  447. <!--android:text="H.Saeb Riyadh"-->
  448. <!--android:textColor="@color/grey500"-->
  449. <!--android:textSize="13sp"-->
  450. <!--android:textStyle="bold" />-->
  451.  
  452. <!--</LinearLayout>-->
  453. <!--</LinearLayout>-->
  454.  
  455. <LinearLayout
  456. android:layout_width="match_parent"
  457. android:layout_height="match_parent"
  458. android:layout_marginTop="30dp"
  459. android:background="@android:color/transparent"
  460. android:gravity="center_vertical"
  461. android:orientation="horizontal"
  462. android:padding="10dp">
  463.  
  464. <LinearLayout
  465. android:layout_width="match_parent"
  466. android:layout_height="match_parent"
  467. android:orientation="vertical">
  468.  
  469. <TextView
  470. android:id="@+id/tv_notice"
  471. android:layout_width="match_parent"
  472. android:layout_height="match_parent"
  473. android:gravity="center"
  474. android:fontFamily="@font/poppins_regular"
  475. android:text="Restaurant Description"
  476. android:textColor="@android:color/black"
  477. android:textSize="14sp"
  478. android:textStyle="bold" />
  479.  
  480. </LinearLayout>
  481. </LinearLayout>
  482.  
  483. <LinearLayout
  484. android:layout_width="match_parent"
  485. android:layout_height="match_parent"
  486. android:layout_marginStart="0dp"
  487. android:layout_marginTop="0dp"
  488. android:layout_marginEnd="0dp"
  489. android:background="@android:color/transparent"
  490. android:orientation="horizontal"
  491. android:padding="5dp">
  492.  
  493. <LinearLayout
  494. android:layout_width="match_parent"
  495. android:layout_height="match_parent"
  496. android:orientation="vertical">
  497.  
  498. <TextView
  499. android:id="@+id/description"
  500. android:layout_width="match_parent"
  501. android:layout_height="match_parent"
  502. android:gravity="left"
  503. android:fontFamily="@font/poppins_regular"
  504. android:text="@string/terms"
  505. android:textColor="@color/black_semi_transparent"
  506. android:textSize="13sp" />
  507.  
  508. </LinearLayout>
  509. </LinearLayout>
  510.  
  511.  
  512. </LinearLayout>
  513.  
  514. </LinearLayout>
  515.  
  516. </android.support.v4.widget.NestedScrollView>
  517.  
  518. <FrameLayout
  519. android:layout_width="match_parent"
  520. android:layout_height="wrap_content"
  521. android:nestedScrollingEnabled="false"
  522. android:background="?attr/selectableItemBackgroundBorderless"
  523. android:layout_gravity="bottom">
  524.  
  525.  
  526. <Button
  527. android:id="@+id/btn_get_voucher"
  528. android:layout_width="match_parent"
  529. android:layout_height="match_parent"
  530. android:layout_gravity="center_horizontal"
  531. android:layout_marginStart="20dp"
  532. android:layout_marginEnd="20dp"
  533. android:layout_marginTop="10dp"
  534. android:layout_marginBottom="20dp"
  535. android:background="@drawable/btn_change"
  536. android:paddingStart="40dp"
  537. android:paddingEnd="40dp"
  538. android:text="GET VOUCHER"
  539. android:fontFamily="@font/poppins_medium"
  540. android:textAllCaps="false"
  541. android:textColor="@android:color/white"
  542. android:textSize="13sp"
  543. android:textStyle="bold" />
  544.  
  545.  
  546.  
  547. </FrameLayout>
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement