This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static int getResourseIdByName(String packageName, String className, String name) { | |
Class r = null; | |
int id = 0; | |
try { | |
r = Class.forName(packageName + ".R"); | |
Class[] classes = r.getClasses(); | |
Class desireClass = null; | |
for (int i = 0; i < classes.length; i++) { |