Guest User

Untitled

a guest
Jul 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.39 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. tools:context=".activity.MainActivity"
  8. android:background="@color/white">
  9.  
  10. <android.support.design.widget.AppBarLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:fitsSystemWindows="true"
  14. android:id="@+id/appbar"
  15. android:theme="@style/AppTheme.AppBarOverlay">
  16.  
  17. <android.support.design.widget.CollapsingToolbarLayout
  18. android:layout_width="match_parent"
  19. android:id="@+id/ctolbar"
  20. android:fitsSystemWindows="true"
  21. app:contentScrim="@color/colorPrimary"
  22. app:expandedTitleMargin="5dp"
  23. app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
  24. android:layout_height="match_parent">
  25.  
  26. <RelativeLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="@dimen/_200sdp"
  29. android:orientation="vertical">
  30.  
  31. <RelativeLayout
  32. android:id="@+id/layout_top"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent">
  35.  
  36. <FrameLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent">
  39.  
  40. <android.support.v4.view.ViewPager
  41. android:id="@+id/viewPager"
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent" />
  44.  
  45. </FrameLayout>
  46.  
  47. <me.relex.circleindicator.CircleIndicator
  48. android:id="@+id/indicator"
  49. android:layout_width="match_parent"
  50. android:layout_height="@dimen/_48sdp"
  51. android:layout_gravity="bottom"
  52. app:ci_animator="@animator/indicator_animator"
  53. app:ci_animator_reverse="@animator/indicator_animator_reverse"
  54. app:ci_drawable="@drawable/black_radius_square"
  55. app:ci_height="@dimen/_4sdp"
  56. app:ci_margin="@dimen/_6sdp"
  57. android:layout_marginBottom="@dimen/_5sdp"
  58. app:ci_width="@dimen/_10sdp"
  59. android:layout_alignParentBottom="true"/>
  60.  
  61. </RelativeLayout>
  62.  
  63. </RelativeLayout>
  64.  
  65. <!--<View
  66. android:layout_width="match_parent"
  67. android:layout_height="160dp"
  68. android:layout_gravity="bottom"
  69. android:background="@drawable/scrim"/>-->
  70.  
  71. <android.support.v7.widget.Toolbar
  72. android:id="@+id/toolbar"
  73. android:layout_width="match_parent"
  74. android:layout_height="?attr/actionBarSize"
  75. app:layout_collapseMode="pin"
  76. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
  77. <TextView
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:gravity="right"
  81. android:textSize="@dimen/_2sdp"
  82. android:textColor="#4D212121"
  83. android:text="MM" />
  84. </android.support.design.widget.CollapsingToolbarLayout>
  85. </android.support.design.widget.AppBarLayout>
  86.  
  87.  
  88. <android.support.v4.widget.NestedScrollView
  89. android:layout_width="match_parent"
  90. android:id="@+id/nested"
  91. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  92. android:layout_marginBottom="@dimen/_45sdp"
  93. app:behavior_overlapTop="@dimen/_34sdp"
  94. android:layout_height="match_parent">
  95.  
  96. <LinearLayout
  97. android:id="@+id/lnmain"
  98. android:layout_width="match_parent"
  99. android:layout_height="match_parent"
  100. android:visibility="gone"
  101. android:layout_marginTop="@dimen/_15sdp"
  102. android:orientation="vertical">
  103.  
  104. <RelativeLayout
  105. android:id="@+id/rlsearch"
  106. android:layout_width="match_parent"
  107. android:layout_height="match_parent"
  108. android:descendantFocusability="beforeDescendants"
  109. android:focusableInTouchMode="true">
  110.  
  111. <EditText
  112. android:id="@+id/editsearch"
  113. android:layout_width="match_parent"
  114. android:layout_height="@dimen/_40sdp"
  115. android:background="@drawable/search_edittext"
  116. android:hint="Search Events"
  117. android:shadowColor = "#39ffff"
  118. android:focusableInTouchMode="true"
  119. android:maxLength="100"
  120. android:paddingLeft="@dimen/_10sdp"
  121. android:paddingRight="@dimen/_10sdp"
  122. android:layout_marginRight="@dimen/_5sdp"
  123. android:layout_marginLeft="@dimen/_5sdp"
  124. android:textColor="@color/black"
  125. android:singleLine="true"
  126. android:imeOptions="actionDone"
  127. android:drawableRight="@drawable/ic_search_black_24dp"
  128. android:layout_marginBottom="@dimen/_5sdp"/>
  129.  
  130. </RelativeLayout>
  131.  
  132. <LinearLayout
  133. android:id="@+id/lnweekend"
  134. android:layout_width="match_parent"
  135. android:layout_height="wrap_content"
  136. android:layout_marginRight="@dimen/_10sdp"
  137. android:layout_marginLeft="@dimen/_10sdp"
  138. android:layout_marginTop="@dimen/_5sdp"
  139. android:layout_marginBottom="@dimen/_5sdp"
  140. android:orientation="vertical">
  141.  
  142. <LinearLayout
  143. android:layout_width="match_parent"
  144. android:layout_height="wrap_content"
  145. android:layout_marginBottom="@dimen/_10sdp"
  146. android:orientation="horizontal">
  147.  
  148. <TextView
  149. android:id="@+id/tvweekend"
  150. android:layout_width="wrap_content"
  151. android:layout_height="wrap_content"
  152. android:layout_gravity="start|center_vertical"
  153. android:layout_weight="1"
  154. android:textSize="@dimen/_15sdp"
  155. android:textColor="@color/black"
  156. android:text="Popular This Weekend"/>
  157.  
  158. <TextView
  159. android:id="@+id/tvweekendviewmore"
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:gravity="right"
  163. android:layout_weight="1"
  164. android:layout_gravity="right|center_vertical"
  165. android:textColor="@color/text"
  166. android:textSize="@dimen/_10sdp"
  167. android:text="@string/more"/>
  168. </LinearLayout>
  169.  
  170. <com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView
  171. android:id="@+id/rvweekend"
  172. android:layout_width="match_parent"
  173. android:layout_height="wrap_content"
  174. android:layout_gravity="center_vertical"
  175. app:msrv_gravity="start"
  176. app:msrv_ms_per_inch="@dimen/normal_speed"
  177. app:msrv_snap_count="1" />
  178.  
  179.  
  180. </LinearLayout>
  181.  
  182. <LinearLayout
  183. android:id="@+id/lnevents"
  184. android:layout_width="match_parent"
  185. android:layout_height="wrap_content"
  186. android:layout_marginRight="@dimen/_10sdp"
  187. android:layout_marginLeft="@dimen/_10sdp"
  188. android:layout_marginTop="@dimen/_5sdp"
  189. android:layout_marginBottom="@dimen/_5sdp"
  190. android:orientation="vertical">
  191.  
  192. <LinearLayout
  193. android:layout_width="match_parent"
  194. android:layout_height="wrap_content"
  195. android:layout_marginBottom="@dimen/_10sdp"
  196. android:orientation="horizontal">
  197.  
  198. <TextView
  199. android:id="@+id/tvevents"
  200. android:layout_width="wrap_content"
  201. android:layout_height="wrap_content"
  202. android:layout_gravity="start|center_vertical"
  203. android:layout_weight="1"
  204. android:textSize="@dimen/_15sdp"
  205. android:textColor="@color/black"
  206. android:text="Popular Events"/>
  207.  
  208. <TextView
  209. android:id="@+id/tveventsviewmore"
  210. android:layout_width="wrap_content"
  211. android:layout_height="wrap_content"
  212. android:gravity="right"
  213. android:layout_weight="1"
  214. android:layout_gravity="right|center_vertical"
  215. android:textColor="@color/text"
  216. android:textSize="@dimen/_10sdp"
  217. android:text="@string/more"/>
  218. </LinearLayout>
  219.  
  220. <com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView
  221. android:id="@+id/rvevents"
  222. android:layout_width="match_parent"
  223. android:layout_height="wrap_content"
  224. android:layout_gravity="center_vertical"
  225. app:msrv_gravity="start"
  226. app:msrv_ms_per_inch="@dimen/normal_speed"
  227. app:msrv_snap_count="1" />
  228.  
  229.  
  230. </LinearLayout>
  231.  
  232. <LinearLayout
  233. android:id="@+id/lnconcert"
  234. android:layout_width="match_parent"
  235. android:layout_height="wrap_content"
  236. android:layout_marginRight="@dimen/_10sdp"
  237. android:layout_marginLeft="@dimen/_10sdp"
  238. android:layout_marginTop="@dimen/_5sdp"
  239. android:layout_marginBottom="@dimen/_5sdp"
  240. android:orientation="vertical">
  241.  
  242. <LinearLayout
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content"
  245. android:layout_marginBottom="@dimen/_10sdp"
  246. android:orientation="horizontal">
  247.  
  248. <TextView
  249. android:id="@+id/tvconsert"
  250. android:layout_width="wrap_content"
  251. android:layout_height="wrap_content"
  252. android:layout_gravity="start|center_vertical"
  253. android:layout_weight="1"
  254. android:textSize="@dimen/_15sdp"
  255. android:textColor="@color/black"
  256. android:text="Trending Concerts"/>
  257.  
  258. <TextView
  259. android:id="@+id/tvconsertviewmore"
  260. android:layout_width="wrap_content"
  261. android:layout_height="wrap_content"
  262. android:gravity="right"
  263. android:layout_weight="1"
  264. android:layout_gravity="right|center_vertical"
  265. android:textColor="@color/text"
  266. android:textSize="@dimen/_10sdp"
  267. android:text="@string/more"/>
  268. </LinearLayout>
  269.  
  270. <com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView
  271. android:id="@+id/rvconcert"
  272. android:layout_width="match_parent"
  273. android:layout_height="wrap_content"
  274. android:layout_gravity="center_vertical"
  275. app:msrv_gravity="start"
  276. app:msrv_ms_per_inch="@dimen/normal_speed"
  277. app:msrv_snap_count="1" />
  278.  
  279.  
  280. </LinearLayout>
  281.  
  282. <LinearLayout
  283. android:id="@+id/lnsport"
  284. android:layout_width="match_parent"
  285. android:layout_height="wrap_content"
  286. android:layout_marginRight="@dimen/_10sdp"
  287. android:layout_marginLeft="@dimen/_10sdp"
  288. android:layout_marginTop="@dimen/_5sdp"
  289. android:layout_marginBottom="@dimen/_5sdp"
  290. android:orientation="vertical">
  291.  
  292. <LinearLayout
  293. android:layout_width="match_parent"
  294. android:layout_height="wrap_content"
  295. android:layout_marginBottom="@dimen/_10sdp"
  296. android:orientation="horizontal">
  297.  
  298. <TextView
  299. android:id="@+id/tvsport"
  300. android:layout_width="wrap_content"
  301. android:layout_height="wrap_content"
  302. android:layout_gravity="start|center_vertical"
  303. android:layout_weight="1"
  304. android:textSize="@dimen/_15sdp"
  305. android:textColor="@color/black"
  306. android:text="Trending Sports"/>
  307.  
  308. <TextView
  309. android:id="@+id/tvsportviewmore"
  310. android:layout_width="wrap_content"
  311. android:layout_height="wrap_content"
  312. android:gravity="right"
  313. android:layout_weight="1"
  314. android:layout_gravity="right|center_vertical"
  315. android:textColor="@color/text"
  316. android:textSize="@dimen/_10sdp"
  317. android:text="@string/more"/>
  318. </LinearLayout>
  319.  
  320. <com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView
  321. android:id="@+id/rvsports"
  322. android:layout_width="match_parent"
  323. android:layout_height="wrap_content"
  324. android:layout_gravity="center_vertical"
  325. app:msrv_gravity="start"
  326. app:msrv_ms_per_inch="@dimen/normal_speed"
  327. app:msrv_snap_count="1" />
  328. <!--<android.support.v7.widget.RecyclerView
  329. android:id="@+id/rvsports"
  330. android:layout_width="match_parent"
  331. android:layout_height="wrap_content"
  332. android:clipToPadding="false"
  333. android:scrollbars="horizontal" />-->
  334.  
  335. </LinearLayout>
  336.  
  337. <LinearLayout
  338. android:id="@+id/lntheater"
  339. android:layout_width="match_parent"
  340. android:layout_height="wrap_content"
  341. android:layout_marginRight="@dimen/_10sdp"
  342. android:layout_marginLeft="@dimen/_10sdp"
  343. android:layout_marginTop="@dimen/_5sdp"
  344. android:layout_marginBottom="@dimen/_5sdp"
  345. android:orientation="vertical">
  346.  
  347. <LinearLayout
  348. android:layout_width="match_parent"
  349. android:layout_height="wrap_content"
  350. android:layout_marginBottom="@dimen/_10sdp"
  351. android:orientation="horizontal">
  352.  
  353. <TextView
  354. android:id="@+id/tvtheater"
  355. android:layout_width="wrap_content"
  356. android:layout_height="wrap_content"
  357. android:layout_gravity="start|center_vertical"
  358. android:layout_weight="1"
  359. android:textSize="@dimen/_15sdp"
  360. android:textColor="@color/black"
  361. android:text="Trending Theater"/>
  362.  
  363. <TextView
  364. android:id="@+id/tvtheaterviewmore"
  365. android:layout_width="wrap_content"
  366. android:layout_height="wrap_content"
  367. android:gravity="right"
  368. android:layout_weight="1"
  369. android:layout_gravity="right|center_vertical"
  370. android:textColor="@color/text"
  371. android:textSize="@dimen/_10sdp"
  372. android:text="@string/more"/>
  373. </LinearLayout>
  374.  
  375. <com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView
  376. android:id="@+id/rvtheater"
  377. android:layout_width="match_parent"
  378. android:layout_height="wrap_content"
  379. android:layout_gravity="center_vertical"
  380. app:msrv_gravity="start"
  381. app:msrv_ms_per_inch="@dimen/normal_speed"
  382. app:msrv_snap_count="1" />
  383.  
  384. <!--<android.support.v7.widget.RecyclerView
  385. android:id="@+id/rvtheater"
  386. android:layout_width="match_parent"
  387. android:layout_height="wrap_content"
  388. android:clipToPadding="false"
  389. android:scrollbars="horizontal" />-->
  390.  
  391. </LinearLayout>
  392.  
  393. <LinearLayout
  394. android:id="@+id/lnother"
  395. android:layout_width="match_parent"
  396. android:layout_height="wrap_content"
  397. android:layout_marginRight="@dimen/_10sdp"
  398. android:layout_marginLeft="@dimen/_10sdp"
  399. android:layout_marginTop="@dimen/_5sdp"
  400. android:layout_marginBottom="@dimen/_5sdp"
  401. android:orientation="vertical">
  402.  
  403. <LinearLayout
  404. android:layout_width="match_parent"
  405. android:layout_height="wrap_content"
  406. android:layout_marginBottom="@dimen/_10sdp"
  407. android:orientation="horizontal">
  408.  
  409. <TextView
  410. android:id="@+id/tvother"
  411. android:layout_width="wrap_content"
  412. android:layout_height="wrap_content"
  413. android:layout_gravity="start|center_vertical"
  414. android:layout_weight="1"
  415. android:textSize="@dimen/_15sdp"
  416. android:textColor="@color/black"
  417. android:text="Trending Other"/>
  418.  
  419. <TextView
  420. android:id="@+id/tvotherviewmore"
  421. android:layout_width="wrap_content"
  422. android:layout_height="wrap_content"
  423. android:gravity="right"
  424. android:layout_weight="1"
  425. android:layout_gravity="right|center_vertical"
  426. android:textColor="@color/text"
  427. android:textSize="@dimen/_10sdp"
  428. android:text="@string/more"/>
  429. </LinearLayout>
  430.  
  431. <com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView
  432. android:id="@+id/rvother"
  433. android:layout_width="match_parent"
  434. android:layout_height="wrap_content"
  435. android:layout_gravity="center_vertical"
  436. app:msrv_gravity="start"
  437. app:msrv_ms_per_inch="@dimen/normal_speed"
  438. app:msrv_snap_count="1" />
  439. <!--<android.support.v7.widget.RecyclerView
  440. android:id="@+id/rvother"
  441. android:layout_width="match_parent"
  442. android:layout_height="wrap_content"
  443. android:clipToPadding="false"
  444. android:scrollbars="horizontal" />-->
  445.  
  446. </LinearLayout>
  447.  
  448. <TextView
  449. android:layout_width="match_parent"
  450. android:layout_height="wrap_content"
  451. android:gravity="right"
  452. android:textSize="@dimen/_2sdp"
  453. android:textColor="#4D212121"
  454. android:text="MM" />
  455.  
  456. </LinearLayout>
  457.  
  458. </android.support.v4.widget.NestedScrollView>
  459.  
  460. <ProgressBar
  461. android:visibility="gone"
  462. android:id="@+id/progressBar"
  463. android:layout_width="wrap_content"
  464. android:layout_height="wrap_content"
  465. android:indeterminate="true"
  466. android:layout_gravity="center"
  467. android:indeterminateTint="@color/colorPrimary"
  468. android:layout_centerVertical="true" />
  469.  
  470.  
  471. <io.saeid.fabloading.LoadingView
  472. android:id="@+id/loading_view_repeat"
  473. android:layout_width="wrap_content"
  474. android:layout_height="wrap_content"
  475. app:mfl_onclickLoading="true"
  476. android:layout_gravity="center"
  477. android:visibility="visible"
  478. android:scaleX="1"
  479. android:scaleY="1"
  480. app:mfl_duration="400"
  481. app:mfl_repeat="100" />
  482.  
  483. <LinearLayout
  484. android:id="@+id/lnloading"
  485. android:layout_width="match_parent"
  486. android:layout_height="wrap_content"
  487. android:layout_gravity="center"
  488. android:gravity="center_horizontal"
  489. android:layout_marginTop="@dimen/_80sdp"
  490. android:visibility="visible"
  491. android:orientation="horizontal">
  492.  
  493.  
  494. <TextView
  495. android:id="@+id/tvloading"
  496. android:layout_width="wrap_content"
  497. android:layout_height="wrap_content"
  498. android:text="@string/loading"
  499. android:textColor="@color/black"
  500. android:layout_marginRight="@dimen/_5sdp"
  501. android:textStyle="bold"
  502. android:textSize="@dimen/_10sdp"/>
  503.  
  504. <com.bhargavms.dotloader.DotLoader
  505. android:layout_width="wrap_content"
  506. android:layout_height="@dimen/_10sdp"
  507. app:dot_radius="@dimen/_2sdp"
  508. app:color_array="@array/dot_colors"
  509. android:layout_gravity="bottom"
  510. app:number_of_dots="3"/>
  511. </LinearLayout>
  512.  
  513. <RelativeLayout
  514. android:id="@+id/rlerror"
  515. android:layout_width="wrap_content"
  516. android:layout_height="wrap_content"
  517. android:visibility="gone"
  518. android:layout_gravity="center">
  519.  
  520. <ImageView
  521. android:id="@+id/imgerror"
  522. android:layout_width="@dimen/_125sdp"
  523. android:layout_height="@dimen/_125sdp"
  524. android:visibility="visible"
  525. android:layout_centerHorizontal="true"
  526. android:background="@drawable/no_conncectionp" />
  527.  
  528. <TextView
  529. android:id="@+id/tverror"
  530. android:layout_width="wrap_content"
  531. android:layout_height="wrap_content"
  532. android:visibility="visible"
  533. android:textColor="@color/black"
  534. android:textStyle="bold"
  535. android:layout_centerHorizontal="true"
  536. android:textSize="@dimen/_18sdp"
  537. android:layout_marginTop="@dimen/_10sdp"
  538. android:layout_below="@id/imgerror"
  539. android:text="Whoops" />
  540.  
  541. <TextView
  542. android:id="@+id/tvstatus"
  543. android:layout_width="wrap_content"
  544. android:layout_height="wrap_content"
  545. android:visibility="visible"
  546. android:textColor="@color/text"
  547. android:layout_centerHorizontal="true"
  548. android:layout_marginTop="@dimen/_10sdp"
  549. android:layout_gravity="center_horizontal"
  550. android:textSize="@dimen/album_title"
  551. android:layout_below="@id/tverror"
  552. android:text="No Data" />
  553. </RelativeLayout>
  554.  
  555.  
  556. <RelativeLayout
  557. android:id="@+id/bottomnavigation"
  558. android:layout_width="match_parent"
  559. android:layout_height="@dimen/_45sdp"
  560. android:layout_gravity="bottom"
  561. android:layout_alignParentBottom="true">
  562.  
  563. <com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
  564. android:id="@+id/bottomNavViewBar"
  565. android:layout_width="match_parent"
  566. android:layout_height="@dimen/_43sdp"
  567. android:layout_alignParentBottom="true"
  568. android:background="@android:color/white"
  569. app:itemIconTint="@color/selector_item_primary_color"
  570. app:itemTextColor="@color/selector_item_primary_color"
  571. app:menu="@menu/bottom_navigation_menu_3" />
  572.  
  573. </RelativeLayout>
  574.  
  575. </android.support.design.widget.CoordinatorLayout>
Add Comment
Please, Sign In to add comment