How to hide the ActionBar from app and show only the flag "back", or to put transparent, but showing only the back button? I want to remove the white part and put the flag white. Thanks!
Asked
Active
Viewed 70 times
0
-
https://stackoverflow.com/a/25863690/4410376 – Hack06 Jul 06 '20 at 12:21
1 Answers
0
try -->
getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
yourActionBarid.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
yourActionBarid.setElevation(0);
Note
Add getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY); before super.onCreate(savedInstanceState);

Wini
- 1,906
- 1
- 12
- 31