item_recent_manga.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v7.widget.CardView
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:id="@+id/cv_manga"
  5. style="@style/Theme.Widget.CardView"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. >
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="150dp"
  12. android:orientation="horizontal">
  13. <ImageView
  14. android:id="@+id/cover"
  15. android:layout_width="100dp"
  16. android:layout_height="match_parent"
  17. android:clickable="true"
  18. android:contentDescription="@string/description_cover"
  19. android:scaleType="centerCrop"/>
  20. <RelativeLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:orientation="vertical">
  24. <RelativeLayout
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent"
  27. android:orientation="vertical"
  28. android:padding="@dimen/card_margin">
  29. <TextView
  30. android:id="@+id/manga_title"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:maxLines="2"
  34. android:textAppearance="@style/TextAppearance.Medium.Title"/>
  35. <TextView
  36. android:id="@+id/manga_source"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:layout_below="@id/manga_title"
  40. android:textAppearance="@style/TextAppearance.Medium.Body2"/>
  41. <TextView
  42. android:id="@+id/last_read"
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:layout_below="@id/manga_source"
  46. android:textAppearance="@style/TextAppearance.Medium.Body2.Hint"/>
  47. </RelativeLayout>
  48. <TextView
  49. android:id="@+id/remove"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_alignParentBottom="true"
  53. android:layout_marginLeft="8dp"
  54. android:layout_marginStart="8dp"
  55. android:background="?attr/selectable_list_drawable"
  56. android:clickable="true"
  57. android:padding="8dp"
  58. android:text="@string/action_remove"
  59. android:textAppearance="@style/TextAppearance.Medium.Button.Negative"/>
  60. <TextView
  61. android:id="@+id/resume"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:layout_alignParentBottom="true"
  65. android:layout_toEndOf="@id/remove"
  66. android:layout_toRightOf="@id/remove"
  67. android:background="?attr/selectable_list_drawable"
  68. android:padding="8dp"
  69. android:text="@string/action_resume"
  70. android:textAppearance="@style/TextAppearance.Medium.Button"/>
  71. </RelativeLayout>
  72. </LinearLayout>
  73. </android.support.v7.widget.CardView>