Advertisement
ricky_yulianto

Untitled

Jul 7th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.61 KB | None | 0 0
  1. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:orientation="vertical"
  7. xmlns:card_view="http://schemas.android.com/tools"
  8. tools:context="codelabs.ambarrukmo.fragment.HomeFragment">
  9.  
  10. <FrameLayout
  11. android:id="@+id/container_content"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent">
  14.  
  15.  
  16. <!--<include-->
  17. <!--layout="@layout/error"/>-->
  18. <!--<include-->
  19. <!--layout="@layout/loading"/>-->
  20.  
  21.  
  22. <!--<android.support.v4.widget.SwipeRefreshLayout-->
  23. <!--android:id="@+id/swipe_container"-->
  24. <!--android:layout_width="match_parent"-->
  25. <!--android:layout_height="match_parent">-->
  26.  
  27.  
  28. <android.support.v4.widget.NestedScrollView
  29. android:id="@+id/container_content_nested"
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent">
  32.  
  33.  
  34. <LinearLayout
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:orientation="vertical">
  38.  
  39. <LinearLayout
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:layout_marginTop="10dp"
  43. android:background="@android:color/white"
  44. android:gravity="center_vertical"
  45. android:orientation="horizontal"
  46. android:padding="10dp">
  47.  
  48. <LinearLayout
  49. android:layout_width="0dp"
  50. android:layout_height="wrap_content"
  51. android:layout_weight="1"
  52. android:orientation="vertical">
  53.  
  54. <RelativeLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:padding="0dp">
  58.  
  59. <ImageView
  60. android:visibility="gone"
  61. android:id="@+id/img_icpoints"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:src="@drawable/ic_mypoints"/>
  65.  
  66. <TextView
  67. android:id="@+id/tv_mypoints"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_alignTop="@+id/img_icpoints"
  71. android:layout_alignBottom="@+id/img_icpoints"
  72. android:layout_marginStart="10dp"
  73. android:layout_toRightOf="@+id/img_icpoints"
  74. android:gravity="center_vertical"
  75. android:text="My Points"
  76. android:fontFamily="@font/poppins_medium"
  77. android:textColor="@android:color/black"
  78. android:textSize="13sp" />
  79.  
  80. <TextView
  81. android:id="@+id/tv_points"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_alignTop="@+id/img_icpoints"
  85. android:layout_alignBottom="@+id/img_icpoints"
  86. android:layout_alignParentEnd="true"
  87. android:gravity="center"
  88. android:paddingLeft="8dp"
  89. android:paddingRight="8dp"
  90. android:fontFamily="@font/poppins_medium"
  91. android:text="2000 Points"
  92. android:textColor="@android:color/holo_red_light"
  93. android:textSize="14sp"
  94. android:textStyle="bold" />
  95.  
  96. </RelativeLayout>
  97. </LinearLayout>
  98. </LinearLayout>
  99.  
  100. <View
  101. android:layout_width="match_parent"
  102. android:layout_height="2dp"
  103. android:layout_marginTop="5dp"
  104. android:background="@color/dash" />
  105.  
  106. <LinearLayout
  107. android:layout_width="match_parent"
  108. android:layout_height="wrap_content"
  109. android:layout_marginTop="0dp"
  110. android:gravity="center_vertical"
  111. android:orientation="horizontal"
  112. android:padding="0dp">
  113.  
  114. <LinearLayout
  115. android:layout_width="match_parent"
  116. android:layout_height="match_parent"
  117. android:orientation="vertical">
  118.  
  119.  
  120. <LinearLayout
  121. android:id="@+id/card_viewslider"
  122. android:layout_width="match_parent"
  123. android:layout_height="250dp"
  124. android:orientation="horizontal"
  125. android:layout_margin="0dp">
  126.  
  127. <RelativeLayout
  128. android:id="@+id/rvPromoBanner"
  129. android:layout_width="match_parent"
  130. android:layout_height="match_parent">
  131.  
  132. <FrameLayout
  133. android:layout_width="match_parent"
  134. android:layout_height="match_parent">
  135.  
  136. <android.support.v4.view.ViewPager
  137. android:id="@+id/viewPager"
  138. android:layout_width="wrap_content"
  139. android:layout_height="match_parent" />
  140.  
  141. <LinearLayout
  142. android:id="@+id/indicator"
  143. android:layout_width="match_parent"
  144. android:layout_height="wrap_content"
  145. android:layout_gravity="bottom"
  146. android:orientation="horizontal"
  147. android:layout_alignBottom="@id/viewPager"
  148. android:layout_centerHorizontal="true"
  149. android:visibility="visible"
  150. android:layout_marginBottom="10dp" >
  151.  
  152. </LinearLayout>
  153.  
  154.  
  155. </FrameLayout>
  156.  
  157. <ImageView
  158. android:id="@+id/next"
  159. android:layout_width="40dp"
  160. android:layout_height="40dp"
  161. android:background="@drawable/ic_chevron_right"
  162. android:layout_marginEnd="10dp"
  163. android:backgroundTint="@color/colorPrimary"
  164. android:layout_centerInParent="true"
  165. android:layout_alignParentRight="true"
  166. android:layout_alignParentEnd="true"/>
  167.  
  168. <ImageView
  169. android:id="@+id/previous"
  170. android:layout_width="40dp"
  171. android:layout_height="40dp"
  172. android:layout_marginStart="10dp"
  173. android:backgroundTint="@color/colorPrimary"
  174. android:background="@drawable/ic_chevron_left"
  175. android:layout_alignParentLeft="true"
  176. android:layout_centerInParent="true"
  177. android:layout_alignParentStart="true"
  178. android:layout_alignTop="@+id/next"/>
  179.  
  180.  
  181. </RelativeLayout>
  182.  
  183. <ImageView
  184. android:visibility="gone"
  185. android:id="@+id/img_bannertest"
  186. android:layout_width="match_parent"
  187. android:layout_height="wrap_content"
  188. android:clickable="true"
  189. android:paddingTop="10dp"
  190. android:paddingBottom="10dp"
  191. android:src="@drawable/placeholder220" />
  192.  
  193. </LinearLayout>
  194.  
  195. </LinearLayout>
  196. </LinearLayout>
  197.  
  198.  
  199. <LinearLayout
  200. android:layout_width="match_parent"
  201. android:layout_height="wrap_content"
  202. android:layout_marginTop="0dp"
  203. android:background="@android:color/white"
  204. android:gravity="center_vertical"
  205. android:orientation="horizontal"
  206. android:paddingHorizontal="@dimen/_20sdp"
  207. android:padding="0dp">
  208.  
  209.  
  210. <android.support.v7.widget.RecyclerView
  211. android:id="@+id/rv_list_promo_category"
  212. android:layout_width="match_parent"
  213. android:layout_height="wrap_content"
  214. android:nestedScrollingEnabled="false">
  215.  
  216. </android.support.v7.widget.RecyclerView>
  217. </LinearLayout>
  218.  
  219.  
  220.  
  221. <LinearLayout
  222. android:layout_width="match_parent"
  223. android:layout_height="wrap_content"
  224. android:layout_marginTop="15dp"
  225. android:background="@android:color/white"
  226. android:gravity="center_vertical"
  227. android:orientation="horizontal"
  228. android:padding="0dp">
  229.  
  230. <LinearLayout
  231. android:layout_width="0dp"
  232. android:layout_height="wrap_content"
  233. android:layout_weight="1"
  234. android:orientation="horizontal">
  235.  
  236. <RelativeLayout
  237. android:layout_width="match_parent"
  238. android:layout_height="wrap_content"
  239. android:padding="15dp">
  240.  
  241. <TextView
  242. android:id="@+id/tv_merchant"
  243. android:layout_width="wrap_content"
  244. android:layout_height="wrap_content"
  245. android:text="What's On"
  246. android:textStyle="bold"
  247. android:fontFamily="@font/poppins_light"
  248. android:textColor="@android:color/black"
  249. android:textSize="13sp" />
  250.  
  251. <View
  252. android:layout_width="35dp"
  253. android:layout_height="3dp"
  254. android:layout_marginTop="25dp"
  255. android:background="@color/colorPrimaryDark" />
  256.  
  257. <TextView
  258. android:id="@+id/tv_view_all_merch"
  259. android:layout_width="wrap_content"
  260. android:layout_height="wrap_content"
  261. android:text="View all"
  262. android:textStyle="normal"
  263. android:fontFamily="@font/poppins_medium"
  264. android:padding="5dp"
  265. android:layout_alignParentEnd="true"
  266. android:textColor="@color/blue"
  267. android:textSize="13sp" />
  268.  
  269.  
  270.  
  271. </RelativeLayout>
  272. </LinearLayout>
  273. </LinearLayout>
  274.  
  275. <LinearLayout
  276. android:layout_width="match_parent"
  277. android:layout_height="wrap_content"
  278. android:layout_marginTop="0dp"
  279. android:background="@android:color/white"
  280. android:gravity="center_vertical"
  281. android:orientation="horizontal"
  282. android:padding="0dp">
  283.  
  284.  
  285. <android.support.v7.widget.RecyclerView
  286. android:id="@+id/rv_list_merchant"
  287. android:layout_width="match_parent"
  288. android:layout_height="wrap_content"
  289. android:nestedScrollingEnabled="false">
  290.  
  291. </android.support.v7.widget.RecyclerView>
  292. </LinearLayout>
  293.  
  294. <LinearLayout
  295. android:layout_width="match_parent"
  296. android:layout_height="wrap_content"
  297. android:layout_marginTop="10dp"
  298. android:background="@color/white"
  299. android:gravity="center_vertical"
  300. android:orientation="horizontal"
  301. android:padding="10dp">
  302.  
  303. <LinearLayout
  304. android:visibility="gone"
  305. android:layout_width="0dp"
  306. android:layout_height="wrap_content"
  307. android:layout_weight="1"
  308. android:orientation="horizontal">
  309.  
  310. <RelativeLayout
  311. android:layout_width="match_parent"
  312. android:layout_height="wrap_content"
  313. android:padding="0dp">
  314.  
  315. <TextView
  316. android:id="@+id/tv_list_promo1"
  317. android:layout_width="wrap_content"
  318. android:layout_height="wrap_content"
  319. android:text="Dinner with your loved ones"
  320. android:textColor="@android:color/black"
  321. android:textStyle="bold"
  322. android:textSize="13sp" />
  323.  
  324. <View
  325. android:layout_width="35dp"
  326. android:layout_height="3dp"
  327. android:layout_marginTop="20dp"
  328. android:background="@color/colorPrimaryDark"/>
  329.  
  330. <TextView
  331. android:id="@+id/tv_viewall_merchant"
  332. android:layout_width="wrap_content"
  333. android:layout_height="wrap_content"
  334. android:layout_alignParentEnd="true"
  335. android:text="@string/viewall"
  336. android:textColor="@color/blue"
  337. android:textSize="13sp" />
  338.  
  339. </RelativeLayout>
  340. </LinearLayout>
  341. </LinearLayout>
  342.  
  343.  
  344. <LinearLayout
  345. android:visibility="gone"
  346. android:layout_width="match_parent"
  347. android:layout_height="wrap_content"
  348. android:layout_marginTop="0dp"
  349. android:background="@android:color/white"
  350. android:gravity="center_vertical"
  351. android:orientation="horizontal"
  352. android:padding="10dp">
  353.  
  354.  
  355. <android.support.v7.widget.RecyclerView
  356. android:id="@+id/rv_list_promo_home"
  357. android:layout_width="match_parent"
  358. android:layout_height="wrap_content"
  359. android:nestedScrollingEnabled="false">
  360.  
  361. </android.support.v7.widget.RecyclerView>
  362. </LinearLayout>
  363.  
  364.  
  365.  
  366. <LinearLayout
  367. android:visibility="gone"
  368. android:layout_width="match_parent"
  369. android:layout_height="wrap_content"
  370. android:layout_marginTop="10dp"
  371. android:background="@color/white"
  372. android:gravity="center_vertical"
  373. android:orientation="horizontal"
  374. android:padding="10dp">
  375.  
  376. <LinearLayout
  377. android:layout_width="0dp"
  378. android:layout_height="wrap_content"
  379. android:layout_weight="1"
  380. android:orientation="horizontal">
  381.  
  382. <RelativeLayout
  383. android:layout_width="match_parent"
  384. android:layout_height="wrap_content"
  385. android:padding="0dp">
  386.  
  387. <TextView
  388. android:id="@+id/tv_promo2"
  389. android:layout_width="wrap_content"
  390. android:layout_height="wrap_content"
  391. android:text="Heart-hearted shopping"
  392. android:textColor="@android:color/black"
  393. android:textStyle="bold"
  394. android:textSize="13sp" />
  395.  
  396. <View
  397. android:layout_width="35dp"
  398. android:layout_height="3dp"
  399. android:layout_marginTop="20dp"
  400. android:background="@color/colorPrimaryDark"/>
  401.  
  402. <TextView
  403. android:layout_width="wrap_content"
  404. android:layout_height="wrap_content"
  405. android:layout_alignParentEnd="true"
  406. android:text="@string/viewall"
  407. android:textColor="@color/blue"
  408. android:textSize="13sp" />
  409.  
  410. </RelativeLayout>
  411. </LinearLayout>
  412. </LinearLayout>
  413.  
  414. <LinearLayout
  415. android:visibility="gone"
  416. android:layout_width="match_parent"
  417. android:layout_height="wrap_content"
  418. android:layout_marginTop="0dp"
  419. android:background="@android:color/white"
  420. android:gravity="center_vertical"
  421. android:orientation="horizontal"
  422. android:padding="10dp">
  423.  
  424.  
  425. <android.support.v7.widget.RecyclerView
  426. android:id="@+id/rv_list_promo_home2"
  427. android:layout_width="match_parent"
  428. android:layout_height="wrap_content"
  429. android:nestedScrollingEnabled="false">
  430.  
  431. </android.support.v7.widget.RecyclerView>
  432. </LinearLayout>
  433.  
  434.  
  435.  
  436.  
  437. <LinearLayout
  438. android:visibility="gone"
  439. android:layout_width="match_parent"
  440. android:layout_height="wrap_content"
  441. android:layout_marginTop="10dp"
  442. android:background="@color/white"
  443. android:gravity="center_vertical"
  444. android:orientation="horizontal"
  445. android:padding="10dp">
  446.  
  447. <LinearLayout
  448. android:layout_width="0dp"
  449. android:layout_height="wrap_content"
  450. android:layout_weight="1"
  451. android:orientation="horizontal">
  452.  
  453. <RelativeLayout
  454. android:layout_width="match_parent"
  455. android:layout_height="wrap_content"
  456. android:padding="0dp">
  457.  
  458. <TextView
  459. android:id="@+id/tv_bottom_banner"
  460. android:layout_width="wrap_content"
  461. android:layout_height="wrap_content"
  462. android:text="Promo of the month"
  463. android:textColor="@android:color/black"
  464. android:textSize="13sp" />
  465.  
  466. <View
  467. android:layout_width="35dp"
  468. android:layout_height="3dp"
  469. android:layout_marginTop="20dp"
  470. android:background="@color/colorPrimaryDark"/>
  471.  
  472. <!--<TextView-->
  473. <!--android:layout_width="wrap_content"-->
  474. <!--android:layout_height="wrap_content"-->
  475. <!--android:layout_alignParentEnd="true"-->
  476. <!--android:text="@string/viewall"-->
  477. <!--android:textAppearance="?android:attr/textAppearance"-->
  478. <!--android:textColor="@color/blue"-->
  479. <!--android:textSize="13sp" />-->
  480.  
  481. </RelativeLayout>
  482. </LinearLayout>
  483. </LinearLayout>
  484.  
  485. <LinearLayout
  486. android:layout_width="match_parent"
  487. android:layout_height="wrap_content"
  488. android:layout_marginTop="0dp"
  489. android:background="@android:color/white"
  490. android:gravity="center_vertical"
  491. android:orientation="horizontal"
  492. android:padding="10dp">
  493.  
  494.  
  495. <!--<android.support.v7.widget.RecyclerView-->
  496. <!--android:id="@+id/rv_list_promo_home2"-->
  497. <!--android:layout_width="match_parent"-->
  498. <!--android:layout_height="wrap_content"-->
  499. <!--android:nestedScrollingEnabled="false">-->
  500.  
  501. <!--</android.support.v7.widget.RecyclerView>-->
  502.  
  503.  
  504. <ImageView
  505. android:id="@+id/img_top_promo"
  506. android:layout_width="match_parent"
  507. android:layout_height="wrap_content"
  508. android:scaleType="centerCrop"
  509. android:adjustViewBounds="true"
  510. android:src="@drawable/placeholder220"
  511. android:layout_marginBottom="10dp"
  512. android:layout_marginTop="0dp"/>
  513.  
  514. </LinearLayout>
  515.  
  516. <!--<LinearLayout-->
  517. <!--android:layout_width="match_parent"-->
  518. <!--android:layout_height="wrap_content"-->
  519. <!--android:layout_marginTop="0dp"-->
  520. <!--android:background="@android:color/white"-->
  521. <!--android:gravity="center_vertical"-->
  522. <!--android:orientation="horizontal"-->
  523. <!--android:padding="10dp">-->
  524.  
  525.  
  526. <!--<android.support.v7.widget.CardView-->
  527. <!--android:layout_width="75dp"-->
  528. <!--android:layout_height="85dp"-->
  529. <!--android:layout_margin="4dp"-->
  530. <!--card_view:cardBackgroundColor="@color/white_pressed"-->
  531. <!--card_view:cardCornerRadius="2dp"-->
  532. <!--card_view:cardUseCompatPadding="false"-->
  533. <!--card_view:cardElevation="5dp">-->
  534.  
  535. <!--<ImageView-->
  536. <!--android:layout_width="65dp"-->
  537. <!--android:layout_height="70dp"-->
  538. <!--android:layout_gravity="center"-->
  539. <!--android:contentDescription="@string/app_name"-->
  540. <!--android:scaleType="fitXY"-->
  541. <!--android:src="@drawable/img_merchant_1"/>-->
  542.  
  543.  
  544. <!--</android.support.v7.widget.CardView>-->
  545.  
  546. <!--<android.support.v7.widget.CardView-->
  547. <!--android:layout_width="75dp"-->
  548. <!--android:layout_height="85dp"-->
  549. <!--android:layout_margin="4dp"-->
  550. <!--card_view:cardBackgroundColor="@color/white_pressed"-->
  551. <!--card_view:cardCornerRadius="2dp"-->
  552. <!--card_view:cardUseCompatPadding="false"-->
  553. <!--card_view:cardElevation="5dp">-->
  554.  
  555. <!--<ImageView-->
  556. <!--android:layout_width="65dp"-->
  557. <!--android:layout_height="70dp"-->
  558. <!--android:layout_gravity="center"-->
  559. <!--android:contentDescription="@string/app_name"-->
  560. <!--android:scaleType="fitXY"-->
  561. <!--android:src="@drawable/img_merchant_2"/>-->
  562.  
  563.  
  564. <!--</android.support.v7.widget.CardView>-->
  565.  
  566. <!--<android.support.v7.widget.CardView-->
  567. <!--android:layout_width="75dp"-->
  568. <!--android:layout_height="85dp"-->
  569. <!--android:layout_margin="4dp"-->
  570. <!--card_view:cardBackgroundColor="@color/white_pressed"-->
  571. <!--card_view:cardCornerRadius="2dp"-->
  572. <!--card_view:cardUseCompatPadding="false"-->
  573. <!--card_view:cardElevation="5dp">-->
  574.  
  575. <!--<ImageView-->
  576. <!--android:layout_width="65dp"-->
  577. <!--android:layout_height="70dp"-->
  578. <!--android:layout_gravity="center"-->
  579. <!--android:contentDescription="@string/app_name"-->
  580. <!--android:scaleType="fitXY"-->
  581. <!--android:src="@drawable/img_merchant_3"/>-->
  582.  
  583.  
  584. <!--</android.support.v7.widget.CardView>-->
  585.  
  586. <!--</LinearLayout>-->
  587.  
  588.  
  589. </LinearLayout>
  590. </android.support.v4.widget.NestedScrollView>
  591. <!--</android.support.v4.widget.SwipeRefreshLayout>-->
  592. </FrameLayout>
  593.  
  594. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement