I want to hide the title bar from the activity. I applied style to all activities If you use @android:style/theme.NoTitleBar, the title bar disappears I can't use that. Is there any other way?
android-layout android titlebar
In the onCreate() activity that you want to get rid of,
//Remove Title Bar
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
//Remove Notification Bar
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
//Apply View
this.setContentView(R.layout.your_layout_name_here);
I think you can do it.
© 2024 OneMinuteCode. All rights reserved.