【发布时间】:2015-06-30 02:08:30
【问题描述】:
我在使用片段中的工具栏 actionBar 时遇到了一些问题。我知道我可以使用
隐藏它ActionBar actionBar = ((AppCompatActivity)getActivity()).getSupportActionBar();
actionBar.hide();
但我想完全删除它,因为如果我使用上面的代码,它会留下一个空格。 (我发了一张图片给你看结果,但我不能,因为我还没有声望)
谢谢!
【问题讨论】:
-
为什么要在布局中添加工具栏?
-
因为取决于我所在的片段,我是否需要工具栏。
标签: android android-actionbar android-toolbar