item_source_import.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:padding="8dp">
  8. <io.legado.app.lib.theme.view.ThemeCheckBox
  9. android:id="@+id/cb_source_name"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:maxLines="1"
  13. app:layout_constrainedWidth="true"
  14. app:layout_constraintBottom_toBottomOf="parent"
  15. app:layout_constraintHorizontal_bias="0"
  16. app:layout_constraintHorizontal_chainStyle="packed"
  17. app:layout_constraintLeft_toLeftOf="parent"
  18. app:layout_constraintRight_toLeftOf="@+id/tv_source_state"
  19. app:layout_constraintTop_toTopOf="parent"
  20. tools:ignore="TouchTargetSizeCheck" />
  21. <TextView
  22. android:id="@+id/tv_source_state"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:padding="8dp"
  26. android:textColor="@color/secondaryText"
  27. app:layout_constraintBottom_toBottomOf="parent"
  28. app:layout_constraintLeft_toRightOf="@id/cb_source_name"
  29. app:layout_constraintRight_toLeftOf="@id/tv_open"
  30. app:layout_constraintTop_toTopOf="parent"
  31. app:layout_constraintHorizontal_chainStyle="packed" />
  32. <TextView
  33. android:id="@+id/tv_open"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_marginEnd="12dp"
  37. android:background="?attr/selectableItemBackground"
  38. android:padding="8dp"
  39. android:text="@string/open"
  40. android:textColor="@color/secondaryText"
  41. app:layout_constraintBottom_toBottomOf="parent"
  42. app:layout_constraintRight_toRightOf="parent"
  43. app:layout_constraintTop_toTopOf="parent" />
  44. </androidx.constraintlayout.widget.ConstraintLayout>