Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="250dp">
  5.  
  6. <ImageView
  7. android:id="@+id/item_image"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:scaleType="centerCrop"
  11. android:src="@mipmap/ic_launcher" />
  12.  
  13. <TextView
  14.  
  15. android:id="@+id/item_nama"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18.  
  19. android:fontFamily="sans-serif-condensed-light"
  20. android:padding="5dp"
  21. android:text="Nama"
  22. android:textAllCaps="true"
  23. android:textColor="@android:color/white"
  24. android:textSize="16sp"
  25. android:textStyle="bold" />
  26.  
  27. <TextView
  28. android:id="@+id/item_author"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_below="@id/item_nama"
  32.  
  33. android:padding="5dp"
  34. android:text="Author"
  35. android:textColor="@android:color/white"
  36. android:textSize="12sp" />
  37.  
  38. <TextView
  39. android:id="@+id/item_description"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:padding="5dp"
  43. android:text="Description"
  44. android:textColor="@android:color/white"
  45. android:textSize="12sp"
  46. android:maxLines="2"
  47. android:layout_below="@id/item_author"/>
  48.  
  49.  
  50. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement