Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Android App Development
  3. Question
Android App Development

How to change the status bar color for different Android and iOS platforms?

Asked by Chloe Burgess Nov 7, 2023 2.7K views 2 answers
Share

About this question

 Before my app was with android:targetSdkVersion="14" but i decide to make it a little more modern and update it to android:targetSdkVersion="22". However now i have a little problem, the color of the top status bar during the launch phase is now gray (like on the picture) and i would prefer to have it black (like it's was before).


Any idea what i need to do to have my status bar black again during the launch phase ?


NOTE

I would like to change the color of the statusbar via the styles.xml. actually i try to add


@android:color/black

or

@android:color/black

didn't help! this question is not a duplicate of other because i can set the StatusBar color to be black without any problem after the app is launched or fully loaded. I need to setup the black background for the statusbar during the launching phase, i mean when user click on the icon of the app their is something like a launch screen (with a define to be black via


@android:color/black) but the statusbar color of this launch sreen is gray (only if android:targetSdkVersion="22")

Your answer

2 Answers

Kerry Smith Latest answer

Answered on Feb 7, 2026

  • Hi! I'm currently into games where random number generators decide everything, especially the themed slots in the 1xbet app on my phone. Want to try your luck at gambling? Then download the app for 1xbet sports betting, register, and receive a nice bonus – 161.73 CAD in your account! 1xbet is a trusted and legal service that has been operating since 2007 and has an excellent reputation.
Was this helpful?

More Android App Development discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Android App Development Blogs

Guides, tips and career advice on Android App Development from JanBask experts.