Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:layout_marginBottom="8dp"
- android:orientation="vertical"
- app:cardCornerRadius="10dp">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="10dp">
- <TextView
- android:id="@+id/item_nama"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Nama"
- android:textSize="16sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/item_angkatan"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/item_nama"
- android:layout_marginTop="5dp"
- android:text="Angkatan" />
- <ImageButton
- android:id="@+id/item_btnedit"
- android:layout_width="24dp"
- android:layout_height="24dp"
- android:layout_centerVertical="true"
- android:layout_marginRight="8dp"
- android:layout_toLeftOf="@id/item_btnhapus"
- android:background="@android:color/transparent"
- android:src="@drawable/ic_edit" />
- <ImageButton
- android:id="@+id/item_btnhapus"
- android:layout_width="24dp"
- android:layout_height="24dp"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:background="@android:color/transparent"
- android:src="@drawable/ic_delete" />
- </RelativeLayout>
- </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement