In calculator application, when the back/delete button is on pressed, not releasing it, the phone will vibrate and it will delete the entered numbers very quickly.
I have a EditText view, when the back/delete button is on pressed, it only deletes one character, I have to release and press it again in order to delete the next character. How can I make back/delete button to delete quickly when it is on pressed, and make the phone vibrate, the same behavior as the back/delete button in the calculator application?
Here is my EditText config
<EditText
android:id="@+id/left_value"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="5"
android:background="@drawable/border"
android:hint="@string/enter_numerial"
android:inputType="numberDecimal|numberSigned"
android:textSize="14sp"
android:paddingLeft="2dip"
android:maxLength="15"/>