去掉标题栏有两种方法
1.修改主题
Paste_Image.png Paste_Image.png把Theme.App.Compat.Light.DarkActionBar主题修改为:
Theme.App.Compat.Light.NoActionBar
2.代码动态修改
ActionBar actionbar = getSupportActionBar();
if(actionbar != null){
actionbar.hide();
}
去掉标题栏有两种方法
1.修改主题
Paste_Image.png Paste_Image.png把Theme.App.Compat.Light.DarkActionBar主题修改为:
Theme.App.Compat.Light.NoActionBar
2.代码动态修改
ActionBar actionbar = getSupportActionBar();
if(actionbar != null){
actionbar.hide();
}
本文标题:去掉标题栏
本文链接:https://www.haomeiwen.com/subject/jtouettx.html
网友评论