layout_album_preview.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.cardview.widget.CardView 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. android:id="@+id/holder"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. app:cardBackgroundColor="?cardBackgroundColor"
  9. app:cardCornerRadius="8dp"
  10. app:cardElevation="8dp"
  11. app:cardMaxElevation="8dp">
  12. <androidx.constraintlayout.widget.ConstraintLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content">
  15. <ImageView
  16. android:id="@+id/preview"
  17. android:layout_width="0dp"
  18. android:layout_height="0dp"
  19. android:scaleType="centerCrop"
  20. app:layout_constraintBottom_toBottomOf="parent"
  21. app:layout_constraintEnd_toEndOf="parent"
  22. app:layout_constraintStart_toStartOf="parent"
  23. app:layout_constraintTop_toTopOf="parent"
  24. app:srcCompat="@drawable/ic_settings"
  25. tools:ignore="ContentDescription" />
  26. <TextView
  27. android:id="@+id/album_title"
  28. android:layout_width="0dp"
  29. android:layout_height="wrap_content"
  30. android:layout_marginTop="128dp"
  31. android:background="@color/foreground_alpha"
  32. android:maxLength="48"
  33. android:padding="2dp"
  34. android:shadowRadius="5"
  35. android:text="@string/placeholder"
  36. android:textAlignment="center"
  37. android:textStyle="bold"
  38. app:flow_wrapMode="aligned"
  39. app:layout_constraintEnd_toEndOf="parent"
  40. app:layout_constraintHorizontal_bias="0.51"
  41. app:layout_constraintStart_toStartOf="parent"
  42. app:layout_constraintTop_toTopOf="parent"
  43. tools:ignore="TextContrastCheck" />
  44. </androidx.constraintlayout.widget.ConstraintLayout>
  45. </androidx.cardview.widget.CardView>