how to Customize the Contextual Action Bar using appCompat in material design

前端 未结 3 966
醉话见心
醉话见心 2020-11-29 22:50

MainActivity.java

I\'ve implemented MultiChoiceModeListener in this class and below is the code:

on listView:

3条回答
  •  無奈伤痛
    2020-11-29 23:27

    You can change the ActionMode background through attribute actionModeStyle:

    
    
    
    

    You will of course need to define a color named color_action_mode_bg:

    #009688
    

    There are other things you can change as well. Example:

    ...
    ...
    ...
    

    To change text color of SAVE and SAVETO, add the following to AppTheme.Base:

    @color/color_action_mode_text
    

提交回复
热议问题