Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 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:orientation="vertical" android:layout_width="wrap_content"
  4. android:layout_height="wrap_content">
  5.  
  6. <com.google.android.material.card.MaterialCardView
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:layout_marginLeft="@dimen/mtrl_card_spacing"
  10. android:layout_marginTop="@dimen/mtrl_card_spacing"
  11. android:layout_marginRight="@dimen/mtrl_card_spacing"
  12. android:minHeight="90dp">
  13. <RelativeLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent">
  16. <TextView
  17. android:id = "@id/subject"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_marginLeft="10dp"
  21. android:layout_marginTop="10dp"
  22. android:textSize="23dp" />
  23.  
  24. <TextView
  25. android:textStyle="bold"
  26. android:layout_below="@id/subject"
  27. android:id="@id/examination"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_marginLeft="10dp"
  31. android:textSize="20dp" />
  32.  
  33. <TextView
  34. android:id="@id/total_score"
  35. android:textSize="30sp"
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:layout_alignParentRight="true"
  39. android:layout_centerHorizontal="true"
  40. android:layout_marginRight="10dp"
  41. android:layout_marginTop="15dp"/>
  42.  
  43. <TextView
  44. android:layout_marginRight="10dp"
  45. android:layout_below="@id/total_score"
  46. android:text="@string/scores"
  47. android:layout_alignParentRight="true"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"/>
  50. </RelativeLayout>
  51. </com.google.android.material.card.MaterialCardView>
  52.  
  53. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement