Hi.
I need to build several slightly different apps from one code base,
where only the styling and some variables are different in each app.
Right now I use an awful "Constants" class where I comment in/out the
correct values for each app, in addition to copying the correct
graphic resources to the res/drawable/ folder.
One way to make this less painful would be to refer to a Java static
Constants#appVariant from styles.xml and splash.xml, e.g like this
pseudo-entry:
<style name="Artwork">
<item name="android:background">@drawable/
border_{Constants.appVariant}</item>
</style>
Is this possible?
And I guess there are better ways of solving this. All hints are
appreciated!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.