how to hide top bar in android studio code example
Example 1: 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);
}
Example 2: android studio removing title bar
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar" />