If you have a string and you want to find the control using it, you can use the folloeing code.
Resources res = getResources();
int id = res.getIdentifier("titleText", "id", getContext().getPackageName());
No comments:
Post a Comment