Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#FFFFFF">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <RelativeLayout
- android:id="@+id/lay_product"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="6"
- android:visibility="visible">
- <RelativeLayout
- android:id="@+id/lay_data"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_above="@id/tabs">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/rv_produk"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#F5F5F5" />
- <ProgressBar
- android:id="@+id/pb_loading"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:indeterminate="true"
- android:indeterminateTint="#80BF44"
- android:indeterminateTintMode="src_atop"
- android:visibility="gone" />
- </RelativeLayout>
- <FrameLayout
- android:id="@+id/lay_barcode_scanner"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_above="@id/tabs"
- android:visibility="gone"></FrameLayout>
- <com.google.android.material.tabs.TabLayout
- android:id="@+id/tabs"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- app:tabIndicatorColor="#80BF44"
- app:tabMode="scrollable"
- app:tabTextAppearance="@style/TabsNotCaps"></com.google.android.material.tabs.TabLayout>
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/lay_meja"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="6"
- android:background="#F9F9F9"
- android:visibility="gone">
- <RelativeLayout
- android:id="@+id/lay_data_meja"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_above="@id/lay_bottom">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/rv_meja"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#F5F5F5" />
- <ProgressBar
- android:id="@+id/pb_loading_meja"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:indeterminate="true"
- android:indeterminateTint="#F5F5F5"
- android:indeterminateTintMode="src_atop"
- android:visibility="gone" />
- </RelativeLayout>
- <LinearLayout
- android:id="@+id/lay_bottom"
- android:layout_width="match_parent"
- android:layout_height="48dp"
- android:layout_alignParentBottom="true"
- android:background="#FFFFFF"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:gravity="center_vertical">
- <Spinner
- android:id="@+id/spin_lantai"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"></Spinner>
- <TextView
- android:id="@+id/jumlah_meja"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="4dp"
- android:text="10 Meja" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:gravity="center_vertical|right">
- <View
- android:layout_width="8dp"
- android:layout_height="8dp"
- android:background="#F0F0F0" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="4dp"
- android:layout_marginRight="4dp"
- android:text="meja kosong" />
- <View
- android:layout_width="8dp"
- android:layout_height="8dp"
- android:background="#F5F5F5" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="4dp"
- android:layout_marginRight="4dp"
- android:text="@string/meja_terisi" />
- </LinearLayout>
- </LinearLayout>
- </RelativeLayout>
- <!--<View-->
- <!--android:layout_width="1dp"-->
- <!--android:layout_height="match_parent"-->
- <!--android:background="@color/gray_darker" />-->
- <RelativeLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="4">
- <com.google.android.material.tabs.TabLayout
- android:id="@+id/tab_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="#F0F0F0"
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
- app:tabBackground="#F0F0F0"
- app:tabGravity="fill"
- app:tabMode="fixed"
- app:tabSelectedTextColor="#F0F0F0"
- app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
- app:tabTextColor="#F0F0F0" />
- <androidx.viewpager.widget.ViewPager
- android:id="@+id/view_pager"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_above="@id/ll_btn_bayar"
- android:layout_below="@id/tab_layout" />
- <LinearLayout
- android:id="@+id/ll_btn_bayar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_gravity="bottom"
- android:layout_marginTop="6dp">
- <ImageView
- android:id="@+id/btn_save_selected_produk"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:background="#F9F9F9"
- android:clickable="true"
- android:focusable="true"
- android:foreground="?attr/selectableItemBackground"
- android:paddingLeft="6dp"
- android:paddingRight="6dp"
- android:src="#D3D3D3"
- android:visibility="gone" />
- <ImageView
- android:id="@+id/btn_delete_selected_produk"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:background="#F5F5F5"
- android:clickable="true"
- android:focusable="true"
- android:foreground="?attr/selectableItemBackground"
- android:paddingLeft="6dp"
- android:paddingRight="6dp"
- android:src="#80BF44"
- android:visibility="gone" />
- <RelativeLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1">
- <ProgressBar
- android:id="@+id/pb_bayar"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:indeterminate="true"
- android:indeterminateTint="#F5F5F5"
- android:indeterminateTintMode="src_atop"
- android:visibility="gone" />
- <Button
- android:id="@+id/btn_bukakasir"
- android:visibility="gone"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="#F5F5F5"
- android:text="BUKA KASIR"
- android:textColor="#FFFFFF"/>
- <Button
- android:id="@+id/btn_bayar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="#FFFFFF"
- android:text="RP 0"
- android:textColor="#FFFFFF" />
- </RelativeLayout>
- </LinearLayout>
- </RelativeLayout>
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement