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,360
  • 5
  • 25
  • 45
  • 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

0

You can put this code in your Activities onCreate() method to change the status bar color of the activity:

getWindow().setStatusBarColor(<your color>);
Ocasin
  • 136
  • 4