📜  删除标题栏 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:18.391000             🧑  作者: Mango

代码示例1
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    try
    {
        this.getSupportActionBar().hide();
    }
    catch (NullPointerException e){}

    setContentView(R.layout.activity_main);
}