history_item.xml 2.8 KB

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