08-02-2014 10:15 PM
Hey developers! I created a Sheet checking to see if the password that the user entered was correct or not. If not correct, an error message is shown.
I'm using requestFocus() on a textfield. It's called when the Sheet is onOpened(). But when the error message is shown, the virtual keyboard hides.
Is there any way to keep the keyboard opened at all times? I don't know why the virtual keyboard hides when the error message is shown.
Hope this makes sense. If you're confused, I can post some code.
08-03-2014 04:16 AM
how are you showing your error message ?
Toast ? Dialog ?
you should place your request focus inside onFinished() slot
08-03-2014 07:35 AM - edited 08-03-2014 07:39 AM
Thanks ekke for your reply. The error message is shown through a Label.
Anyways, I put this in the Textfield:
I don't have scrollable content, so I think the keyboard will always pop up. Take a look at the Password Keeper app. When it asks for your password, the virtual keyboard always shows up, regardless of where you tap. I noticed that the password prompt on the device acts like my app though.
Any better ways to do this?