Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can you update this library to latest app compat elements #17

Open
zeeshanrasool91 opened this issue Apr 5, 2022 · 8 comments
Open

Comments

@zeeshanrasool91
Copy link

No description provided.

@micstart
Copy link

micstart commented Jun 7, 2023

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});

@devmike01
Copy link
Contributor

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

@IsLery
Copy link

IsLery commented Sep 27, 2023

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

@devmike01
Copy link
Contributor

devmike01 commented Sep 27, 2023

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

@IsLery
Copy link

IsLery commented Sep 27, 2023

image

image

@IsLery
Copy link

IsLery commented Dec 12, 2023

@devmike01 could you please take a look?

@devmike01
Copy link
Contributor

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

@devmike01
Copy link
Contributor

devmike01 commented Dec 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants