Questions tagged [androidsvg]

AndroidSVG is a free library for parsing and rendering SVG files on Android.

38 questions
0
votes
1 answer

Setting up square image as background

I have square image and I need to set that image as background. But I need that image to render differently in portrait and landscape mode. As shown in the picture, the same image should be applied for both landscape and portrait but each should…
skafle
  • 627
  • 1
  • 6
  • 16
0
votes
2 answers

AndroidSVG: How to dynamically change Inkscape svg color

AndroidSVG allows for dynamic color change as explained here. The following code works for 95% of my icon library ... SVGImageView svgIV; ...... String color = "#FEFBDE" svgIV.setCSS(String.format("* { fill:%s; }", color);); ... but fails on…
Bad Loser
  • 3,065
  • 1
  • 19
  • 31
0
votes
1 answer

Should I use a LinearLayout with repeated background or a SVG ImageView to fill a whole row?

Linked questions The below questions couldn't finally solve my problem, described below. Android: Is it possible to repeat an (SVG!) drawable inside an ImageView? Android: Keep ratio for a full-width and undefined height ImageView in a…
0
votes
1 answer

Showing a full-width ImageView containing a SVG distorts it

My aim is to show a SVG background image filling the whole screen's width, in a ConstraintLayout. A Button is superposed to this background image, that's why you can see in the mock-up below: The background image is the one that contains the stars.…
0
votes
0 answers

Import, edit and Export saved SVG files

I am having a requirement where I have to generate a single svg file from various svg file like shapes into the canvas in android platform like making a image. And above that after saving that svg file I can also re-import that svg file and can…
0
votes
1 answer

Is there any way to implement an android application to display India map SVG file and make some interaction with svg file?

Is there any way to implement an android application to display India map SVG file and make some interaction with svg file like selecting states of india on click. Zooming in , zooming out. Consider india as a single svg file having all states…
user3831831
0
votes
1 answer

Download SVG and convert to a Bitmap or Drawable

My API is returning an SVG, I want to take this SVG and turn it into a bitmap, so I can use it as a Pin on my google maps fragment. I found https://github.com/japgolly/svg-android which as soon as I added the Jar to my app I started to get weird…
StarWind0
  • 1,554
  • 2
  • 17
  • 46
0
votes
1 answer

How to fill svg shape when i touch on svg image without loss quality of svg

This image is SVG image which is loaded into SVGImageView. I can't fill color into SVG with onTouch listener. I am tired to fill color into particular shape or area. Help me. Thank you. https://i.stack.imgur.com/96TM5.png And fill area with…
0
votes
0 answers

Get SVG out of ImageView

I'm using AndroidSVG to dynamically place a signature rendered as an svg, for displaying to an ImageView. Here is my code: SVG svg = SVG.getFromString(singleEmployee.signature); ImageView image_view = (ImageView)…
0
votes
1 answer

How to identify subelements from SVG in android?

I'm using SVG rendering library for Android create a drawable vector by parsing SVG. Then I want to identify elements of it and make them fillable. For example I want to identify all six elements separately in the SVG file as follows and I want to…
isuru
  • 3,385
  • 4
  • 27
  • 62
0
votes
1 answer

AndroidSVG fuzzy edges on image

I am want to display Barcode on android. As input I get SVG string. As a SVG library I use AndroidSVG. I used sample code from library website and everything seem to be fine. But when I zoom on image, I get distorted edges (Anti-alias?). I tried to…
kvgr
  • 325
  • 4
  • 17
0
votes
1 answer

How to use method setDocumentViewBox() in AndroidSVG

I use the androidsvg-1.2.1.jar for rendering svg image. The original size of the image is 260 pixels in width and 100 pixels in height. I tried to set the width of the image in proportion to the width of the display as follows: …
Ksenia
  • 3,453
  • 7
  • 31
  • 63
0
votes
1 answer

How do I use SVGs in android correctly?

I know that official support for SVG didn't start until api level 23, but how do I use it in an app with the min sdk at 17? I have had it working before, and I don't know what changed. I am using AndroidSVG library. I get this error when I try to…
linuxer
  • 523
  • 2
  • 4
  • 22
0
votes
1 answer

Generated pictures with Universal Images Loader do not scale

I am using android-svg and UniversalImageLoader for displaying svg pictures in a custom chess component. Though the chess component is a subclass of ImageView, I can't just use ImageLoader.getInstance().displayImage() as the picture does not fill…
loloof64
  • 5,252
  • 12
  • 41
  • 78
0
votes
1 answer

Render an SVG image on top of a png file in Image view

I have a png file loaded in image view in the layout. Then I have a svg image which I need to render on top of that png image. Please suggest any possible ways. And let me know if you have any clarifications on my question. SVG svg1 =…
Firnaz
  • 553
  • 7
  • 31