Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Changing Android's StatusBar color (statusBarColor/colorPrimaryDark)

$
0
0

I'm having quite the struggle with changing the StatusBar's color for the Android version of my Xamarin.Forms application.
After searching the topic for quite a while I couldn't find any property to set it, so I tried it with Styles:

<item name="android:colorPrimaryDark">@color/actionBarTextWhite</item>
<item name="android:statusBarColor">@color/actionBarTextWhite</item>
<item name="android:colorPrimary">@color/actionBarGreen</item>

It accepts and also applies the colorPrimary for the ActionBar, so my style is active and correctly implemented. However, the StatusBar remains black.
I tried it with statusBarColor first, then with colorPrimaryDark, then with both, since they're both colors for the StatusBar as mentioned here:
http://developer.xamarin.com/guides/android/platform_features/android_l/material_theme/

Is this a bug, am I missing something or is it simply a not-implemented feature?

Regards


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>