I want my TextView
only accepted as input numbers, however the line android:numeric="decimal"
has no effect, it still allows me to type letters.
I want my TextView
only accepted as input numbers, however the line android:numeric="decimal"
has no effect, it still allows me to type letters.
To allow only numbers you should set within your EditText
this way:
android:inputType="number"
Another way would be:
<EditText android:id="@+id/myNumber"
android:digits="0123456789."
android:inputType="numberDecimal"/>