学考乐离线App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

item_memo.xml 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools">
  5. <data>
  6. </data>
  7. <androidx.constraintlayout.widget.ConstraintLayout
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:background="@drawable/shape_rounder_12_white"
  11. android:padding="8dp"
  12. android:paddingBottom="12dp"
  13. android:layout_margin="6dp">
  14. <com.google.android.material.imageview.ShapeableImageView
  15. android:id="@+id/img_course_pack_cover"
  16. style="@style/roundedCornerStyle"
  17. android:layout_width="0dp"
  18. android:layout_height="0dp"
  19. app:layout_constraintHeight_min="128dp"
  20. android:layout_marginEnd="8dp"
  21. android:scaleType="centerCrop"
  22. app:layout_constraintDimensionRatio="h,102:136"
  23. app:layout_constraintEnd_toStartOf="@+id/barrier"
  24. app:layout_constraintStart_toStartOf="parent"
  25. app:layout_constraintTop_toTopOf="parent" />
  26. <androidx.constraintlayout.widget.Barrier
  27. android:id="@+id/barrier"
  28. android:layout_width="1dp"
  29. android:layout_height="wrap_content"
  30. app:barrierDirection="right"
  31. app:constraint_referenced_ids="img_course_pack_cover" />
  32. <com.google.android.material.imageview.ShapeableImageView
  33. android:id="@+id/img_course_icon_1"
  34. android:layout_width="40dp"
  35. android:layout_height="40dp"
  36. app:layout_constraintEnd_toEndOf="parent"
  37. app:layout_constraintStart_toEndOf="@+id/barrier"
  38. app:layout_constraintTop_toTopOf="parent"
  39. app:layout_constraintBottom_toTopOf="@+id/img_course_icon_2"
  40. android:padding="6dp"
  41. app:strokeWidth="10dp"
  42. style="@style/roundedCornerStyle" />
  43. <TextView
  44. android:id="@+id/tv_review_number_1"
  45. android:layout_width="wrap_content"
  46. android:layout_height="14dp"
  47. android:background="@drawable/shape_red_badge"
  48. android:textColor="@color/white"
  49. android:gravity="center"
  50. android:textSize="@dimen/smallerSize"
  51. android:layout_marginEnd="1dp"
  52. tools:text="1"
  53. android:includeFontPadding="false"
  54. app:layout_constraintEnd_toEndOf="@+id/img_course_icon_1"
  55. app:layout_constraintTop_toTopOf="@+id/img_course_icon_1"
  56. />
  57. <com.google.android.material.imageview.ShapeableImageView
  58. android:id="@+id/img_course_icon_2"
  59. android:layout_width="40dp"
  60. android:layout_height="40dp"
  61. app:layout_constraintEnd_toEndOf="parent"
  62. app:layout_constraintStart_toEndOf="@+id/barrier"
  63. app:layout_constraintTop_toBottomOf="@+id/img_course_icon_1"
  64. app:layout_constraintBottom_toTopOf="@+id/img_course_icon_3"
  65. android:padding="6dp"
  66. app:strokeWidth="10dp"
  67. style="@style/roundedCornerStyle"
  68. android:visibility="invisible"
  69. tools:visibility="visible"
  70. />
  71. <TextView
  72. android:id="@+id/tv_review_number_2"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:background="@drawable/shape_red_badge"
  76. android:textColor="@color/white"
  77. android:gravity="center"
  78. android:textSize="@dimen/smallerSize"
  79. android:layout_marginEnd="1dp"
  80. tools:text="1"
  81. android:includeFontPadding="false"
  82. app:layout_constraintEnd_toEndOf="@+id/img_course_icon_2"
  83. app:layout_constraintTop_toTopOf="@+id/img_course_icon_2"
  84. />
  85. <com.google.android.material.imageview.ShapeableImageView
  86. android:id="@+id/img_course_icon_3"
  87. android:layout_width="40dp"
  88. android:layout_height="40dp"
  89. app:layout_constraintEnd_toEndOf="parent"
  90. app:layout_constraintStart_toEndOf="@+id/barrier"
  91. app:layout_constraintTop_toBottomOf="@+id/img_course_icon_2"
  92. app:layout_constraintBottom_toBottomOf="@+id/img_course_pack_cover"
  93. app:strokeWidth="10dp"
  94. style="@style/roundedCornerStyle"
  95. android:visibility="invisible"
  96. android:padding="6dp"
  97. tools:visibility="visible"/>
  98. <TextView
  99. android:id="@+id/tv_review_number_3"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:background="@drawable/shape_red_badge"
  103. android:textColor="@color/white"
  104. android:gravity="center"
  105. android:textSize="@dimen/smallerSize"
  106. android:layout_marginEnd="1dp"
  107. tools:text="111"
  108. android:includeFontPadding="false"
  109. app:layout_constraintEnd_toEndOf="@+id/img_course_icon_3"
  110. app:layout_constraintTop_toTopOf="@+id/img_course_icon_3"
  111. />
  112. <TextView
  113. android:id="@+id/tv_course_pack_name"
  114. android:layout_width="match_parent"
  115. android:layout_height="wrap_content"
  116. app:layout_constraintTop_toBottomOf="@+id/img_course_pack_cover"
  117. android:textSize="@dimen/normalSize"
  118. android:textColor="@color/main_text_color"
  119. android:layout_marginTop="12dp"/>
  120. </androidx.constraintlayout.widget.ConstraintLayout>
  121. </layout>