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"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/background4"
- tools:context=".MenuProdukJad">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/btn_tambahProduk2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:layout_marginRight="10dp"
- android:src="@drawable/ic_launcher_background"
- android:backgroundTint="@android:color/holo_green_light"
- android:layout_alignParentBottom="true"
- android:layout_alignParentRight="true"
- android:onClick="btnTambahProduk"/>
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/btn_backFromKategori"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:layout_marginLeft="10dp"
- android:src="@drawable/ic_action_navigation_arrow_back"
- android:backgroundTint="@color/colorAccent"
- android:layout_alignParentBottom="true"
- android:layout_alignParentLeft="true"
- android:onClick="btnBackFromProduk"/>
- <!--<LinearLayout-->
- <!--android:id="@+id/tes"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:weightSum="2">-->
- <!--<Button-->
- <!--android:id="@+id/btn_tambahKategori"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:layout_weight="1"-->
- <!--android:layout_marginRight="5dp"-->
- <!--android:hint="Tambah Kategori"/>-->
- <!--<Button-->
- <!--android:id="@+id/btn_tambahKategori2"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:layout_weight="1"-->
- <!--android:layout_marginLeft="5dp"-->
- <!--android:background="@color/colorPrimary"-->
- <!--android:hint="Tambah Kategori"-->
- <!--android:textColorHint="#ffffff"-->
- <!--android:onClick="btnTambahKategori"/>-->
- <!--</LinearLayout>-->
- <EditText
- android:id="@+id/et_search"
- android:layout_width="match_parent"
- android:layout_height="60dp"
- android:padding="10dp"
- android:layout_margin="10dp"
- android:hint="Cari Produk"/>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/et_search"
- android:layout_marginTop="10dp"
- android:layout_marginLeft="50dp"
- android:layout_marginRight="50dp"
- app:cardElevation="3dp">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="PRODUK"
- android:textSize="27sp"
- android:textStyle="bold"
- android:gravity="center"/>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@id/et_search"
- android:layout_marginTop="30dp"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp"
- android:layout_marginBottom="80dp"
- app:cardElevation="2dp">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/rv_produk"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="20dp"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginBottom="10dp"></androidx.recyclerview.widget.RecyclerView>
- </androidx.cardview.widget.CardView>
- <!--<ListView-->
- <!--android:id="@+id/lv_kategori"-->
- <!--android:layout_below="@id/et_search"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="match_parent"-->
- <!--android:layout_margin="10dp"></ListView>-->
- </RelativeLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement