this is a loop that creates a table of EditText and I wish they were numerical
for (int i = 0; i < 3; i++) {
tableRow = new TableRow(this); //oggetto di tipo tableRow
tableRow.setGravity(Gravity.CENTER);
for (int j = 0; j < 3 ; j++) {
values[i][j] = new EditText(this);
values[i][j].setText(" " + array[count]);
values[i][j].setPadding(10, 10, 10, 10);//spaziatura di ogni cella per i quattro lati
tableRow.addView(values[i][j]);
count++;
}
tableLayout.addView(tableRow);
}
you can use the above line of code
Update try the below and thier combination
I've tried combining flags (in desperation to see if it would work):
refer this link for more inputtypes