Android Question How to detect Close Keyboard button click?

Discussion in 'Android Questions' started by Massy, May 14, 2015.

  1. Massy

    Massy Member Licensed User

    When I click on a EditText the keyboard appears and the "Back button" that is at the bottom of the page become an arrow looking down and it is used to just close the keyboard...
    How can I detect when that button is used?
    I know how to detect the backbutton but don't know how to do it when it is a Close Keyboard button.
    thanks for any help
    Massy
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can use the IME library to know when the keyboard is opened or closed.
     
    Massy likes this.
  3. Massy

    Massy Member Licensed User

    Thanks Erel
     
  4. Massy

    Massy Member Licensed User

    Hi Erel, sorry, don't want to bother with stupid questions.. but.. could you tell me wich command should I use in IME lib to detect when the keyboard is closed?
    Thanks a lot
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    You need to handle the height changed event.
     
  6. Massy

    Massy Member Licensed User

    Ok, I figured it out how to do it.
    Thanks for your help
     
    RandomCoder likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice