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 help!
Ray
Frank Weiss wrote:
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 Benjamin <[email protected]
<mailto:[email protected]>> wrote:
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
--
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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
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