Hacker News new | past | comments | ask | show | jobs | submit login

All mobile graphics should be in vector form. There's no excuse for raster except photos. And if we are talking about vectors, it's easy to use them and everything's pixel-perfect.



Yeah easy. Unfortunately vector drawables are API21+ on Android. A large chunk of my users aren't on API21+. Google helpfully provides app compatibility with older versions by rasterizing to all possible dpi sizes during the gradle build process which makes your apk huge of course and defeats the purpose of vector drawables. So you probably want to try a third party library instead of vector drawables. The most popular one seems to be badaboom/androidsvg. It requires setup code on every imageview to load. So you probably want to use a custom view to make it easier and avoid repeating code everywhere. Of course then you use other libraries that aren't setup to use those custom views and your back to manually rasterizing in code. Easy!


Are you assuming that everything is flat?


You are assuming that vector design can't be 3D-ish.

The parent is refering to the fact that it's much easier to make a design work on more resolutions with vectors.


I am more pointing out that it is not so black and white, since designs can include images/bitmaps/patterns etc so just saying "svg it" doesn't really cut it.

But yeah, it is easier to make it work and it can be non-flat as well.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: