categories_item.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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="@dimen/material_component_lists_single_line_with_avatar_height"
  7. android:background="@drawable/list_item_selector_background">
  8. <ImageView
  9. android:id="@+id/reorder"
  10. android:layout_width="@dimen/material_component_lists_single_line_with_avatar_height"
  11. android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height"
  12. android:scaleType="center"
  13. app:srcCompat="@drawable/ic_drag_handle_24dp"
  14. app:tint="?android:attr/textColorHint"
  15. tools:ignore="ContentDescription" />
  16. <ImageView
  17. android:layout_width="wrap_content"
  18. android:layout_height="match_parent"
  19. android:scaleType="center"
  20. app:srcCompat="@drawable/ic_label_24dp"
  21. app:tint="?android:attr/textColorPrimary"
  22. tools:ignore="ContentDescription" />
  23. <TextView
  24. android:id="@+id/title"
  25. android:layout_width="0dp"
  26. android:layout_height="wrap_content"
  27. android:layout_gravity="center_vertical"
  28. android:layout_marginStart="16dp"
  29. android:layout_marginEnd="16dp"
  30. android:layout_weight="1"
  31. android:ellipsize="end"
  32. android:maxLines="1"
  33. android:textAppearance="@style/TextAppearance.Regular.SubHeading"
  34. tools:text="Title" />
  35. </LinearLayout>