What do I need to fill in on the setKeyListener parameter so that it has the same behaviour like android:numeric="integer"
on XML?
Snippet:
paymentAmount = new EditText(this);
paymentAmount.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));
paymentAmount.setMinimumWidth(100);
paymentAmount.setKeyListener(???);