Class<?> class_AssetManager = Class
.forName("android.content.res.AssetManager");
Object assetMag = class_AssetManager.newInstance();
Method method_addAssetPath = class_AssetManager
.getDeclaredMethod(
"addAssetPath", String.class);
String path = 路径;
String fileName = 文件名;
method_addAssetPath.invoke(assetMag, path + fileName);
Resources res = context.getResources();
Constructor<?> constructor_Resources = Resources.class
.getConstructor(class_AssetManager, res.getDisplayMetrics()
.getClass(), res.getConfiguration().getClass());
res = (Resources) constructor_Resources.newInstance(assetMag,
res.getDisplayMetrics(), res.getConfiguration());