I am working on an XML layout file and I want to set the background color for LinearLayout. This bit that I am currently using works fine:
android:background="#1a64b7"
However, I would rather break it. In my strings.xml file I have
<string name="bg_blue">#1a64b7</string>
but when I use it as follows:
android:background="@string/bg_blue"
it displays perfectly in the graphical representation of the layout in Eclipse, but the application crashes as soon as it opens. Any ideas? Thanks a ton.
Nick
Nick
source share