Questions tagged [svg-android]

A very small libary to support vector graphics for Android

This is a compact and straightforward library for parsing SVG files and rendering them in an Android Canvas. By using vector art, the pain of supporting various screen sizes and densities in Android can be reduced. This was the library used to render the artwork and the interface of Androidify.

See also the official homepage.

31 questions
1
vote
2 answers

Vectors in Android resized dynamically

I'm using SVG imported images in android, but I can't resize it using a ImageView, the image is like this. The imported drawable is:
Felipe Jun
  • 722
  • 11
  • 22
1
vote
1 answer

SVG Blur on pre Lollipop devices

When i inflate SVG into ImageView, it appears blurred on pre-lollipop devices whereas it is working fine on Lollipop or later devices. I don't want to use third party libraries to process svg and inflate it into ImageView. Please help.
Malwinder Singh
  • 6,644
  • 14
  • 65
  • 103
1
vote
0 answers

SVG zoom and scroll gesture

I have a simple activity which display a fullscreen SVG thanks to this android lib. The SVG displayed is a map and I need to enable zoom/scroll gesture on it. That is why I use this lib, which works perfectly with normal ImageView. Here, I'm using…
Krypte
  • 45
  • 8
1
vote
2 answers

What is the best solution to use one icon with differents colors in android?

I've tried to use icons with svg format with svg-android but it doesn't work. I've create a drawable from a the svg file and use it for a ImageView ImageResource but the image is invisible. So How can i do that with svg-android? or with a different…
Maryeme Alaoui
  • 93
  • 2
  • 13
1
vote
2 answers

Canvas is not Showing Image/Drawable

I am doing a work on SVG Paths and Image. I have loaded SVG file and get an image and try to set thi image on canvas . But canvas is not showing image. I check the height and width and null check of this image/picture and it is not null so i am…
User42590
  • 2,473
  • 12
  • 44
  • 85
0
votes
0 answers

Android api 21 app crash because of vector assets

I'm using svg format icons in my app. my application's minimum API level is 21 and target is 24. I knew that I can convert svg format icons into usual android vectors by android studio's "Vector asset" tool. ( which is accessible if you right-click…
0
votes
0 answers

What is difference between "d" attribute in the SVG's path data and android:pathData?

I want to know the difference between "d" attribute in the SVG's path data and android:pathData. Android developer site says that "Defines path data using exactly same format as "d" attribute in the SVG's path data. This is defined in the viewport…
Bandara
  • 283
  • 2
  • 4
  • 17
0
votes
1 answer

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference

When I launch my app this problem shows. This is my Java code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(layout.activity_main); ImageView imageView = new ImageView(this); …
Imèd Digà
  • 19
  • 1
  • 1
0
votes
1 answer

Android svg parsing , official library issues

Hello im writing an android app using the android svg-android.jar. (I think it's the google official library) I'm trying to parse my svg im getting an error. my svg falls on this line :
Chenshov
  • 17
  • 3
0
votes
2 answers

Android Volley display SVG image

In my Android App I download text-content from my website and store it in my mysql database. Now I want to download and cache images from the same website. With AndroidVolley's
0
votes
0 answers

SVG android library

I am using com.larvalabs.svgandroid library. It works fine however only with SVG images made by Adobe Illustrator. I tried Inkscape and online online-convert SVG convertor however none of those outputs worked. Is there any free software that…
Martina
  • 929
  • 7
  • 19
0
votes
1 answer

SVG Android Exception

I have met problems dealing with the SVG-android library. In my main activity I want to display the SVG object on the imageview however, i am facing this error. java.lang.RuntimeException: Unable to start…
pancakeleh
  • 70
  • 1
  • 2
  • 11
0
votes
1 answer

Why won't my SVG image display on my Galaxy Nexus?

I'm trying to have one image be a background for another, using the svg-android library. When I view the image on my Samsung Galaxy Nexus (4.3, Sprint), the background image doesn't display. When I view it on the emulator, it's there correctly.…
PearsonArtPhoto
  • 38,970
  • 17
  • 111
  • 142
-1
votes
1 answer

foreignobject in svg

How to change the height and width of textarea (or any html element) from javascript which is inside foreign object in svg.Moreover, can I drag an html elelment and drop on svg container by any mean (htm5 any hint) or atleast can I get the…
Arslan Ahson
  • 256
  • 1
  • 3
  • 10
-1
votes
1 answer

Image to SVG file for loading it on Android

Is it possible to convert an image to svg file and load it on android using svg-android lib.? I tried with Inkscape and it is not loading on my app. But if i try with this image, it works! Please guide me in this regard.
Vinod
  • 1
  • 1