Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any Android Drawable designers?

I would like to use more vector drawings in my Android applications. Providing images isn't as space efficient or as scalable as I would like it to be.

Android provides a series of Drawable file formats, such as ShapeDrawable, which can be combined in a LayeredDrawable. To go very far down this path, it would be nice if there was a designer for visualizing the results, doing the drawing in, and handling all the resulting files.

C# WPF has Expression Blend, Adobe has Flash CS4, and the iPhone has Opacity. So my question is, is there a designer or drawing tool for Android?

Note: Other questions have talked about using SVG in Android. Android doesn't have native support for SVG, so the only way to do it is with an external library. I would like to avoid that and am asking for a developer side tool. An SVG to Drawable converter would be fine, but I'm not aware of one.

like image 296
Nathan Avatar asked Feb 01 '11 06:02

Nathan


People also ask

What is v24 in android drawable?

Classic drawable resources such as images are stored in the drawable folder. In contrast, vector drawables are stored in drawable-v24 . For this project, keep the drawable default and click OK. You should now see the New File dialog box.

What are Drawables in android?

A drawable resource is a general concept for a graphic that can be drawn to the screen and which you can retrieve with APIs such as getDrawable(int) or apply to another XML resource with attributes such as android:drawable and android:icon . There are several different types of drawables: Bitmap File.


2 Answers

I faced the same problem and I've just released a little library on github that allow to export svg to drawable more quickly.

https://github.com/r3gis3r/svg2drawable

Hope can be useful for you.

like image 196
r3gis3r Avatar answered Sep 24 '22 14:09

r3gis3r


For the sub-subset of rectangular ShapeDrawables there is a nice tool online at Angry Tools which allows one to edit a button's drawable:

http://angrytools.com/android/button/

like image 28
Dion Avatar answered Sep 20 '22 14:09

Dion