String wrote:
> Does anyone know the syntax for an XML file for a single bitmap
> drawable resource? What I'm looking to do is "alias" a drawable in my
> app. I have need for the same image with 2 different names, and rather
> than including the image twice in my res/drawable directory, I'd
> rather alias it (it's fairly large). In other words, instead of:
> 
> res/drawable/name1.png
> res/drawable/name2.png
> 
> I'd like to have:
> 
> res/drawable/name1.png
> res/drawable/name2.xml
> 
> where name2.xml looks SOMETHING like this:
> 
>   <?xml version="1.0" encoding="UTF-8" ?>
>   <bitmap src="@drawable/name1" />
> 
> Is this possible? If so, any idea what the syntax should be? I can't
> find it in the docs, and I've had no luck with trial-and-error.

http://idunnolol.com/android/drawables.html

Your syntax may work just as is.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

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