Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:card_view="http://schemas.android.com/apk/res-auto"
  3. android:layout_margin="10dp" android:layout_width="match_parent"
  4. android:layout_height="wrap_content">
  5.  
  6. <android.support.v7.widget.CardView
  7. android:id="@+id/card_view"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:layout_gravity="center"
  11. android:layout_margin="2dp"
  12. android:elevation="3dp"
  13. card_view:cardCornerRadius="@dimen/card_album_radius">
  14.  
  15. <RelativeLayout
  16. android:background="#3f3f3f"
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent">
  19.  
  20. <ImageView
  21. android:id="@+id/thumbnail"
  22. android:layout_width="match_parent"
  23. android:layout_height="290dp"
  24. android:layout_alignParentLeft="true"
  25. android:layout_alignParentStart="true"
  26. android:layout_alignParentTop="true"
  27. android:background="@color/viewBg"
  28. android:clickable="true"
  29. android:scaleType="fitXY"
  30. android:adjustViewBounds="true"/>
  31.  
  32. <TextView
  33. android:id="@+id/nameOfMovie"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_below="@id/thumbnail"
  37. android:layout_marginBottom="4dp"
  38. android:gravity="center"
  39. android:text="TextView"
  40. android:textColor="#FFFFFF"
  41. android:textSize="21dp" />
  42.  
  43. </RelativeLayout>
  44.  
  45. </android.support.v7.widget.CardView>
  46.  
  47. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement