That helps, at least it reduces the clutter. What isn't covered by
styles I may be able to handle using values. If I have all the
attributes reference the same values, at least there will only be one
place it has to be changed, and thus a lot fewer possible breakage
points. :)
Thanks for the
Have you looked into Themes and Styles:
http://developer.android.com/guide/topics/ui/themes.html
If the attributes are not related to that, other approaches would be:
inflater hook, attribute injection at runtime, generate the layout xml files
with XSLT.
On Sun, Jan 17, 2010 at 11:19 AM, Ray Benj
In creating a layout file, I have 25 buttons that all use the same
attributes except for ID. It seems like there should be some way to
package up all those attributes and use a reference to them, but I can't
recall how. Been a while since I did a lot with XML. Can someone help?
Thanks,
Ray
--
3 matches
Mail list logo