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 63 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
- 67,701
- 16
- 123
- 163
0
Go to styles.xml and Change this DarkActionBar to NoActionBar
style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

MarGin
- 2,078
- 1
- 17
- 28