Creating an empty Drawable in Android

Posted by Kai on Stack Overflow See other posts from Stack Overflow or by Kai
Published on 2010-02-10T03:53:24Z Indexed on 2010/04/10 19:53 UTC
Read the original article Hit count: 413

Filed under:

Creating a Drawable that is completely empty seems like a common need, as a place holder, initial state, etc., but there doesn't seem to be a good way to do this... at least in XML. Several places refer to the system resource @android:drawable/empty but as far as I can tell (i.e., it's not in the reference docs, and aapt chokes saying that it can't find the resource) this doesn't exist.

Is there a general way of referencing an empty Drawable, or do you end up creating a fake empty PNG for each project?

© Stack Overflow or respective owner

Related posts about android