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

Issue setting colors in XF

$
0
0

I am having some issues with setting the status bar color and the selected tab underline color in xamarin forms, especially android.

Status Bar
I thought that setting the colorPrimaryDark would set the status bar background color:
<item name="colorPrimaryDark">@color/primaryDark</item>

Which i set to yellow as a test, but instead it look black, with no text. If I swipe down from the top of the screen then somehow the text (time, battery, carrier etc show).

Tab Underline
I do this but the tab underline is still white:

  <!--Selected tab underline-->
  <style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
    <item name="colorAccent">@color/accent</item>
  </style>

How can I fix this? How do I set the tab underline color and the status bar color in android and iOS?
Thanks


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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