2012年11月22日 星期四

Android findViewById Dynamically

http://stackoverflow.com/questions/3806847/how-to-create-findviewbyid-parm-dynamically-or-programmatically-at-runtime


int id = getResources().getIdentifier("cell00", "id", getPackageName());
TextView currcell = (TextView) findViewById(id); 

沒有留言:

張貼留言