0

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?

a_local_nobody
  • 7,947
  • 5
  • 29
  • 51
  • 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 Answers1

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