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
Post a Comment