Advertisement
exsrafif

activity_menu_produkjad

Dec 12th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.93 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.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:background="@drawable/background4"
  8.    tools:context=".MenuProdukJad">
  9.  
  10.     <RelativeLayout
  11.        android:layout_width="match_parent"
  12.        android:layout_height="match_parent">
  13.  
  14.         <com.google.android.material.floatingactionbutton.FloatingActionButton
  15.            android:id="@+id/btn_tambahProduk2"
  16.            android:layout_width="wrap_content"
  17.            android:layout_height="wrap_content"
  18.            android:layout_marginBottom="10dp"
  19.            android:layout_marginRight="10dp"
  20.            android:src="@drawable/ic_launcher_background"
  21.            android:backgroundTint="@android:color/holo_green_light"
  22.            android:layout_alignParentBottom="true"
  23.            android:layout_alignParentRight="true"
  24.            android:onClick="btnTambahProduk"/>
  25.  
  26.  
  27.         <com.google.android.material.floatingactionbutton.FloatingActionButton
  28.            android:id="@+id/btn_backFromKategori"
  29.            android:layout_width="wrap_content"
  30.            android:layout_height="wrap_content"
  31.            android:layout_marginBottom="10dp"
  32.            android:layout_marginLeft="10dp"
  33.            android:src="@drawable/ic_action_navigation_arrow_back"
  34.            android:backgroundTint="@color/colorAccent"
  35.            android:layout_alignParentBottom="true"
  36.            android:layout_alignParentLeft="true"
  37.            android:onClick="btnBackFromProduk"/>
  38.  
  39.         <!--<LinearLayout-->
  40.         <!--android:id="@+id/tes"-->
  41.         <!--android:layout_width="match_parent"-->
  42.         <!--android:layout_height="wrap_content"-->
  43.         <!--android:weightSum="2">-->
  44.  
  45.         <!--<Button-->
  46.         <!--android:id="@+id/btn_tambahKategori"-->
  47.         <!--android:layout_width="match_parent"-->
  48.         <!--android:layout_height="wrap_content"-->
  49.         <!--android:layout_weight="1"-->
  50.         <!--android:layout_marginRight="5dp"-->
  51.         <!--android:hint="Tambah Kategori"/>-->
  52.         <!--<Button-->
  53.         <!--android:id="@+id/btn_tambahKategori2"-->
  54.         <!--android:layout_width="match_parent"-->
  55.         <!--android:layout_height="wrap_content"-->
  56.         <!--android:layout_weight="1"-->
  57.         <!--android:layout_marginLeft="5dp"-->
  58.         <!--android:background="@color/colorPrimary"-->
  59.         <!--android:hint="Tambah Kategori"-->
  60.         <!--android:textColorHint="#ffffff"-->
  61.         <!--android:onClick="btnTambahKategori"/>-->
  62.  
  63.         <!--</LinearLayout>-->
  64.  
  65.         <EditText
  66.            android:id="@+id/et_search"
  67.            android:layout_width="match_parent"
  68.            android:layout_height="60dp"
  69.            android:padding="10dp"
  70.            android:layout_margin="10dp"
  71.            android:hint="Cari Produk"/>
  72.  
  73.         <androidx.cardview.widget.CardView
  74.            android:layout_width="match_parent"
  75.            android:layout_height="wrap_content"
  76.            android:layout_below="@id/et_search"
  77.            android:layout_marginTop="10dp"
  78.            android:layout_marginLeft="50dp"
  79.            android:layout_marginRight="50dp"
  80.            app:cardElevation="3dp">
  81.  
  82.             <TextView
  83.                android:layout_width="match_parent"
  84.                android:layout_height="wrap_content"
  85.                android:text="PRODUK"
  86.                android:textSize="27sp"
  87.                android:textStyle="bold"
  88.                android:gravity="center"/>
  89.  
  90.         </androidx.cardview.widget.CardView>
  91.         <androidx.cardview.widget.CardView
  92.            android:layout_width="match_parent"
  93.            android:layout_height="match_parent"
  94.            android:layout_below="@id/et_search"
  95.            android:layout_marginTop="30dp"
  96.            android:layout_marginLeft="20dp"
  97.            android:layout_marginRight="20dp"
  98.            android:layout_marginBottom="80dp"
  99.            app:cardElevation="2dp">
  100.  
  101.             <androidx.recyclerview.widget.RecyclerView
  102.                android:id="@+id/rv_produk"
  103.                android:layout_width="match_parent"
  104.                android:layout_height="match_parent"
  105.                android:layout_marginTop="20dp"
  106.                android:layout_marginLeft="10dp"
  107.                android:layout_marginRight="10dp"
  108.                android:layout_marginBottom="10dp"></androidx.recyclerview.widget.RecyclerView>
  109.  
  110.         </androidx.cardview.widget.CardView>
  111.  
  112.  
  113.  
  114.         <!--<ListView-->
  115.             <!--android:id="@+id/lv_kategori"-->
  116.             <!--android:layout_below="@id/et_search"-->
  117.             <!--android:layout_width="match_parent"-->
  118.             <!--android:layout_height="match_parent"-->
  119.             <!--android:layout_margin="10dp"></ListView>-->
  120.  
  121.  
  122.     </RelativeLayout>
  123.  
  124.  
  125. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement