Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are vector images useful for Android? [closed]

I am developing Android application. I want to use vector image. (.svg file) But I am not confident best way is using vector image.

Svg-android.jar is not usefull. Not support all of .svg file types. It may be trouble later time. On the other hand, if I use vector, it is much easy for me. Especially I will not work on resolutions.

I need help. I must decide as soon as possible.

Any suggestions?

like image 477
Breed Hansen Avatar asked Jan 09 '13 11:01

Breed Hansen


People also ask

Why do we use vector images in Android?

The major advantage of using a vector drawable is image scalability. It can be scaled without loss of display quality, which means the same file is resized for different screen densities without loss of image quality. This results in smaller APK files and less developer maintenance.

What are the main uses for vector graphics?

Most often, businesses use vector graphics for advertising and marketing, as well as brand collateral. Vector graphics can also enhance mobile apps, websites, infographics, and digital presentations.

Is there a vector app for Android?

Adobe Illustrator draw is the award-winning vector drawing app for mobile and tablet. It is the mobile version of the Adobe Illustrator desktop application and supports direct file transfer to the desktop app. The app has 5 main brushes which are fully customizable.

Why should you use vector graphics?

Web designers especially appreciate vector graphics' small file size because they load much faster on web pages. One of the most widely used online image file types, SVG (Scalable Vector Graphics), is favored for its small file size. Smaller image files lead to faster page load times and a better user experience.


1 Answers

Vector graphics are a bad good idea.

Android was not designed to use them. So if you go that route, you'll have to fight against the green robot every step of the way. And let me tell you that little robot devil as got a lot of stamina !!

When you start fresh on a new language don't try to outsmart it. You will always loose time, hair and sanity.

Android uses a 'quite complex to grasp' concept that mixes resolution and screen sizes and nine-patches. But once mastered it is not that far fetched and you'll realize that the reason they chose this pattern is simple : When dealing with such screens fragmentation there is really no other alternative.

Please read : http://developer.android.com/guide/practices/screens_support.html

And the closest thing to vector graphics in Android : http://developer.android.com/tools/help/draw9patch.html (As advised by Dmitry Zaitsev)

like image 195
Yahel Avatar answered Oct 13 '22 02:10

Yahel