Advertisement
exsrafif

activity_kategori

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