This tutorial will show you how to form an ATM Input EditText Let's see how to do this Create your xml with a EditText <EditText android:id="@+id/id_edttext_amt" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="$0.00" android:gravity="center" android:inputType="number"/> Now in you activity, Implement TextWatcher for the EditText you need ATM type input private String current = ""; edtAtm.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after{ } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { if(!s.toString().equals(current)){ edtAtm.removeTextChangedListener(this); ...
Learn with Samples