我需要在setKeyListener参数上填写什么,以便它与XML上的android:numeric="integer"
具有相同的行为?
段:
paymentAmount = new EditText(this);
paymentAmount.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));
paymentAmount.setMinimumWidth(100);
paymentAmount.setKeyListener(???);