Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SoftKeyboard

Hey there, I was wondering if it is possible to use the Android SoftKeyboard within an OpenGL rendered Application (Game)?

I ask this, because I want to have an ingame gui with self rendered text input fields and ofc with support of the soft keyboard. Is this possible or do I have to render the keyboard all by myself ? (This would be quite a hassle...)

Any suggestions?

Thanks in advance!

Mfg Imp

like image 730
impmja Avatar asked Nov 09 '10 21:11

impmja


People also ask

What is Android soft keyboard?

The Android system shows an on-screen keyboard—known as a soft input method—when a text field in your UI receives focus.

How do I get rid of soft keyboard on Android?

You can force Android to hide the virtual keyboard using the InputMethodManager, calling hideSoftInputFromWindow, passing in the token of the window containing your edit field. This will force the keyboard to be hidden in all situations.


1 Answers

As far as I know there are no problems with using the softkeyboard with GLSurfaceView. Look to the InputMethodManager class for methods to show and hide the keyboard.

like image 130
ryanm Avatar answered Oct 05 '22 16:10

ryanm