I have the following problem. I want to change the color of the status bar on Android in code. (The top bar that shows the time, battery, etc.). I know that I can change the background color of the bar in styles.xml in the Android project as follows:
<item name = "colorPrimaryDark"> # ffffff </item>
And I can switch the text color between black and white as follows:
<item name = "android: windowLightStatusBar"> true </item>
But how can I set these values in C # without the styles.xml?