I want to remove the header on top of my activity. I tried this two ways, they work, but not at the 8th level.
1:
<style name="NOtitleTheme" parent="Theme.AppCompat.Light"> <item name="android:windowFullscreen">true</item> <item name="android:windowNoTitle">true</item> </style>
2:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
any idea why this is not working on api 8 ?
as soon as I managed to remove it in api 8 , but I donโt remember how.
EDIT:
Solved! the problem was this.requestWindowFeature(Window.FEATURE_NO_TITLE) does not work in API 8, and <item name="android:windowNoTitle">true</item> does not work, but actionBar.hide() works, the reason getSupportActionBar ( ) returns null, one of two options before, I just forgot to delete both. when I delete one, I add another (which is stupid!) Thanks everyone! (sorry for bad english)
source share