TextView[] tv = new TextView(ContextObject)[count]; for(int i=0;i<4;i++){ tv[i]=(TextView)findViewById(R.id....); }