📜  kotlin 从活动中删除名称 - Kotlin 代码示例

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

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

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

    setContentView(R.layout.activity_main);
}