How to disable numbers entering after zero in edittext?
I have validated only for this..
if (TextUtils.isEmpty(strBalance)) {
Toast.makeText(TransactionSellINActivity.this, "Amount should not be empty", Toast.LENGTH_SHORT)
.show();
} else if (strBalance.equalsIgnoreCase("0")) {
Toast.makeText(TransactionSellINActivity.this, "Amount should not be Zero", Toast.LENGTH_SHORT)
.show();
}
But if user enters 01 or 001 or 02,03 etc.,? ie number after zero? -> I want to restrict those numbers
How to handle such case?