如何在xamarin中更改android标签文本颜色?

时间:2016-05-31 15:46:04

标签: android xml android-layout xamarin.android android-theme

我正在使用xamarin开发应用,但无法弄清楚如何更改我正在使用的Style.xml中应用标题的文字颜色,如下所示。

Expected output

<resources>
    <style name="MyTheme" parent="@android:style/Theme.Material.Light">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowActionBar">false</item>
    <item name="android:colorPrimary">#00d1ff</item>
    <item name="android:colorPrimaryDark">#40c5e9</item>
    <item name="android:textColor">#40c5e9</item>
    <item name="android:textColorPrimary">#FFFFFF</item>
  </style>
</resources>

1 个答案:

答案 0 :(得分:0)

将您的颜色放在colors.xml中,并像

一样引用它们
<item name="android:colorPrimary">@color/green</item>