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
36
votes
8 answers

android:load svg file from web and show it on image view

I want to load a svg file from the web and show this file in an ImageView. For non vector images I use the Picasso library. Is it possible to use this library for svg files as well? Is there any way to load svg files from the web and show it in an…
mahdi
  • 16,257
  • 15
  • 52
  • 73
10
votes
2 answers

Scaling Canvas to resize SVG in Android

I'm not having much luck wrapping my head around this, so I'm hoping someone can help me out. I'm getting a drawable from an SVG using svg-android, but the drawable isn't scaling to the view. Everything that I've been able to find says I should draw…
Fafhrd
  • 223
  • 1
  • 3
  • 9
10
votes
2 answers

SVG image not visible in android 3.0+ with same code

I have a test app where I have got a ListView with an item which contains two images on it. As you can see in the API 17 device does not display the play button (SVG image) while the API 10 device does that. How can I fix that? My layout…
rekire
  • 47,260
  • 30
  • 167
  • 264
9
votes
2 answers

I get just blank white screen while using svg-android

Purpose: I want to display an SVG image file using preferably an ImageView. Attempt 1: I'm using the svg-android library to do that. I'm following their tutorial word for word. I just copy pasted their code into my onCreate, commented out my app…
Dheeraj Bhaskar
  • 18,633
  • 9
  • 63
  • 66
7
votes
1 answer

How do I tint this PictureDrawable?

I am using svgandroid to generate PictureDrawables from SVG raw resources. However, I can't seem to be able to apply a color filter on a drawable created this way. The old code using PNGs icon =…
The Vee
  • 11,420
  • 5
  • 27
  • 60
5
votes
1 answer

Using svg-android library

i'm trying to use svg-android to display a road map i exported from openstreetmap. I follow the steps from the tutorial and it worked great with a test.svg graphic (3KB). But the exported map is arround 500KB. When i try to load the map i get an…
t0mM3k
  • 51
  • 1
  • 2
5
votes
1 answer

Zoomable SVG with clickable areas - Android

I'm making very simple application. It needs to show one SVG containing generalised world map. By clicking on city's name (svg rectangle), I need to show another SVG that corresponds to that city. Also, all SVGs must support zooming and panning. I…
Aleksandar
  • 1,163
  • 22
  • 41
3
votes
1 answer

Load background from SVG resource

I'd like to use svg-android to load an SVG picture as a layout background. I tried this, but my layout background still white (nothing special in logcat): protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Antoine C.
  • 3,730
  • 5
  • 32
  • 56
2
votes
1 answer

how to embed an SVG enabled webkit webview in an Android app?

Is there a way to embed a customized webkit engine in an app to add a WebView with SVG support ?
jrm
  • 163
  • 1
  • 7
2
votes
1 answer

VectorDrawable is not displayed Correctly on Android

I have some icons in SVG format. Converting it to VectorDrawables does not seem to be OK. It is sharp as it should be Does any one has an idea what could be the reason? Here is the original SVG icon: and here how it look like on Android as a…
Metwalli
  • 1,861
  • 1
  • 18
  • 27
2
votes
1 answer

svg image files android

I am using the below code to render svg images to imageview in my android application ImageView imageView = new ImageView(this); final SVG svg = SVGParser.getSVGFromAsset(getAssets(), "start_4_480.svg"); …
Ramyavjr
  • 319
  • 3
  • 13
1
vote
1 answer

Scaling SVGs in Android?

I'm trying to use this library http://code.google.com/p/svg-android/ to get SVGs into android. Here's my code so far: public class main extends Activity { /** Called when the activity is first created. */ ImageView iv; @Override …
Roger
  • 6,443
  • 20
  • 61
  • 88
1
vote
0 answers

image drawable is not showing in imageview

i am working with svgs in my app. the issue is that my svgs are not loading when i create image view of size 1500px x 500px. i have to keep size of image view in pixels and it is fixed. but when i decrease the size of image view to 950px x 430px,…
k_dev
  • 97
  • 1
  • 11
1
vote
0 answers

Layers of SVG in separate imageviews

I want to raster layers of svg in separate imageviews. Currently i am using svg-android to parse svg files. But how can i extract layers of svg in separate imageviews? Is there any library to do this? Thanks
k_dev
  • 97
  • 1
  • 11
1
vote
0 answers

svg images pathData in VectorDrawable

I am working on svg images. But i am not able to combine pathData of two different svg images to form one single pathData for animation.
Harshit Rathi
  • 1,862
  • 2
  • 18
  • 25
1
2 3