Advertisement
jonathanhalim

activitymain.xml

Jan 18th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:mapbox="http://schemas.android.com/apk/res-auto"
  6. xmlns:tools="http://schemas.android.com/tools"
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. tools:context=".MainActivity">
  10.  
  11. <include
  12. android:id="@+id/main_menu"
  13. layout="@layout/main_menu"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent" />
  16.  
  17. <include
  18. android:id="@+id/history_menu"
  19. layout="@layout/main_history"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:visibility="gone" />
  23.  
  24. <LinearLayout
  25. android:id="@+id/bottom_navigation_bar_main"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:layout_gravity="bottom"
  29. android:orientation="vertical">
  30.  
  31. <LinearLayout
  32. android:id="@+id/linear_wrap_navigate_routes_main"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_marginBottom="30dp"
  36. android:gravity="center"
  37. android:weightSum="2"
  38. android:visibility="gone">
  39.  
  40. <LinearLayout
  41. android:id="@+id/linear_navigate_main"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:background="@drawable/rectangle_rounded_blue"
  45. android:orientation="horizontal"
  46. android:paddingTop="4dp"
  47. android:paddingBottom="4dp">
  48.  
  49. <ImageView
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_marginStart="20dp"
  53. android:background="@drawable/navigate_blue_24dp" />
  54.  
  55. <TextView
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:layout_gravity="center_vertical"
  59. android:layout_marginStart="4dp"
  60. android:layout_marginEnd="20dp"
  61. android:text="Navigate"
  62. android:textColor="@android:color/white"
  63. android:textStyle="bold" />
  64. </LinearLayout>
  65.  
  66. <LinearLayout
  67. android:id="@+id/linear_Routes_main"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_marginStart="20dp"
  71. android:background="@drawable/rectangle_rounded_blue"
  72. android:orientation="horizontal"
  73. android:paddingTop="4dp"
  74. android:paddingBottom="4dp"
  75. >
  76.  
  77. <ImageView
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:layout_marginStart="20dp"
  81. android:background="@drawable/route_24dp" />
  82.  
  83. <TextView
  84. android:layout_width="wrap_content"
  85. android:layout_height="wrap_content"
  86. android:layout_gravity="center_vertical"
  87. android:layout_marginStart="4dp"
  88. android:layout_marginEnd="20dp"
  89. android:text="Routes"
  90. android:textColor="@android:color/white"
  91. android:textStyle="bold" />
  92. </LinearLayout>
  93.  
  94. </LinearLayout>
  95.  
  96. <LinearLayout
  97. android:id="@+id/linear_layout_bottom"
  98. android:layout_width="match_parent"
  99. android:layout_height="wrap_content"
  100. android:layout_alignParentBottom="true"
  101. android:layout_gravity="bottom"
  102. android:background="#FFF"
  103. android:orientation="horizontal"
  104. android:outlineSpotShadowColor="@color/colorPrimary"
  105. android:weightSum="2">
  106.  
  107. <LinearLayout
  108. android:id="@+id/map_main"
  109. android:layout_width="match_parent"
  110. android:layout_height="wrap_content"
  111. android:layout_weight="1"
  112. android:orientation="vertical"
  113. android:paddingTop="5dp"
  114. android:paddingBottom="3dp">
  115.  
  116. <ImageView
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:layout_gravity="center"
  120. android:background="@drawable/map_gray_24dp" />
  121.  
  122. <TextView
  123. android:layout_width="wrap_content"
  124. android:layout_height="wrap_content"
  125. android:layout_gravity="center"
  126. android:fontFamily="@font/josefin_sans"
  127. android:text="Maps"
  128. android:textAlignment="center"
  129. android:textColor="#616161"
  130. android:textSize="12sp" />
  131. </LinearLayout>
  132.  
  133.  
  134. <LinearLayout
  135. android:id="@+id/history_main"
  136. android:layout_width="match_parent"
  137. android:layout_height="match_parent"
  138. android:layout_weight="1"
  139. android:orientation="vertical"
  140. android:paddingTop="3dp"
  141. android:paddingBottom="5dp">
  142.  
  143. <ImageView
  144. android:layout_width="wrap_content"
  145. android:layout_height="wrap_content"
  146. android:layout_gravity="center"
  147. android:background="@drawable/history_gray_24dp" />
  148.  
  149. <TextView
  150. android:layout_width="wrap_content"
  151. android:layout_height="wrap_content"
  152. android:layout_gravity="center"
  153. android:fontFamily="@font/josefin_sans"
  154. android:text="History"
  155. android:textColor="#616161"
  156. android:textSize="12sp" />
  157. </LinearLayout>
  158. </LinearLayout>
  159. </LinearLayout>
  160. </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement