I want user to input only numbers in my edit text in android application.For that I have added android:inputType="number" property in edit text.
But now, for some reason, I need to remove special characters from ANDROID KEYBOARD itself. I know that using custom keyboard, I might be able to do that, but is there any other way by which I can achieve this if I don't want to create a custom keyboard?
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/edt_salary"
android:layout_width="match_parent"
android:inputType="number"
android:layout_height="wrap_content"/>