Monday, August 1, 2011

[android-developers] Skinning an app

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?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate