android - Xamarin Colors Causing Build Errors -


i have android application built xamarin studio. added file named colors.xml resources/values folder. contents were:

<resources>     <color name="viewbackgroundcolor">#ffffff</color> </resources> 

to that, following this approach define , use it; however, trying apply view's root element (found resource elsewhere on so, don't have exact link). applied view adding android:background="@color/viewbackgroundcolor" attribute root element. however, generates build error @color/viewbackgroundcolor isn't value. else having issue , there resolution?

to reference color, must use lowercase letters.

so

android:background="@color/viewbackgroundcolor" 

this because xamarin tools lowercases names compliant rules android has resource names.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -