How to change the position of EDIT BOX  (cocos2d-x, iOS & Android)

  • Likes 0

    Problem Description

    I have an EditBox on the bottom. Touch it to go up with the keyboard. However, the gap between the keyboard and EditBox is small. I want to make a gap between the keyboard and the EditBox. Please tell me.

     
  • Sonar Systems admin
    Likes 0

    The keyboard that pops up?

  • Likes 0

    Yes.For iOS, I was able to fix it by changing the code in UIEditBox.cpp. I'm not sure this is the right way to do it. But for Android I don't know where to change it to make room. I want something like the iMsessage app.


  • Sonar Systems admin
    Likes 0

    Move the edit box up

  • Likes 0

    May I check first? Did you test it? Did you get the results? Please give me the code I tried it but it didn't succeed. I implemented it in editBoxEditingDidBegin with MOveTo, but the Box at the bottom never left the keyboard.

  • Sonar Systems admin
    Likes 0

    It was a suggestion

Login to reply