item_bookmark.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:orientation="vertical"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:paddingStart="16dp"
  8. android:paddingEnd="10dp"
  9. android:paddingVertical="12dp"
  10. android:background="?attr/selectableItemBackground">
  11. <com.google.android.material.button.MaterialButton
  12. android:id="@+id/btn_locate"
  13. android:layout_width="40dp"
  14. android:layout_height="40dp"
  15. app:iconSize="16dp"
  16. app:iconGravity="textStart"
  17. app:icon="@drawable/ic_locate"
  18. style="@style/Widget.Material3Expressive.Button.IconButton.Outlined"
  19. app:layout_constraintEnd_toEndOf="parent"
  20. app:layout_constraintTop_toTopOf="parent"
  21. app:layout_constraintBottom_toBottomOf="parent"/>
  22. <LinearLayout
  23. android:layout_width="0dp"
  24. android:layout_height="match_parent"
  25. android:orientation="vertical"
  26. android:layout_marginEnd="8dp"
  27. app:layout_constraintStart_toStartOf="parent"
  28. app:layout_constraintEnd_toStartOf="@id/btn_locate"
  29. app:layout_constraintTop_toTopOf="parent"
  30. app:layout_constraintBottom_toBottomOf="parent">
  31. <TextView
  32. android:id="@+id/tv_chapter_name"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:paddingBottom="2dp"
  36. android:textSize="16sp"
  37. android:textStyle="bold" />
  38. <TextView
  39. android:id="@+id/tv_book_text"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:paddingBottom="2dp"
  43. android:textSize="13sp"
  44. android:singleLine="true" />
  45. <TextView
  46. android:id="@+id/tv_content"
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:textColor="?attr/colorSecondary"
  50. android:textSize="12sp"
  51. android:singleLine="true" />
  52. </LinearLayout>
  53. </androidx.constraintlayout.widget.ConstraintLayout>