or is there any way to open keyboard without clicking on textbox so i can put my textbox outside of the screen and call keyboad manually and copy content on textbox in my place.
I am also stucked here with same problem i dont want to show textbox as it is not looking good. so basically i had created textbox with height and width of 1 px so it is hardly visible. and then manually calling toggleKeyboard() and with gettext i am taking textbox's data in my target area. now the problem is because of the keyboard i have to take some part up with stage:setY(-100) and now i am stucked as i can not get when keyboard is closed. is there any event with which i can know keyboard has been closed or done button in the keyboard has been pressed
Hmm, honestly I don't know from the first look I helped @unlying to create a game with functioning soft keyboard through GBridge and that was basically all I gave him, the rest he did himself somehow
Would need to experiment if it raised any focus events or maybe dispatches specific key event?
Comments
basically all i want is a way to hide the textbox
thanks in advance
Does simply listening to Key Down events and checking which letter was input is not enough?
So if you are using Android native UI, then most probably you are using GBridge.
So you can add method in GBridge.java:
now i want event when user click on keyboard's done button
I am also stucked here with same problem i dont want to show textbox as it is not looking good. so basically i had created textbox with height and width of 1 px so it is hardly visible. and then manually calling toggleKeyboard() and with gettext i am taking textbox's data in my target area. now the problem is because of the keyboard i have to take some part up with stage:setY(-100) and now i am stucked as i can not get when keyboard is closed. is there any event with which i can know keyboard has been closed or done button in the keyboard has been pressed
Thanks
I don't know how to implement this code Gbidge.java need to try
I helped @unlying to create a game with functioning soft keyboard through GBridge
and that was basically all I gave him, the rest he did himself somehow
Would need to experiment if it raised any focus events or maybe dispatches specific key event?