将操作栏设置为悬浮方式:
1、在Activity
使用setContentView
方法之前,调用
requestWindowFeature(Window.FEATURE_ACTION_MODE_OVERLAY);
2、如果是继承ActionBarActivity
,则调用以下方法
supportRequestWindowFeature(WindowCompat.FEATURE_ACTION_MODE_OVERLAY);
感谢原作者,文章来源:http://blog.csdn.net/feifei454498130/article/details/47685063