You can reference resources via a theme, with "?attr/blahblah" syntax. It certainly works for drawables, and should be easy to test if it works for layouts as well.

01.08.2011 16:18, Christine пишет:
I have tried whitelabeling an app, so I can use the same codebase for
a number of customers. What's different in the apps is the graphics,
styles and layouts, not the code. The best way I could think of is
have an ant script that copies the res folder and the manifest file
into a separate project, and copy it back to the main project. By
running this ant script I switch between skins. But there must be a
more elegant way of having skins for an app. Styles won't do it,
because that's too limited, you can only change android: attributes,
not layouts and drawables.
Wouldn't it be nice if a Theme didn't just have it's own styles, but
also its own res folder?


--
Kostya Vasilyev

--
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

Reply via email to