Advertisement
ricky_yulianto

Untitled

Jul 25th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.21 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.  
  302.  
  303.  
  304. <LinearLayout
  305. android:id="@+id/card_viewslider"
  306. android:layout_width="match_parent"
  307. android:layout_height="wrap_content"
  308. android:orientation="horizontal"
  309. android:layout_margin="0dp">
  310. <RelativeLayout
  311. android:id="@+id/rvPromoBanner"
  312. android:layout_width="match_parent"
  313. android:layout_height="match_parent">
  314.  
  315. <FrameLayout
  316. android:layout_width="match_parent"
  317. android:layout_height="match_parent">
  318.  
  319. <!--<android.support.v4.view.ViewPager-->
  320. <!--android:id="@+id/viewPager"-->
  321. <!--android:layout_width="wrap_content"-->
  322. <!--android:layout_height="match_parent" />-->
  323.  
  324. <android.support.v7.widget.RecyclerView
  325. android:id="@+id/rv_testimonial"
  326. android:layout_width="match_parent"
  327. android:layout_height="match_parent"
  328. android:nestedScrollingEnabled="false">
  329.  
  330. </android.support.v7.widget.RecyclerView>
  331.  
  332. </FrameLayout>
  333.  
  334.  
  335.  
  336. <ImageView
  337. android:id="@+id/next"
  338. android:layout_width="40dp"
  339. android:layout_height="40dp"
  340. android:background="@drawable/ic_chevron_right"
  341. android:layout_marginEnd="10dp"
  342. android:backgroundTint="@color/yellow"
  343. android:layout_centerInParent="true"
  344. android:layout_alignParentRight="true"
  345. android:layout_alignParentEnd="true"/>
  346.  
  347. <ImageView
  348. android:id="@+id/previous"
  349. android:layout_width="40dp"
  350. android:layout_height="40dp"
  351. android:layout_marginStart="10dp"
  352. android:backgroundTint="@color/yellow"
  353. android:background="@drawable/ic_chevron_left"
  354. android:layout_alignParentLeft="true"
  355. android:layout_centerInParent="true"
  356. android:layout_alignParentStart="true"
  357. android:layout_alignTop="@+id/next"/>
  358.  
  359. </RelativeLayout>
  360. <!--</LinearLayout>-->
  361. <!--</LinearLayout>-->
  362. </LinearLayout>
  363.  
  364.  
  365. <!--<LinearLayout-->
  366. <!--android:layout_width="match_parent"-->
  367. <!--android:layout_height="match_parent"-->
  368. <!--android:layout_marginTop="0dp"-->
  369. <!--android:background="@android:color/transparent"-->
  370. <!--android:gravity="center_vertical"-->
  371. <!--android:orientation="horizontal"-->
  372. <!--android:padding="5dp">-->
  373.  
  374. <!--<LinearLayout-->
  375. <!--android:layout_width="match_parent"-->
  376. <!--android:layout_height="match_parent"-->
  377. <!--android:orientation="vertical">-->
  378.  
  379. <!--<TextView-->
  380. <!--android:id="@+id/tv_name_review"-->
  381. <!--android:layout_width="match_parent"-->
  382. <!--android:layout_height="match_parent"-->
  383. <!--android:gravity="center"-->
  384. <!--android:text="H.Saeb Riyadh"-->
  385. <!--android:textColor="@color/grey500"-->
  386. <!--android:textSize="13sp"-->
  387. <!--android:textStyle="bold" />-->
  388.  
  389. <!--</LinearLayout>-->
  390. <!--</LinearLayout>-->
  391.  
  392. <LinearLayout
  393. android:layout_width="match_parent"
  394. android:layout_height="match_parent"
  395. android:layout_marginTop="30dp"
  396. android:background="@android:color/transparent"
  397. android:gravity="center_vertical"
  398. android:orientation="horizontal"
  399. android:padding="10dp">
  400.  
  401. <LinearLayout
  402. android:layout_width="match_parent"
  403. android:layout_height="match_parent"
  404. android:orientation="vertical">
  405.  
  406. <TextView
  407. android:id="@+id/tv_notice"
  408. android:layout_width="match_parent"
  409. android:layout_height="match_parent"
  410. android:gravity="center"
  411. android:fontFamily="@font/poppins_regular"
  412. android:text="Restaurant Description"
  413. android:textColor="@android:color/black"
  414. android:textSize="14sp"
  415. android:textStyle="bold" />
  416.  
  417. </LinearLayout>
  418. </LinearLayout>
  419.  
  420. <LinearLayout
  421. android:layout_width="match_parent"
  422. android:layout_height="match_parent"
  423. android:layout_marginStart="0dp"
  424. android:layout_marginTop="0dp"
  425. android:layout_marginEnd="0dp"
  426. android:background="@android:color/transparent"
  427. android:orientation="horizontal"
  428. android:padding="5dp">
  429.  
  430. <LinearLayout
  431. android:layout_width="match_parent"
  432. android:layout_height="match_parent"
  433. android:orientation="vertical">
  434.  
  435. <TextView
  436. android:id="@+id/description"
  437. android:layout_width="match_parent"
  438. android:layout_height="match_parent"
  439. android:gravity="left"
  440. android:fontFamily="@font/poppins_regular"
  441. android:text="@string/terms"
  442. android:textColor="@color/black_semi_transparent"
  443. android:textSize="13sp" />
  444.  
  445. </LinearLayout>
  446. </LinearLayout>
  447.  
  448.  
  449. </LinearLayout>
  450.  
  451. </LinearLayout>
  452.  
  453. </android.support.v4.widget.NestedScrollView>
  454.  
  455. <FrameLayout
  456. android:layout_width="match_parent"
  457. android:layout_height="wrap_content"
  458. android:nestedScrollingEnabled="false"
  459. android:background="?attr/selectableItemBackgroundBorderless"
  460. android:layout_gravity="bottom">
  461.  
  462.  
  463. <Button
  464. android:id="@+id/btn_get_voucher"
  465. android:layout_width="match_parent"
  466. android:layout_height="match_parent"
  467. android:layout_gravity="center_horizontal"
  468. android:layout_marginStart="20dp"
  469. android:layout_marginEnd="20dp"
  470. android:layout_marginTop="10dp"
  471. android:layout_marginBottom="20dp"
  472. android:background="@drawable/btn_change"
  473. android:paddingStart="40dp"
  474. android:paddingEnd="40dp"
  475. android:text="GET VOUCHER"
  476. android:fontFamily="@font/poppins_medium"
  477. android:textAllCaps="false"
  478. android:textColor="@android:color/white"
  479. android:textSize="13sp"
  480. android:textStyle="bold" />
  481.  
  482.  
  483.  
  484. </FrameLayout>
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement