D
Deleted User
Guest
As you undoubtably know by now, I'm writing a little messaging app.
My first Activity is a login screen. It's simple and straight forward. Theres a username textbox, a password textbox and a login button.
When the user "clicks" the username textbox, the virtual keyboard pops up. Once they've typed their name, they can click the Next button on the virtual keyboard. The password textbox gains focus and the virtual keyboard remains. The user can type their password and then click the Done (text was changed from "Next" to "Done") button again.
This is where my problem lies.
The screen moves up as to show the login button above the virtual keyboard, but the virtual keyboard remains. When the user clicks the Done button when the password textbox has focus, I want the password textbox to lose focus and the virtual keyboard to disappear.
How can I achieve this?
My first Activity is a login screen. It's simple and straight forward. Theres a username textbox, a password textbox and a login button.
When the user "clicks" the username textbox, the virtual keyboard pops up. Once they've typed their name, they can click the Next button on the virtual keyboard. The password textbox gains focus and the virtual keyboard remains. The user can type their password and then click the Done (text was changed from "Next" to "Done") button again.
This is where my problem lies.
The screen moves up as to show the login button above the virtual keyboard, but the virtual keyboard remains. When the user clicks the Done button when the password textbox has focus, I want the password textbox to lose focus and the virtual keyboard to disappear.
How can I achieve this?