Guest User

Untitled

a guest
Feb 26th, 2020
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="#FFFFFF">
  7.  
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:orientation="horizontal">
  12.  
  13.  
  14. <RelativeLayout
  15. android:id="@+id/lay_product"
  16. android:layout_width="0dp"
  17. android:layout_height="match_parent"
  18. android:layout_weight="6"
  19. android:visibility="visible">
  20.  
  21. <RelativeLayout
  22. android:id="@+id/lay_data"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:layout_above="@id/tabs">
  26.  
  27. <androidx.recyclerview.widget.RecyclerView
  28. android:id="@+id/rv_produk"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:background="#F5F5F5" />
  32.  
  33. <ProgressBar
  34. android:id="@+id/pb_loading"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_centerInParent="true"
  38. android:indeterminate="true"
  39. android:indeterminateTint="#80BF44"
  40. android:indeterminateTintMode="src_atop"
  41. android:visibility="gone" />
  42. </RelativeLayout>
  43.  
  44. <FrameLayout
  45. android:id="@+id/lay_barcode_scanner"
  46. android:layout_width="match_parent"
  47. android:layout_height="match_parent"
  48. android:layout_above="@id/tabs"
  49. android:visibility="gone"></FrameLayout>
  50.  
  51.  
  52. <com.google.android.material.tabs.TabLayout
  53. android:id="@+id/tabs"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:layout_alignParentBottom="true"
  57. app:tabIndicatorColor="#80BF44"
  58. app:tabMode="scrollable"
  59. app:tabTextAppearance="@style/TabsNotCaps"></com.google.android.material.tabs.TabLayout>
  60.  
  61. </RelativeLayout>
  62.  
  63. <RelativeLayout
  64. android:id="@+id/lay_meja"
  65. android:layout_width="0dp"
  66. android:layout_height="match_parent"
  67. android:layout_weight="6"
  68. android:background="#F9F9F9"
  69. android:visibility="gone">
  70.  
  71. <RelativeLayout
  72. android:id="@+id/lay_data_meja"
  73. android:layout_width="match_parent"
  74. android:layout_height="match_parent"
  75. android:layout_above="@id/lay_bottom">
  76.  
  77. <androidx.recyclerview.widget.RecyclerView
  78. android:id="@+id/rv_meja"
  79. android:layout_width="match_parent"
  80. android:layout_height="match_parent"
  81. android:background="#F5F5F5" />
  82.  
  83. <ProgressBar
  84. android:id="@+id/pb_loading_meja"
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:layout_centerInParent="true"
  88. android:indeterminate="true"
  89. android:indeterminateTint="#F5F5F5"
  90. android:indeterminateTintMode="src_atop"
  91. android:visibility="gone" />
  92. </RelativeLayout>
  93.  
  94. <LinearLayout
  95.  
  96. android:id="@+id/lay_bottom"
  97. android:layout_width="match_parent"
  98. android:layout_height="48dp"
  99. android:layout_alignParentBottom="true"
  100. android:background="#FFFFFF"
  101. android:orientation="horizontal">
  102.  
  103. <LinearLayout
  104. android:layout_width="0dp"
  105. android:layout_height="match_parent"
  106. android:layout_weight="1"
  107. android:gravity="center_vertical">
  108.  
  109. <Spinner
  110. android:id="@+id/spin_lantai"
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"></Spinner>
  113.  
  114. <TextView
  115. android:id="@+id/jumlah_meja"
  116. android:layout_width="wrap_content"
  117. android:layout_height="wrap_content"
  118. android:layout_marginLeft="4dp"
  119. android:text="10 Meja" />
  120. </LinearLayout>
  121.  
  122. <LinearLayout
  123. android:layout_width="0dp"
  124. android:layout_height="match_parent"
  125. android:layout_weight="1"
  126. android:gravity="center_vertical|right">
  127.  
  128. <View
  129. android:layout_width="8dp"
  130. android:layout_height="8dp"
  131. android:background="#F0F0F0" />
  132.  
  133. <TextView
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_marginLeft="4dp"
  137. android:layout_marginRight="4dp"
  138. android:text="meja kosong" />
  139.  
  140. <View
  141. android:layout_width="8dp"
  142. android:layout_height="8dp"
  143. android:background="#F5F5F5" />
  144.  
  145. <TextView
  146. android:layout_width="wrap_content"
  147. android:layout_height="wrap_content"
  148. android:layout_marginLeft="4dp"
  149. android:layout_marginRight="4dp"
  150. android:text="meja terisi" />
  151.  
  152.  
  153. </LinearLayout>
  154.  
  155. </LinearLayout>
  156. </RelativeLayout>
  157. <!--<View-->
  158. <!--android:layout_width="1dp"-->
  159. <!--android:layout_height="match_parent"-->
  160. <!--android:background="@color/gray_darker" />-->
  161.  
  162.  
  163. <RelativeLayout
  164. android:layout_width="0dp"
  165. android:layout_height="match_parent"
  166. android:layout_weight="4">
  167.  
  168.  
  169. <com.google.android.material.tabs.TabLayout
  170. android:id="@+id/tab_layout"
  171. android:layout_width="match_parent"
  172. android:layout_height="wrap_content"
  173. android:background="#F0F0F0"
  174. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  175. app:tabBackground="#F0F0F0"
  176. app:tabGravity="fill"
  177. app:tabMode="fixed"
  178. app:tabSelectedTextColor="#F0F0F0"
  179. app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
  180. app:tabTextColor="#F0F0F0" />
  181.  
  182. <androidx.viewpager.widget.ViewPager
  183. android:id="@+id/view_pager"
  184. android:layout_width="wrap_content"
  185. android:layout_height="match_parent"
  186. android:layout_above="@id/ll_btn_bayar"
  187. android:layout_below="@id/tab_layout" />
  188.  
  189.  
  190. <LinearLayout
  191. android:id="@+id/ll_btn_bayar"
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:layout_alignParentBottom="true"
  195. android:layout_gravity="bottom"
  196. android:layout_marginTop="6dp">
  197.  
  198.  
  199. <ImageView
  200. android:id="@+id/btn_save_selected_produk"
  201. android:layout_width="wrap_content"
  202. android:layout_height="match_parent"
  203. android:background="#F9F9F9"
  204. android:clickable="true"
  205. android:focusable="true"
  206. android:foreground="?attr/selectableItemBackground"
  207. android:paddingLeft="6dp"
  208. android:paddingRight="6dp"
  209. android:src="#D3D3D3"
  210. android:visibility="gone" />
  211.  
  212. <ImageView
  213.  
  214. android:id="@+id/btn_delete_selected_produk"
  215. android:layout_width="wrap_content"
  216. android:layout_height="match_parent"
  217. android:background="#F5F5F5"
  218. android:clickable="true"
  219. android:focusable="true"
  220. android:foreground="?attr/selectableItemBackground"
  221. android:paddingLeft="6dp"
  222. android:paddingRight="6dp"
  223. android:src="#80BF44"
  224. android:visibility="gone" />
  225.  
  226. <RelativeLayout
  227. android:layout_width="0dp"
  228. android:layout_height="match_parent"
  229. android:layout_weight="1">
  230.  
  231. <ProgressBar
  232. android:id="@+id/pb_bayar"
  233. android:layout_width="wrap_content"
  234. android:layout_height="wrap_content"
  235. android:layout_centerInParent="true"
  236. android:indeterminate="true"
  237. android:indeterminateTint="#F5F5F5"
  238. android:indeterminateTintMode="src_atop"
  239. android:visibility="gone" />
  240.  
  241.  
  242. <Button
  243. android:id="@+id/btn_bukakasir"
  244. android:visibility="gone"
  245. android:layout_width="match_parent"
  246. android:layout_height="wrap_content"
  247. android:background="#F5F5F5"
  248. android:text="BUKA KASIR"
  249. android:textColor="#FFFFFF"/>
  250.  
  251. <Button
  252. android:id="@+id/btn_bayar"
  253. android:layout_width="match_parent"
  254. android:layout_height="wrap_content"
  255. android:background="#FFFFFF"
  256. android:text="RP 0"
  257. android:textColor="#FFFFFF" />
  258. </RelativeLayout>
  259. </LinearLayout>
  260. </RelativeLayout>
  261.  
  262. </LinearLayout>
  263.  
  264.  
  265. </LinearLayout>
RAW Paste Data