I'm kinda new to programming, I was tring as exercise to create new buttons with a loop, but I cannot figure it out. I've tried:
int i;
for(i=0; i<10; i++){
ImageButton btn[i]= (ImageButton) findViewById(R.id.btn);
}
II pretty sure this is a stupid question, but I could not find the answer.
Summing up my goal would be to do something like this:
loop{
create_new_button();
}