JAVA/Android
[안드로이드] 아이디 문자열로 int 아이디값 구하기.
네코냥이
2014. 7. 1. 17:03
Context -> getResources();
int resID = getResources().getIdentifier("button_%i",
"id", getPackageName());
View addButton = findViewById(resID);