Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.08 KB | None | 0 0
  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="@color/white">
  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="@color/gray_dark" />
  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="@color/green_dark"
  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. <!--<LinearLayout-->
  51. <!--android:id="@+id/ll_category"-->
  52. <!--android:layout_width="match_parent"-->
  53. <!--android:layout_height="wrap_content"-->
  54. <!--android:layout_alignParentBottom="true"-->
  55. <!--android:layout_gravity="bottom"-->
  56. <!--android:layout_marginStart="4dp"-->
  57. <!--android:layout_marginTop="@dimen/paddingSmall"-->
  58. <!--android:layout_marginEnd="4dp"-->
  59. <!--android:layout_marginBottom="@dimen/paddingSmall"-->
  60. <!--android:orientation="horizontal"-->
  61. <!--android:padding="@dimen/paddingXXSmall">-->
  62.  
  63. <!--<TextView-->
  64. <!--android:layout_width="0dp"-->
  65. <!--android:layout_height="wrap_content"-->
  66. <!--android:layout_weight="1"-->
  67. <!--android:gravity="center"-->
  68. <!--android:text="SEMUA"-->
  69. <!--android:textAllCaps="true"-->
  70. <!--android:textSize="12sp"-->
  71. <!--android:textStyle="bold" />-->
  72.  
  73. <!--<TextView-->
  74. <!--android:layout_width="0dp"-->
  75. <!--android:layout_height="wrap_content"-->
  76. <!--android:layout_weight="1"-->
  77. <!--android:gravity="center"-->
  78. <!--android:text="MAKANAN"-->
  79. <!--android:textAllCaps="true"-->
  80. <!--android:textSize="12sp"-->
  81. <!--android:textStyle="bold" />-->
  82.  
  83. <!--<TextView-->
  84. <!--android:layout_width="0dp"-->
  85. <!--android:layout_height="wrap_content"-->
  86. <!--android:layout_weight="1"-->
  87. <!--android:gravity="center"-->
  88. <!--android:text="MAKANAN RINGAN"-->
  89. <!--android:textAllCaps="true"-->
  90. <!--android:textSize="12sp"-->
  91. <!--android:textStyle="bold" />-->
  92.  
  93. <!--<TextView-->
  94. <!--android:layout_width="0dp"-->
  95. <!--android:layout_height="wrap_content"-->
  96. <!--android:layout_weight="1"-->
  97. <!--android:gravity="center"-->
  98. <!--android:text="MINUMAN"-->
  99. <!--android:textAllCaps="true"-->
  100. <!--android:textSize="12sp"-->
  101. <!--android:textStyle="bold" />-->
  102.  
  103. <!--<TextView-->
  104. <!--android:layout_width="0dp"-->
  105. <!--android:layout_height="wrap_content"-->
  106. <!--android:layout_weight="1"-->
  107. <!--android:gravity="center"-->
  108. <!--android:text="COFFEE"-->
  109. <!--android:textAllCaps="true"-->
  110. <!--android:textSize="12sp"-->
  111. <!--android:textStyle="bold" />-->
  112.  
  113. <!--<TextView-->
  114. <!--android:layout_width="0dp"-->
  115. <!--android:layout_height="wrap_content"-->
  116. <!--android:layout_weight="1"-->
  117. <!--android:gravity="center"-->
  118. <!--android:text="LAINNYA"-->
  119. <!--android:textAllCaps="true"-->
  120. <!--android:textSize="12sp"-->
  121. <!--android:textStyle="bold" />-->
  122. <!--</LinearLayout>-->
  123.  
  124. <com.google.android.material.tabs.TabLayout
  125. android:id="@+id/tabs"
  126. android:layout_width="match_parent"
  127. android:layout_height="wrap_content"
  128. android:layout_alignParentBottom="true"
  129. app:tabIndicatorColor="@color/green_dark"
  130. app:tabMode="scrollable"
  131. app:tabTextAppearance="@style/TabsNotCaps"></com.google.android.material.tabs.TabLayout>
  132.  
  133. </RelativeLayout>
  134.  
  135. <RelativeLayout
  136. android:id="@+id/lay_meja"
  137. android:layout_width="0dp"
  138. android:layout_height="match_parent"
  139. android:layout_weight="6"
  140. android:background="@color/gray_light"
  141. android:visibility="gone">
  142.  
  143. <RelativeLayout
  144. android:id="@+id/lay_data_meja"
  145. android:layout_width="match_parent"
  146. android:layout_height="match_parent"
  147. android:layout_above="@id/lay_bottom">
  148.  
  149. <androidx.recyclerview.widget.RecyclerView
  150. android:id="@+id/rv_meja"
  151. android:layout_width="match_parent"
  152. android:layout_height="match_parent"
  153. android:background="@color/gray_dark" />
  154.  
  155. <ProgressBar
  156. android:id="@+id/pb_loading_meja"
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159. android:layout_centerInParent="true"
  160. android:indeterminate="true"
  161. android:indeterminateTint="@color/green_dark"
  162. android:indeterminateTintMode="src_atop"
  163. android:visibility="gone" />
  164. </RelativeLayout>
  165.  
  166. <LinearLayout
  167.  
  168. android:id="@+id/lay_bottom"
  169. android:layout_width="match_parent"
  170. android:layout_height="48dp"
  171. android:layout_alignParentBottom="true"
  172. android:background="@color/white"
  173. android:orientation="horizontal">
  174.  
  175. <LinearLayout
  176. android:layout_width="0dp"
  177. android:layout_height="match_parent"
  178. android:layout_weight="1"
  179. android:gravity="center_vertical">
  180.  
  181. <Spinner
  182. android:id="@+id/spin_lantai"
  183. android:layout_width="wrap_content"
  184. android:layout_height="wrap_content"></Spinner>
  185.  
  186. <TextView
  187. android:id="@+id/jumlah_meja"
  188. android:layout_width="wrap_content"
  189. android:layout_height="wrap_content"
  190. android:layout_marginLeft="@dimen/paddingXSmall"
  191. android:text="10 Meja" />
  192. </LinearLayout>
  193.  
  194. <LinearLayout
  195. android:layout_width="0dp"
  196. android:layout_height="match_parent"
  197. android:layout_weight="1"
  198. android:gravity="center_vertical|right">
  199.  
  200. <View
  201. android:layout_width="@dimen/paddingMedium"
  202. android:layout_height="@dimen/paddingMedium"
  203. android:background="@drawable/border_gray_3" />
  204.  
  205. <TextView
  206. android:layout_width="wrap_content"
  207. android:layout_height="wrap_content"
  208. android:layout_marginLeft="@dimen/paddingXSmall"
  209. android:layout_marginRight="@dimen/paddingSmall"
  210. android:text="@string/meja_kosong" />
  211.  
  212. <View
  213. android:layout_width="@dimen/paddingMedium"
  214. android:layout_height="@dimen/paddingMedium"
  215. android:background="@color/green_dark" />
  216.  
  217. <TextView
  218. android:layout_width="wrap_content"
  219. android:layout_height="wrap_content"
  220. android:layout_marginLeft="@dimen/paddingXSmall"
  221. android:layout_marginRight="@dimen/paddingSmall"
  222. android:text="@string/meja_terisi" />
  223.  
  224.  
  225. </LinearLayout>
  226.  
  227. </LinearLayout>
  228. </RelativeLayout>
  229. <!--<View-->
  230. <!--android:layout_width="1dp"-->
  231. <!--android:layout_height="match_parent"-->
  232. <!--android:background="@color/gray_darker" />-->
  233.  
  234.  
  235. <RelativeLayout
  236. android:layout_width="0dp"
  237. android:layout_height="match_parent"
  238. android:layout_weight="4">
  239.  
  240.  
  241. <com.google.android.material.tabs.TabLayout
  242. android:id="@+id/tab_layout"
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content"
  245. android:background="@color/gray"
  246. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  247. app:tabBackground="@color/gray"
  248. app:tabGravity="fill"
  249. app:tabMode="fixed"
  250. app:tabSelectedTextColor="@android:color/black"
  251. app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
  252. app:tabTextColor="@color/black" />
  253.  
  254. <androidx.viewpager.widget.ViewPager
  255. android:id="@+id/view_pager"
  256. android:layout_width="wrap_content"
  257. android:layout_height="match_parent"
  258. android:layout_above="@id/ll_btn_bayar"
  259. android:layout_below="@id/tab_layout" />
  260.  
  261.  
  262. <LinearLayout
  263. android:id="@+id/ll_btn_bayar"
  264. android:layout_width="match_parent"
  265. android:layout_height="wrap_content"
  266. android:layout_alignParentBottom="true"
  267. android:layout_gravity="bottom"
  268. android:layout_marginTop="@dimen/paddingSmall">
  269.  
  270.  
  271. <ImageView
  272. android:id="@+id/btn_save_selected_produk"
  273. android:layout_width="wrap_content"
  274. android:layout_height="match_parent"
  275. android:background="@color/gray_light"
  276. android:clickable="true"
  277. android:focusable="true"
  278. android:foreground="?attr/selectableItemBackground"
  279. android:paddingLeft="@dimen/paddingSmall"
  280. android:paddingRight="@dimen/paddingSmall"
  281. android:src="@drawable/ic_save"
  282. android:visibility="gone" />
  283.  
  284. <ImageView
  285.  
  286. android:id="@+id/btn_delete_selected_produk"
  287. android:layout_width="wrap_content"
  288. android:layout_height="match_parent"
  289. android:background="@color/gray_dark"
  290. android:clickable="true"
  291. android:focusable="true"
  292. android:foreground="?attr/selectableItemBackground"
  293. android:paddingLeft="@dimen/paddingSmall"
  294. android:paddingRight="@dimen/paddingSmall"
  295. android:src="@drawable/ic_delete"
  296. android:visibility="gone" />
  297.  
  298. <RelativeLayout
  299. android:layout_width="0dp"
  300. android:layout_height="match_parent"
  301. android:layout_weight="1">
  302.  
  303. <ProgressBar
  304. android:id="@+id/pb_bayar"
  305. android:layout_width="wrap_content"
  306. android:layout_height="wrap_content"
  307. android:layout_centerInParent="true"
  308. android:indeterminate="true"
  309. android:indeterminateTint="@color/green_dark"
  310. android:indeterminateTintMode="src_atop"
  311. android:visibility="gone" />
  312.  
  313.  
  314. <Button
  315. android:id="@+id/btn_bukakasir"
  316. android:visibility="gone"
  317. android:layout_width="match_parent"
  318. android:layout_height="wrap_content"
  319. android:background="@color/green_dark"
  320. android:text="BUKA KASIR"
  321. android:textColor="@color/white"/>
  322.  
  323. <Button
  324. android:id="@+id/btn_bayar"
  325. android:layout_width="match_parent"
  326. android:layout_height="wrap_content"
  327. android:background="@color/green_dark"
  328. android:text="RP 0"
  329. android:textColor="@color/white" />
  330. </RelativeLayout>
  331. </LinearLayout>
  332. </RelativeLayout>
  333.  
  334. </LinearLayout>
  335.  
  336.  
  337. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement