I'm looking for some advice on how to proceed with implementing a
generic way to make a selected state for many selectable UI items,
without having to have selected state images for each.

I'm working with a large XML driven application where all of the UI's
images are specified in a proprietary XML configuration file.   None
of the UI elements have rollover/selected images.   I'm trying to
avoid having to add rollover images and in turn adding new settings in
XML in order to make these configurable.

My hope is to be able to generically put a tint on existing UI
elements already in the application.  Preferably this could be done in
a factory-like way (pass in a VIew of any kind, and the view gets
tinted).   I can't think of a way, myself, to do this without doing
something like, for each UI element I want to add a "selected" state
tint to, making a relative layout around it or something, where a semi-
transparent image could be overlapped.

Does anyone have some ideas for how I might be able to do this with
the least re-working of my current layouts and code?

Cheers for any suggestions!

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