1. Check out our companion app, Forums for Android! Download from Google Play

The virtual keyboard and the Next button

Discussion in 'Application Development' started by andywhoa, Jul 21, 2010.

  1. andywhoa

    andywhoa Well-Known Member
    Thread Starter
    38

    May 15, 2010
    105
    13
    38
    Software Engineer
    West Des Moines, IA
    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?
     

    Advertisement

  2. andywhoa

    andywhoa Well-Known Member
    Thread Starter
    38

    May 15, 2010
    105
    13
    38
    Software Engineer
    West Des Moines, IA

Share This Page

Loading...