String resTypeName = getResources().getResourceTypeName(R.id.控件);
String resEntryName = getResources().getResourceEntryName(R.id.控件);
Context apk = createPackageContext(packageName,
Context.CONTEXT_IGNORE_SECURITY);
int drawavleId = apk.getResources().getIdentifier(resEntryName, resTypeName,
apk.getPackageName());
String resEntryName = getResources().getResourceEntryName(R.id.控件);
Context apk = createPackageContext(packageName,
Context.CONTEXT_IGNORE_SECURITY);
int drawavleId = apk.getResources().getIdentifier(resEntryName, resTypeName,
apk.getPackageName());