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 <ray.benja...@gmail.com>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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to