item_source_import.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. android:background="?attr/selectableItemBackground"
  8. android:padding="8dp">
  9. <io.legato.kazusa.lib.theme.view.ThemeCheckBox
  10. android:id="@+id/cb_source_name"
  11. android:layout_width="0dp"
  12. android:layout_height="wrap_content"
  13. android:maxLines="2"
  14. app:layout_constraintStart_toStartOf="parent"
  15. app:layout_constraintEnd_toStartOf="@+id/tv_source_state"
  16. app:layout_constraintTop_toTopOf="parent"
  17. app:layout_constraintBottom_toBottomOf="parent"
  18. tools:ignore="TouchTargetSizeCheck" />
  19. <com.google.android.material.button.MaterialButton
  20. android:id="@+id/tv_source_state"
  21. android:layout_width="wrap_content"
  22. android:layout_height="40dp"
  23. style="@style/Widget.Material3Expressive.Button.IconButton.Outlined"
  24. android:minWidth="0dp"
  25. android:textSize="11sp"
  26. android:singleLine="true"
  27. app:layout_constraintBottom_toBottomOf="parent"
  28. app:layout_constraintStart_toEndOf="@id/cb_source_name"
  29. app:layout_constraintEnd_toStartOf="@id/tv_open"
  30. app:layout_constraintTop_toTopOf="parent" />
  31. <com.google.android.material.button.MaterialButton
  32. android:id="@+id/tv_open"
  33. android:layout_width="40dp"
  34. android:layout_height="40dp"
  35. style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
  36. app:icon="@drawable/ic_edit"
  37. app:iconGravity="textStart"
  38. app:layout_constraintBottom_toBottomOf="parent"
  39. app:layout_constraintEnd_toEndOf="parent"
  40. app:layout_constraintTop_toTopOf="parent" />
  41. </androidx.constraintlayout.widget.ConstraintLayout>