Closed milk1990 closed 7 years ago
You want patch the resourceļ¼first you should hook the AssetManager.addAssetPath() and add your patch resource into system, then you should hook Resources.getDrawable() and TypedArray.getDrawable() and return your patch's image resource. And also you need make sure your patch's image resource has different resource ID number. These were what I did, hope it could help you.
thanks very much
In the project, I want to load some new Image,but all of them in the patch package,I use some methods as I know,but it dones't work!