Starting from Material3 I can not change the action mode background color.
Before Material3, I managed to change the background color with actionModeBackground
attribute:
<item name="actionModeBackground">@color/some_color</item>
Here is my theme:
<style name="AppTheme" parent="Theme.Material3.DayNight.NoActionBar">
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowActionModeOverlay">false</item>
<item name="actionModeBackground">@color/action_mode_background</item>
<item name="android:actionModeCloseDrawable">@drawable/ic_baseline_done_tick_24</item>
</style>
I also checked this thread but doesn't seem to work for material3.
How can I change the action mode background color with Material3?