Is it possible to have different color of status bar in each Activity like in Activity A is blue, Activity B is red, and Activity C is green?
Asked
Active
Viewed 528 times
0
-
Either you can create style for every activity and assign the styles to the activities in Manifest.xml or you can just simply change the Status bar color programmatically in `onCreate()` of every Activity. Questions like these have already been asked many times. – Lalit Fauzdar May 03 '22 at 15:08
1 Answers
1
You can put this code in your Activities onCreate()
method to change the status bar color of the activity:
getWindow().setStatusBarColor(<your color>);

Ocasin
- 211
- 1
- 4