track_search_item.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.cardview.widget.CardView android:id="@+id/cv_manga"
  3. style="@style/Theme.Widget.CardView.Item"
  4. xmlns:android="http://schemas.android.com/apk/res/android"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. xmlns:tools="http://schemas.android.com/tools"
  7. android:padding="0dp">
  8. <androidx.constraintlayout.widget.ConstraintLayout
  9. android:id="@+id/linearLayout"
  10. android:layout_width="match_parent"
  11. android:layout_height="216dp"
  12. android:background="?attr/selectable_list_drawable"
  13. android:orientation="horizontal">
  14. <ImageView
  15. android:id="@+id/track_search_cover"
  16. android:layout_width="135dp"
  17. android:layout_height="match_parent"
  18. android:layout_marginBottom="8dp"
  19. android:layout_marginEnd="8dp"
  20. android:layout_marginStart="8dp"
  21. android:layout_marginTop="8dp"
  22. android:contentDescription="@string/description_cover"
  23. android:scaleType="centerCrop"
  24. app:layout_constraintBottom_toBottomOf="parent"
  25. app:layout_constraintStart_toStartOf="parent"
  26. app:layout_constraintTop_toTopOf="parent"
  27. app:layout_constraintVertical_bias="0.0"
  28. tools:src="@mipmap/ic_launcher"/>
  29. <TextView
  30. android:id="@+id/track_search_title"
  31. android:layout_width="0dp"
  32. android:layout_height="wrap_content"
  33. android:layout_marginEnd="8dp"
  34. android:layout_marginStart="8dp"
  35. android:layout_marginTop="8dp"
  36. android:maxLines="3"
  37. android:textAppearance="@style/TextAppearance.Regular.Body1.Bold"
  38. android:textSize="16sp"
  39. app:layout_constraintEnd_toEndOf="parent"
  40. app:layout_constraintStart_toEndOf="@id/track_search_cover"
  41. app:layout_constraintTop_toTopOf="parent"
  42. tools:text="One Piece"/>
  43. <TextView
  44. android:id="@+id/track_search_type"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_marginStart="8dp"
  48. android:maxLines="1"
  49. android:text="@string/track_type"
  50. android:textAppearance="@style/TextAppearance.Regular.Body1.Bold"
  51. android:textSize="12sp"
  52. app:layout_constraintStart_toEndOf="@id/track_search_cover"
  53. app:layout_constraintTop_toBottomOf="@id/track_search_title"
  54. />
  55. <TextView
  56. android:id="@+id/track_search_type_result"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_marginStart="8dp"
  60. android:maxLines="1"
  61. android:textAppearance="@style/TextAppearance.Regular.Body1.Secondary"
  62. android:textSize="12sp"
  63. app:layout_constraintStart_toEndOf="@id/track_search_type"
  64. app:layout_constraintTop_toBottomOf="@id/track_search_title"
  65. tools:text="Manga"
  66. />
  67. <TextView
  68. android:id="@+id/track_search_start"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:layout_marginStart="8dp"
  72. android:maxLines="1"
  73. android:text="@string/track_start_date"
  74. android:textAppearance="@style/TextAppearance.Regular.Body1.Bold"
  75. android:textSize="12sp"
  76. app:layout_constraintStart_toEndOf="@id/track_search_cover"
  77. app:layout_constraintTop_toBottomOf="@id/track_search_type"
  78. />
  79. <TextView
  80. android:id="@+id/track_search_start_result"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_marginStart="8dp"
  84. android:maxLines="1"
  85. android:textAppearance="@style/TextAppearance.Regular.Body1.Secondary"
  86. android:textSize="12sp"
  87. app:layout_constraintStart_toEndOf="@id/track_search_start"
  88. app:layout_constraintTop_toBottomOf="@id/track_search_type"
  89. tools:text="2018-10-01"
  90. />
  91. <TextView
  92. android:id="@+id/track_search_status"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_marginStart="8dp"
  96. android:maxLines="1"
  97. android:text="@string/track_status"
  98. android:textAppearance="@style/TextAppearance.Regular.Body1.Bold"
  99. android:textSize="12sp"
  100. app:layout_constraintStart_toEndOf="@id/track_search_cover"
  101. app:layout_constraintTop_toBottomOf="@id/track_search_start"
  102. />
  103. <TextView
  104. android:id="@+id/track_search_status_result"
  105. android:layout_width="wrap_content"
  106. android:layout_height="0dp"
  107. android:layout_marginStart="8dp"
  108. android:maxLines="1"
  109. android:textAppearance="@style/TextAppearance.Regular.Body1.Secondary"
  110. android:textSize="12sp"
  111. app:layout_constraintStart_toEndOf="@id/track_search_status"
  112. app:layout_constraintTop_toBottomOf="@id/track_search_start"
  113. tools:text="Ongoing" />
  114. <TextView
  115. android:id="@+id/track_search_summary"
  116. android:layout_width="0dp"
  117. android:layout_height="0dp"
  118. android:layout_marginBottom="8dp"
  119. android:layout_marginStart="8dp"
  120. android:layout_marginEnd="8dp"
  121. android:layout_marginTop="8dp"
  122. android:ellipsize="end"
  123. android:maxLines="7"
  124. android:textAppearance="@style/TextAppearance.Regular.Body1.Secondary"
  125. android:textSize="12sp"
  126. app:layout_constraintBottom_toBottomOf="parent"
  127. app:layout_constraintEnd_toEndOf="parent"
  128. app:layout_constraintHorizontal_bias="0.0"
  129. app:layout_constraintStart_toEndOf="@id/track_search_cover"
  130. app:layout_constraintTop_toBottomOf="@+id/track_search_status"
  131. app:layout_constraintVertical_bias="0.333"
  132. tools:text="This is the summary of the manga that fits This is the summary of the manga that fits This is the summary of the manga that fits This is the summary of the manga that fits This is the summary of the manga that fits This is the summary of the manga that fits This is the summary of the manga that fits "/>
  133. <androidx.constraintlayout.widget.Guideline
  134. android:id="@+id/guideline"
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content"
  137. android:orientation="vertical"
  138. app:layout_constraintGuide_begin="150dp"/>
  139. </androidx.constraintlayout.widget.ConstraintLayout>
  140. </androidx.cardview.widget.CardView>