Answers for "how to hide top bar in activity android"

4

kotlin remove name from an activity

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

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

    setContentView(R.layout.activity_main);
}
Posted by: Guest on February-29-2020
1

hide the title bar android studio

getSupportActionBar().hide();
Posted by: Guest on November-27-2020

Code answers related to "how to hide top bar in activity android"

Browse Popular Code Answers by Language