Stacking contextual action bar?

I am using the orange theme in the ma action bar. In the Text editor, when the user tries to make a copy, inserts it, calls the context action with the default background background, a little strange for users, can I change the background of the contextual actions bar?

+6
source share
1 answer

Try adding this to your style in styles.xml and use whatever custom color you need.

<item name="android:actionModeBackground">@android:color/holo_orange_light</item> 

You can also change the drawings for each icon using the same code.

 android:actionModeCloseDrawable android:actionModeCopyDrawable android:actionModeCutDrawable android:actionModePasteDrawable android:actionModeSelectAllDrawable 

Check out the tutorial here - http://www.codercowboy.com/2013/07/05/styling-the-contextual-action-bar-actionmode-divider-or-splitter-for-android/ for changing the icons of the action context bar . I was told that starting with actionMode , the attributes of the action context bar change

+9
source

Source: https://habr.com/ru/post/972439/


All Articles