VectorChildFinder icon indicating copy to clipboard operation
VectorChildFinder copied to clipboard

can you update this library to latest app compat elements

Open zeeshanrasool91 opened this issue 3 years ago • 8 comments

zeeshanrasool91 avatar Apr 05 '22 09:04 zeeshanrasool91

This can be done through Java reflection. First reflect call VectorDrawable.getTargetByName or VectorDrawableCompat.getTargetByName method to get VFullPath: Object path = ReflectUtil.invoke(vectorDrawable, "getTargetByName", new Class[]{String.class}, new Object[]{pathName}); Then Reflect calls the VFullPath.setFillColor method to set the color: ReflectUtil.invoke(path, "setFillColor", new Class[]{int.class}, new Object[]{color});

micstart avatar Jun 07 '23 13:06 micstart

This has been done already. Please check the latest release: https://github.com/devendroid/VectorChildFinder/releases/tag/1.0.1

devmike01 avatar Sep 19 '23 13:09 devmike01

The version 1.0.1 has an error in jitpack, can't download

IsLery avatar Sep 27 '23 12:09 IsLery

@IsLery The version doesn't have any known errors. Share your stack trace.

devmike01 avatar Sep 27 '23 14:09 devmike01

image

image

IsLery avatar Sep 27 '23 15:09 IsLery

@devmike01 could you please take a look?

IsLery avatar Dec 12 '23 10:12 IsLery

Hi @IsLery , I'm looking into this now.

devmike01 avatar Dec 16 '23 18:12 devmike01

I have submitted a PR to fix this. However, while waiting for approval you can use this: implementation 'com.github.devmike01:VectorChildFinder:1.1.1-beta' @IsLery

devmike01 avatar Dec 16 '23 19:12 devmike01