item_rss.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.google.android.material.card.MaterialCardView
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. app:strokeWidth="0dp"
  9. app:cardBackgroundColor="@android:color/transparent"
  10. android:layout_margin="4dp">
  11. <androidx.constraintlayout.widget.ConstraintLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:focusable="true"
  15. android:foreground="?android:attr/selectableItemBackground"
  16. android:padding="12dp"
  17. android:scrollbars="none">
  18. <io.legato.kazusa.ui.widget.image.FilletImageView
  19. android:id="@+id/iv_icon"
  20. android:layout_width="50dp"
  21. android:layout_height="50dp"
  22. android:scaleType="centerCrop"
  23. android:scrollbars="none"
  24. app:layout_constraintLeft_toLeftOf="parent"
  25. app:layout_constraintRight_toRightOf="parent"
  26. app:layout_constraintTop_toTopOf="parent"
  27. app:radius="12dp" />
  28. <TextView
  29. android:id="@+id/tv_name"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_marginTop="8dp"
  33. android:ellipsize="end"
  34. android:gravity="top|center_horizontal"
  35. android:lines="2"
  36. android:scrollbars="none"
  37. android:textSize="12sp"
  38. android:textStyle="bold"
  39. app:layout_constraintLeft_toLeftOf="parent"
  40. app:layout_constraintRight_toRightOf="parent"
  41. app:layout_constraintTop_toBottomOf="@+id/iv_icon"
  42. tools:text="RSS" />
  43. </androidx.constraintlayout.widget.ConstraintLayout>
  44. </com.google.android.material.card.MaterialCardView>