How to make contextual actionmode bar overlay my layout instead of “pushing” it down

后端 未结 3 596
孤街浪徒
孤街浪徒 2021-02-01 13:37

I have implemented my own viewgroup for my application. Using actionbar is not an option for various reasons so in my viewgroup I have my own \"actionbars\" one on top and one i

相关标签:
3条回答
  • 2021-02-01 14:13

    Just add <item name="android:windowActionModeOverlay">true</item> to your style.

    0 讨论(0)
  • 2021-02-01 14:23

    To use windowActionModeOverlay with appcompat toolbar,use

    <item name="windowActionModeOverlay">true</item>  
    

    to your style.

    0 讨论(0)
  • 2021-02-01 14:35

    This can also be done programmatically using:

     getWindow().requestFeature(Window.FEATURE_ACTION_MODE_OVERLAY);
    
    0 讨论(0)
提交回复
热议问题