简体   繁体   中英

Xamarin Status bar text color

I need help in changing the text color of Xamarin app in the status Bar because when Changing the status bar color to white the text color stays white, thus not appearing.

enter image description here

Use the following code in style.xml when you change status bar color.

<item name="android:windowLightStatusBar">true</item>

This makes the text will always appear whatever the background color is.

在此处输入图像描述

Refer to

Change status bar text color when primaryDark is white .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM