spinner_preference.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content">
  7. <com.google.android.material.textview.MaterialTextView
  8. android:id="@+id/title"
  9. style="@style/TextAppearance.MaterialComponents.Body2"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:layout_marginTop="12dp"
  13. android:layout_marginBottom="12dp"
  14. android:maxLines="1"
  15. android:textColor="?android:attr/textColorPrimary"
  16. app:layout_constraintBottom_toBottomOf="parent"
  17. app:layout_constraintStart_toStartOf="parent"
  18. app:layout_constraintTop_toTopOf="parent"
  19. tools:text="Title" />
  20. <com.google.android.material.textview.MaterialTextView
  21. android:id="@+id/details"
  22. style="@style/TextAppearance.MaterialComponents.Body2"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:maxLines="1"
  26. android:textColor="?android:attr/textColorSecondary"
  27. app:layout_constraintBottom_toBottomOf="parent"
  28. app:layout_constraintEnd_toEndOf="parent"
  29. app:layout_constraintHorizontal_bias="0.0"
  30. app:layout_constraintStart_toEndOf="@+id/start_barrier"
  31. app:layout_constraintTop_toTopOf="parent"
  32. tools:text="Details" />
  33. <ImageView
  34. android:layout_width="24dp"
  35. android:layout_height="24dp"
  36. android:layout_marginStart="1dp"
  37. android:src="@drawable/ic_expand_more_24dp"
  38. app:layout_constraintBottom_toBottomOf="@id/details"
  39. app:layout_constraintStart_toEndOf="@id/details"
  40. app:layout_constraintTop_toTopOf="@id/details"
  41. app:tint="?android:attr/textColorSecondary"
  42. tools:ignore="ContentDescription" />
  43. <androidx.constraintlayout.widget.Barrier
  44. android:id="@+id/start_barrier"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. app:barrierDirection="right"
  48. app:constraint_referenced_ids="bottom_line,title" />
  49. <androidx.constraintlayout.widget.Guideline
  50. android:id="@+id/bottom_line"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:orientation="vertical"
  54. app:layout_constraintGuide_percent="0.5" />
  55. </androidx.constraintlayout.widget.ConstraintLayout>