Has anybody experience with using svg for creating custom buttons on android? I recently stumbled upon the svg-android project that was used for androidify and I’m wondering whether it is worth the trouble rewriting the code.
At the moment I’m using nine-patch buttons. The only problem is that I need to create several images for different resolutions. However, if I switch to vector graphics, I’m not sure how to preserve the rounded corner radius when I resize the button, for example.
Has anyone experience and can tell me whether it’s worth the trouble ?
It sounds like you should maybe use Shapes instead of 9-patches. They superior in most of the cases (especially with rounded corners, gradients …) : http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape
You can also use layer-lists to stack shapes.