diff --git a/jami-android/app/src/main/res/color/selector_checked_state_color.xml b/jami-android/app/src/main/res/color/selector_checked_state_color.xml new file mode 100644 index 0000000000000000000000000000000000000000..87b9d978d79d9a18f0061736905f14a3386e4bd2 --- /dev/null +++ b/jami-android/app/src/main/res/color/selector_checked_state_color.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:color="@color/transparent" android:state_checked="false"/> + <item android:color="@color/grey_200" android:state_checked="true"/> +</selector> diff --git a/jami-android/app/src/main/res/layout/item_reaction_chip_18.xml b/jami-android/app/src/main/res/layout/item_reaction_chip_18.xml new file mode 100644 index 0000000000000000000000000000000000000000..b6944b43ee6f4eeadd480dc6750f98658f0f35e8 --- /dev/null +++ b/jami-android/app/src/main/res/layout/item_reaction_chip_18.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- Wrapping item into linear layout is not the cleanest way to create padding between items. --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + + android:padding="2dp"> + + + <com.google.android.material.chip.Chip + android:id="@+id/chip" + style="@style/Widget.Material3.Chip.Filter.Elevated" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:elevation="0dp" + android:includeFontPadding="false" + android:textSize="18sp" + app:checkedIconEnabled="false" + app:chipBackgroundColor="@color/selector_checked_state_color" + app:chipEndPadding="0dp" + app:chipMinTouchTargetSize="0dp" + app:chipStartPadding="0dp" + app:chipSurfaceColor="@color/transparent" + app:textEndPadding="4dp" + app:textStartPadding="4dp" + tools:checked="true" + tools:text="🥰" /> + +</LinearLayout> \ No newline at end of file