失去id的方法

得到id的方法int id getResources().getIdentifier(cell00, id, getPackageName())TextView currce

得到id的方法

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

Class clazz = R.id.class;Field f = clazz.getField("cell" + "00");int id = f.getInt(null); ?// pass in null, since field is a static field.TextView currcell = (TextView) findViewById(id);