According to the documentation, android:statusBarColor or android:colorPrimaryDark should change the color of the status bar on Android 5.0 devices. I have both of these properties set in a theme that inherits from android:Theme.Material.Light.DarkActionBar.
Below is the contents of my Styles.xml file in the values-v21 folder. The first 3 items change the colors as expected. But the last 2 seem to have no impact. I have not tried to change the Navigation Bar color, so I don't know if that works or not.
<style name="ItronMobileTheme" parent="android:Theme.Material.Light.DarkActionBar">
I have been able to reproduce this when building with XA 5.1.
Downgrading to XA 4.20 produces the expected results and works.
Created attachment 11546 [details]
Attached a sample.
1. Run on an API 21 device with XA 5.1 installed.
To see expected behavior:
1. Downgrade to XA 4.20, rebuild app, and run on an API 21 device.
Dean: This is probably resource-related... :-(
I checked out the latest beta build for XA (18.104.22.168) and found that all attributes can be changed except for colorPrimaryDark. Though, this happens to be the same behavior that a ported native version of the sample had as well. In other words, colorPrimaryDark is not being altered when using a native Java Android app - it is the same between both the XA and native app.
This device used for testing was a Samsung Galaxy S5 (5.0).
env : https://gist.github.com/BenBeckley/2a41477badafd39ee8d0
Created attachment 11752 [details]
port of the test case provided
For those interested in trying out the native app.
Also, here is a reference as to what these values should be changing: https://developer.android.com/training/material/theme.html#StatusBar
I have checked this issue and I am also able to reproduce this. To reproduce this issue I have followed the steps and instruction provided in comment 2.
I observed that the color of the status bar does not change with XA 22.214.171.124 and it works(Change) with XA 126.96.36.199.
Ide Logs: https://gist.github.com/Rajneesh360Logica/39760d3df772e01f88c0
Device logs: https://gist.github.com/Rajneesh360Logica/0a7cd2abc8295b0a3acc
Application Output: https://gist.github.com/Rajneesh360Logica/6887ed0c0b529f37c358
Build Output: https://gist.github.com/Rajneesh360Logica/51fd88d62d5ceabf5e38
=== Xamarin Studio ===
Version 5.9.4 (build 5)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
Mono 4.0.2 ((detached/c99aa0c)
GTK+ 2.24.23 (Raleigh theme)
Package version: 400020005
=== Xamarin.Android ===
Version: 188.8.131.52 (Starter Edition)
Android SDK: /Users/MM/Desktop/android-sdk-macosx
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
4.1 (API level 16)
4.2 (API level 17)
4.3 (API level 18)
4.4 (API level 19)
4.4.87 (API level 20)
5.0 (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
=== Xamarin Android Player ===
Version: Unknown version
Location: /Applications/Xamarin Android Player.app
=== Apple Developer Tools ===
Xcode 6.2 (6776)
=== Xamarin.iOS ===
Version: 184.108.40.206 (Starter Edition)
Build date: 2015-06-30 11:17:03-0400
=== Xamarin.Mac ===
Version: 220.127.116.11 (Starter Edition)
=== Build Information ===
Release ID: 509040005
Git revision: 8010a90f6e246b32364e3fb46ef2c9d1be9c9a2b
Build date: 2015-06-08 16:52:06-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8
=== Operating System ===
Mac OS X 10.9.5
Darwin MacMini.local 13.4.0 Darwin Kernel Version 13.4.0
Sun Aug 17 19:50:11 PDT 2014