- 注册时间
- 2013-4-19
- 最后登录
- 2024-9-26
- 阅读权限
- 200
- 积分
- 6404
- 精华
- 0
- 帖子
- 640
|
AssetManager assetManager = AssetManager.class.newInstance();
AssetManager.class.getDeclaredMethod("addAssetPath", String.class).invoke( assetManager, apkPath);
new Resources(assetManager, context.getResources().getDisplayMetrics(), context.getResources().getConfiguration())
Resources resources=AssertsDexLoader.getResource(getApplicationContext(),dexPath);
Drawable drawable=resources.getDrawable(resources.getIdentifier("bd_logo1","drawable","com.xingen.plugin"));
|
|