Commit d17aac06 authored by fallenstardust's avatar fallenstardust

直接在基类隐藏actionbar

parent 35d3321a
......@@ -108,6 +108,7 @@ public class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getSupportActionBar().hide();
}
protected void setupActionBar() {
......
......@@ -178,7 +178,7 @@ public abstract class HomeActivity extends BaseActivity implements OnDuelAssista
// 启动
NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);
NavigationUI.setupWithNavController(navView, navController);
getSupportActionBar().hide();
}
//调用
private void onItemSelect() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment