Tuesday, 15 May 2012

passwords - LibGDX: Moving text field so it is visible when typing with on-screen keyboard -



passwords - LibGDX: Moving text field so it is visible when typing with on-screen keyboard -

i making login scheme game making. have "username" textfield , "password" textfield. when using mobile device such android, required utilize on screen keyboard. thing keyboard blocks textfield box , can't see more when i'm typing. there way move textfield while on-screen keyboard beingness shown?

i have tried several ways stuck there no way observe whether keyboard on screen or not. also, using pop-up text entering dialog out of question since have password field , there no password alternative those.

thanks in advance!

so late answer, if helps anyone.

add focuslistener() textfield , can hear event when textfield focused (clicked).

change camera's y position number around half screen height calling:

camera.position.set(x, y, z); camera.update();

this move screen , can view things blocked before keyboard.

keyboard passwords libgdx textfield android-softkeyboard

No comments:

Post a Comment