popup_paint_selection.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="wrap_content"
  4. android:layout_height="wrap_content"
  5. android:orientation="horizontal"
  6. android:background="@android:color/transparent"
  7. xmlns:app="http://schemas.android.com/apk/res-auto">
  8. <androidx.cardview.widget.CardView
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:layout_marginBottom="@dimen/emoji_popup_cardview_margin_bottom"
  12. android:layout_marginTop="@dimen/emoji_popup_cardview_margin_top"
  13. android:layout_marginLeft="@dimen/emoji_popup_cardview_margin_horizontal"
  14. android:layout_marginRight="@dimen/emoji_popup_cardview_margin_horizontal"
  15. app:cardCornerRadius="6dp"
  16. app:cardElevation="4dp">
  17. <LinearLayout
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_margin="8dp"
  21. android:orientation="horizontal">
  22. <ImageView
  23. android:id="@+id/remove_paint"
  24. android:layout_width="@dimen/ackdec_emoji_size"
  25. android:layout_height="@dimen/ackdec_emoji_size"
  26. android:padding="@dimen/ackdec_popup_content_margin"
  27. android:src="@drawable/ic_delete"
  28. android:contentDescription="@string/delete"
  29. android:background="?attr/selectableItemBackgroundBorderless"
  30. android:clickable="true"
  31. android:focusable="true"
  32. app:tint="?attr/textColorSecondary" />
  33. <View
  34. android:id="@+id/flip_separator"
  35. android:layout_width="1dp"
  36. android:layout_height="match_parent"
  37. android:layout_marginLeft="@dimen/ackdec_popup_content_margin"
  38. android:layout_marginRight="@dimen/ackdec_popup_content_margin"
  39. android:background="?divider_color"
  40. />
  41. <ImageView
  42. android:id="@+id/flip_paint"
  43. android:layout_width="@dimen/ackdec_emoji_size"
  44. android:layout_height="@dimen/ackdec_emoji_size"
  45. android:padding="@dimen/ackdec_popup_content_margin"
  46. android:src="@drawable/ic_flip_outline"
  47. android:contentDescription="@string/flip"
  48. android:background="?attr/selectableItemBackgroundBorderless"
  49. android:clickable="true"
  50. android:focusable="true"
  51. app:tint="?attr/textColorSecondary" />
  52. <View
  53. android:id="@+id/bring_to_front_separator"
  54. android:layout_width="1dp"
  55. android:layout_height="match_parent"
  56. android:layout_marginLeft="@dimen/ackdec_popup_content_margin"
  57. android:layout_marginRight="@dimen/ackdec_popup_content_margin"
  58. android:background="?divider_color"
  59. />
  60. <ImageView
  61. android:id="@+id/bring_to_front_paint"
  62. android:layout_width="@dimen/ackdec_emoji_size"
  63. android:layout_height="@dimen/ackdec_emoji_size"
  64. android:padding="@dimen/ackdec_popup_content_margin"
  65. android:src="@drawable/ic_bring_to_front"
  66. android:contentDescription="@string/to_front"
  67. android:background="?attr/selectableItemBackgroundBorderless"
  68. android:clickable="true"
  69. android:focusable="true"
  70. app:tint="?attr/textColorSecondary" />
  71. <View
  72. android:id="@+id/color_separator"
  73. android:layout_width="1dp"
  74. android:layout_height="match_parent"
  75. android:layout_marginLeft="@dimen/ackdec_popup_content_margin"
  76. android:layout_marginRight="@dimen/ackdec_popup_content_margin"
  77. android:background="?divider_color"
  78. />
  79. <ImageView
  80. android:id="@+id/color_paint"
  81. android:layout_width="@dimen/ackdec_emoji_size"
  82. android:layout_height="@dimen/ackdec_emoji_size"
  83. android:padding="@dimen/ackdec_popup_content_margin"
  84. android:src="@drawable/ic_color_lens_24px"
  85. android:contentDescription="@string/palette"
  86. android:background="?attr/selectableItemBackgroundBorderless"
  87. android:clickable="true"
  88. android:focusable="true"
  89. app:tint="?attr/textColorSecondary" />
  90. </LinearLayout>
  91. </androidx.cardview.widget.CardView>
  92. </FrameLayout>