Can I use a static variable from a Java class in res/values/styles.xml?
Posted
by neu242
on Stack Overflow
See other posts from Stack Overflow
or by neu242
Published on 2010-04-15T09:01:56Z
Indexed on
2010/04/15
9:03 UTC
Read the original article
Hit count: 172
I want to refer to a static Java variable in my styles.xml, is that possible? Here's a pseudo-xml example:
<style name="Artwork">
<item name="android:background">@drawable/border_{Constants.MY_COLOR}</item>
</style>
© Stack Overflow or respective owner