androidsvg icon indicating copy to clipboard operation
androidsvg copied to clipboard

set click event for each path base on id

Open tracyallen opened this issue 8 years ago • 9 comments

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 ?

tracyallen avatar Jun 16 '16 06:06 tracyallen

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.

BigBadaboom avatar Jun 16 '16 11:06 BigBadaboom

More important on this feature, is there any plan?

bigo132 avatar Mar 03 '17 01:03 bigo132

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.

gurpreetkatta avatar Oct 24 '18 20:10 gurpreetkatta

I work on the library on weekends. But not every weekend :). I don't have an ETA for this feature yet. Sorry.

BigBadaboom avatar Oct 24 '18 22:10 BigBadaboom

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 .

gurpreetkatta avatar Dec 18 '18 14:12 gurpreetkatta

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.

BigBadaboom avatar Dec 18 '18 15:12 BigBadaboom

+1

ShaMan123 avatar Jun 15 '19 23:06 ShaMan123

Thank you for adding this feature

TreeGrow avatar Jan 24 '22 20:01 TreeGrow