item_replace_rule.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:gravity="center"
  7. android:orientation="horizontal"
  8. android:padding="8dp">
  9. <io.legado.app.lib.theme.view.ThemeCheckBox
  10. android:id="@+id/cb_name"
  11. android:layout_width="0dp"
  12. android:layout_height="wrap_content"
  13. android:layout_weight="1"
  14. tools:ignore="RtlSymmetry" />
  15. <io.legado.app.lib.theme.view.ThemeSwitch
  16. android:id="@+id/swt_enabled"
  17. android:name="@string/enable"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_marginLeft="6dp"
  21. android:layout_marginRight="6dp"
  22. tools:ignore="RtlSymmetry" />
  23. <androidx.appcompat.widget.AppCompatImageView
  24. android:id="@+id/iv_edit"
  25. android:layout_width="36dp"
  26. android:layout_height="36dp"
  27. android:layout_gravity="center"
  28. android:background="?android:attr/selectableItemBackgroundBorderless"
  29. android:contentDescription="@string/edit"
  30. android:padding="6dp"
  31. android:src="@drawable/ic_edit"
  32. android:tint="@color/primaryText" />
  33. <androidx.appcompat.widget.AppCompatImageView
  34. android:id="@+id/iv_menu_more"
  35. android:layout_width="36dp"
  36. android:layout_height="36dp"
  37. android:padding="6dp"
  38. android:background="?attr/selectableItemBackgroundBorderless"
  39. android:src="@drawable/ic_more_vert"
  40. android:tint="@color/primaryText"
  41. android:contentDescription="@string/more_menu"
  42. tools:ignore="RtlHardcoded" />
  43. </LinearLayout>