micstart

Results 3 comments of micstart

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...

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...

> @micstart You can't use reflection on VectorDrawable, which the VectorDrawableCompat generates. It will crash because it's blocked. You can see [VectorImage](https://github.com/Reign9201/VectorImage) also use reflection.