Re: [android-developers] Defining custom drawables in XML

2012-09-17 Thread Manfeel
On Monday, September 12, 2011 3:18:24 PM UTC+8, Romain Guy (Google) wrote: > > Hi, > > Custom drawables are not allowed from XML, mostly for security reasons. > XML drawables can be loaded as resources by other processes (including > Launcher or the system process) and it would be a terrible id

Re: [android-developers] Defining custom drawables in XML

2012-07-07 Thread Y2i
Hi Romain, Has this been changed or are the docs incorrect? http://developer.android.com/guide/topics/graphics/2d-graphics.html#drawables-from-xml Any Drawable subclass that supports the inflate() method can be defined in XML and instantiated by your application. Thank you! -- You received t

Re: [android-developers] Defining custom drawables in XML

2011-09-12 Thread Romain Guy
Hi, Custom drawables are not allowed from XML, mostly for security reasons. XML drawables can be loaded as resources by other processes (including Launcher or the system process) and it would be a terrible idea to run random 3rd party code in these processes. On Sun, Sep 11, 2011 at 5:00 AM, Jean