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"
- android:id="@+id/card_view"
- android:clickable="true"
- android:layout_width="match_parent"
- android:layout_height="80dp"
- android:layout_marginBottom="8dp"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:foreground="?attr/selectableItemBackground"
- >
- <RelativeLayout
- android:layout_width="match_parent"
- android:gravity="center"
- android:layout_height="match_parent">
- <ImageView
- android:id="@+id/daftar_icon"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_centerVertical="true"
- android:layout_alignParentLeft="true"
- android:layout_marginLeft="10dp"
- android:scaleType="centerCrop"
- android:src="@mipmap/ic_launcher" />
- <TextView
- android:id="@+id/daftar_judul"
- android:layout_centerVertical="true"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:layout_toRightOf="@+id/daftar_icon"
- android:text="Daftar Judul"
- android:textColor="#000000"
- android:textAppearance="?attr/textAppearanceListItem"
- android:textSize="16sp" />
- <TextView
- android:id="@+id/daftar_deskripsi"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/daftar_judul"
- android:layout_marginLeft="16dp"
- android:layout_toRightOf="@+id/daftar_icon"
- android:textColor="#000000"
- android:ellipsize="end"
- android:singleLine="true"
- android:text="Ini adalah contoh text deskripsi "
- android:textAppearance="?attr/textAppearanceListItem"
- android:textSize="14sp" />
- </RelativeLayout>
- </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment