Hi, I am programming in android studio and I need to know how to change the input method (inputType) of an Edit text with java code, not from xml.
public void button (View view){
TableLayout table = (TableLayout) findViewById(R.id.table);
TableRow tableRow = new TableRow(this);
table.addView(tableRow);
EditText fecha = new EditText(this);
EditText monto = new EditText(this);
fecha.setFilters(new InputFilter[] { new InputFilter.LengthFilter(8)});
monto.setFilters(new InputFilter[] { new InputFilter.LengthFilter(5)});
//aca quiero indicar el metodo InputType del editText pero no me sale al
//hacer fecha.
tableRow.addView(fecha);
tableRow.addView(monto);