Advertisement
Baru_Berbagi

layout_list_item.xml

Dec 5th, 2020
3,357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.95 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:padding="10dp"
  6.    android:background="#66000000"
  7.    android:orientation="vertical">
  8.  
  9.     <LinearLayout
  10.        android:layout_width="match_parent"
  11.        android:layout_height="wrap_content"
  12.        android:orientation="vertical">
  13.  
  14.         <TextView
  15.            android:id="@+id/txtDate"
  16.            android:layout_width="match_parent"
  17.            android:layout_height="wrap_content"
  18.            android:gravity="top|center_horizontal"
  19.            android:text="date"
  20.            android:textColor="#FFFFFF"
  21.            android:textAppearance="?android:attr/textAppearanceMedium" />
  22.  
  23.         <TextView
  24.            android:id="@+id/txtMemo"
  25.            android:layout_width="match_parent"
  26.            android:layout_height="37dp"
  27.            android:text="Medium Text"
  28.            android:textColor="#FFFFFF"
  29.            android:textSize="25dp"
  30.            android:textAppearance="?android:attr/textAppearanceMedium"/>
  31.  
  32.     </LinearLayout>
  33.  
  34.  
  35. <LinearLayout
  36.    android:layout_width="match_parent"
  37.    android:layout_height="wrap_content"
  38.    android:orientation="horizontal"
  39.    android:layout_marginTop="5dp">
  40.  
  41.     <Button
  42.        android:id="@+id/btnEdit"
  43.        android:layout_width="match_parent"
  44.        android:layout_height="30dp"
  45.        android:layout_weight="1"
  46.        android:text="Buka"
  47.        android:textColor="#FFFFFF"
  48.        android:background="@drawable/add_button_background"/>
  49.  
  50.     <Button
  51.        android:id="@+id/btnDelete"
  52.        android:layout_width="match_parent"
  53.        android:layout_height="30dp"
  54.        android:layout_weight="3"
  55.        android:text="Hapus"
  56.        android:textColor="#FFFFFF"
  57.        android:background="@drawable/add_button_background"/>
  58.  
  59. </LinearLayout>
  60.  
  61. </LinearLayout>
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement