androidsvg
androidsvg copied to clipboard
set click event for each path base on id
if my file: xxx.svg , there are many path, how can i set click event for each pach ? maybe "id" is a nice way . and can you give me some idea to set click event ?
The library was written originally just to support rendering, not interaction. So there currently isn't an easy way to do what you are after.
However, point-in-path and other functions necessary to support interaction are on the to-do list.
More important on this feature, is there any plan?
I am using your library for displaying multiple paths over an image. I need to handle the click for each path. I noticed that requests have already been made for the same. Is there any update on when 1.4 would be available with support for click event for each path id.
I work on the library on weekends. But not every weekend :). I don't have an ETA for this feature yet. Sorry.
Hi Paul,
Good morning. I am using the AndroidSvg library for displaying multiple svg's drawn over an image. The svg's are being drawn on different positions for different devices. I think it is because of the different pixel densities of the devices. I was trying to use the setRenderDpi method as stated in the release notes for version 1.3 ( https://bigbadaboom.github.io/androidsvg/api_summary.html) but when I look into the code for the library it states that the method is unused. Is there a different library version which has the support for setting the renderDpi or is there any other way I can set the value for drawing the svg?
Appreciate your help.
Thank you, Gurpreet
On Wed, Oct 24, 2018 at 6:14 PM Paul LeBeau [email protected] wrote:
I work on the library on weekends. But not every weekend :). I don't have an ETA for this feature yet. Sorry.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BigBadaboom/androidsvg/issues/95#issuecomment-432846876, or mute the thread https://github.com/notifications/unsubscribe-auth/AimUuDptdF8JjS7xn-dsHwpjK8lvQA5Cks5uoOZQgaJpZM4I3DzT .
Hi Gurpreet
setRenderDPI()
likely isn't what you want. I apologise that the Javadoc isn't very clear on what it actually does. Its purpose is only to set how units like in
, cm
, etc are interpreted. By default, we use the standard CSS ratio where 1in
== 90px
. setRenerDPI()
lets you change that.
If you are not using those sort of units, then changing the DPI will appear to do nothing.
+1
Thank you for adding this feature