I wanted to try the solution posted by htafoya here: How to hide soft keyboard on android after clicking outside EditText?
However
this.getFields();
is not recognized. What do I have to include or change so getFields is known?
Thanks
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.
Quoting from the accepted answer (to the question you link to)…
In short, the OP of that question created a method in his/her
ActivitycalledgetFields()which returns an array of allEditTextobjects in theActivity. This can be understood from the quote I post above and from this line in the code he/she posted…You will need to define your own method to create / return an
EditTextarray in order for the solution to work.