I have text field where user need to write some numbers. Is there any options in Android to separate keyboard for integer and for float numbers ( for integer keyboard to have only digits, for float to have digits+ comma and point) ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will lock the input of the
EditTextto digits, points and commas.Setting the second boolean to
falsewill allow only integers (no points and/or commas).Take a look here for the full documentation.