farid_udin

list_row

Aug 7th, 2016
5,048
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.76 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:orientation="vertical">
  6.  
  7.     <android.support.v7.widget.CardView
  8.        android:layout_width="match_parent"
  9.        android:layout_height="wrap_content"
  10.        android:layout_margin="3dp">
  11.         <RelativeLayout
  12.            android:layout_width="match_parent"
  13.            android:layout_height="wrap_content">
  14.             <ImageView
  15.                android:layout_width="80dp"
  16.                android:layout_height="80dp"
  17.                android:id="@+id/gambar"
  18.                android:padding="5dp"
  19.                android:src="@drawable/no_image"
  20.                android:layout_alignParentTop="true"
  21.                android:layout_alignParentLeft="true"
  22.                android:layout_alignParentStart="true" />
  23.             <TextView
  24.                android:layout_width="match_parent"
  25.                android:layout_height="wrap_content"
  26.                android:text="Judul"
  27.                android:lines="2"
  28.                android:id="@+id/judul"
  29.                android:padding="5dp"
  30.                android:layout_centerVertical="true"
  31.                android:layout_alignParentRight="true"
  32.                android:layout_alignParentEnd="true"
  33.                android:layout_toRightOf="@+id/gambar"
  34.                android:layout_toEndOf="@+id/gambar" />
  35.             <TextView
  36.                android:layout_width="wrap_content"
  37.                android:layout_height="wrap_content"
  38.                android:id="@+id/id"
  39.                android:visibility="gone"/>
  40.         </RelativeLayout>
  41.     </android.support.v7.widget.CardView>
  42.  
  43. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment