I am trying to implement getting contents of edit text as a number as exemplified in iOS.
The intention is for the user to enter only numerical values.
I am wondering if there is a similar implementation in Android. Can this be done??
I would appreciate some excellent advice. Thanks.
You can use the
android:numericfor this like:to do this dynamically just try something like :
EditText.setInputType(InputType.TYPE_CLASS_NUMBER);Good luck
Arkde