There is an array of Button assigned to each button id. But now how to apply for this id?
while (i < 10){ face.numButtonFace[i].setText(face.but[i]); face.numButtonFace[i].setId(View.generateViewId()); i++; } The fact is that when you reload the page id changes again