Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:layout_margin="5dp"
  7. android:layout_marginBottom="8dp"
  8. android:orientation="vertical"
  9. app:cardCornerRadius="10dp">
  10.  
  11. <RelativeLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:padding="10dp">
  15.  
  16. <TextView
  17. android:id="@+id/item_nama"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:text="Nama"
  21. android:textSize="16sp"
  22. android:textStyle="bold" />
  23.  
  24. <TextView
  25. android:id="@+id/item_angkatan"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_below="@id/item_nama"
  29. android:layout_marginTop="5dp"
  30. android:text="Angkatan" />
  31.  
  32. <ImageButton
  33. android:id="@+id/item_btnedit"
  34. android:layout_width="24dp"
  35. android:layout_height="24dp"
  36. android:layout_centerVertical="true"
  37. android:layout_marginRight="8dp"
  38. android:layout_toLeftOf="@id/item_btnhapus"
  39. android:background="@android:color/transparent"
  40. android:src="@drawable/ic_edit" />
  41.  
  42. <ImageButton
  43. android:id="@+id/item_btnhapus"
  44. android:layout_width="24dp"
  45. android:layout_height="24dp"
  46. android:layout_alignParentRight="true"
  47. android:layout_centerVertical="true"
  48. android:background="@android:color/transparent"
  49. android:src="@drawable/ic_delete" />
  50. </RelativeLayout>
  51.  
  52. </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement