I just started Android programming and I have a very simple question. It's also how can I remove the part specified in the image below?
Asked
Active
Viewed 54 times
-1
-
**`getSupportActionBar().hide();`** – AskNilesh Mar 23 '18 at 08:43
-
this top part of Android apps is called ActionBar search themes for no actionbar – Vidhi Dave Mar 23 '18 at 08:49
2 Answers
0
try using this code inside on your OnCreate
do it like this :
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
//other codes ...
}
AskNilesh
- 63,753
- 16
- 113
- 150
0
Go to styles.xml and Change this DarkActionBar to NoActionBar
style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
MarGin
- 1,780
- 1
- 15
- 25