Is it possible to control the keyboard type by java android code ?
for example: if flag=1 and the focus on TextView the keyboard will be numeric
and if the flag=0 the keyboard will be alpha numeric
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.
You can set the input type programatically via the TextView.setInputType method
For instance, for a numeric input:
Or:
for standard text input