categories_item.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout 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">
  8. <ImageView
  9. android:id="@+id/image"
  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:clickable="true"
  13. android:paddingStart="@dimen/material_component_lists_icon_left_padding"
  14. android:paddingEnd="0dp"
  15. tools:src="@mipmap/ic_launcher_round" />
  16. <TextView
  17. android:id="@+id/title"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_gravity="center_vertical"
  21. android:layout_marginStart="@dimen/material_component_lists_text_left_padding"
  22. android:layout_marginEnd="@dimen/material_component_lists_single_line_with_avatar_height"
  23. android:ellipsize="end"
  24. android:maxLines="1"
  25. android:textAppearance="@style/TextAppearance.Regular.SubHeading"
  26. tools:text="Title" />
  27. <ImageView
  28. android:id="@+id/reorder"
  29. android:layout_width="@dimen/material_component_lists_single_line_with_avatar_height"
  30. android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height"
  31. android:layout_gravity="end"
  32. android:scaleType="center"
  33. android:tint="?android:attr/textColorPrimary"
  34. app:srcCompat="@drawable/ic_reorder_grey_24dp" />
  35. </FrameLayout>