Advertisement
Baru_Berbagi

activity_main.xml

Dec 5th, 2020
3,340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.50 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout 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.    tools:context=".MainActivity">
  9.  
  10.     <RelativeLayout
  11.        android:id="@+id/layoutButtom"
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        android:layout_alignParentEnd="true"
  15.        android:layout_alignParentBottom="true"
  16.        android:layout_marginEnd="0dp"
  17.        android:padding="5dp">
  18.  
  19.         <Button
  20.            android:id="@+id/btnBuat"
  21.            android:layout_width="match_parent"
  22.            android:layout_height="wrap_content"
  23.            android:layout_centerInParent="true"
  24.            android:background="@drawable/add_button_background"
  25.            android:text="Buat Catatan" />
  26.  
  27.  
  28.     </RelativeLayout>
  29.     <ListView
  30.        android:id="@+id/listView"
  31.        android:layout_width="match_parent"
  32.        android:layout_height="match_parent"
  33.        android:layout_above="@id/layoutButtom"
  34.        android:layout_centerInParent="true"
  35.        android:layout_centerVertical="true"
  36.        android:layout_margin="5dp"
  37.        android:divider="@android:color/transparent"
  38.        android:dividerHeight="10dp"
  39.        android:listSelector="@android:color/transparent"/>
  40.  
  41. </RelativeLayout>
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement