Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: How to make the keypad always visible?

Tags:

android

keypad

In android, how do we make the device keypad always visible in the application? The top portion displays the content the application wants to render and bottom portion displays the keypad always.

like image 670
Prabhu R Avatar asked Oct 02 '09 14:10

Prabhu R


People also ask

How do I unhide keyboard on Android?

It's in the "Keyboards & input methods" section of the menu. Tap Null Keyboard. Now, when you tap in a text field, no keyboard will appear. Tap a different keyboard under Current keyboard to re-enable the on-screen keyboard.

Why can't I see my keypad on my phone?

To fix the “Android keyboard not showing” issue, make sure to clear the cache of the keyboard you're using. To do this, go to Settings > Apps > search for your keyboard > storage > clear cache. Below you'll find all the fixes for the “Android Keyboard Not Showing” problem.


1 Answers

Add android:windowSoftInputMode="stateAlwaysVisible" to your activity in the AndroidManifest.xml file:

<activity android:name=".MainActivity" android:label="@string/app_name" android:windowSoftInputMode="stateAlwaysVisible" /> 

In my test app this shows the keyboard on starting of the application although it isn't fixed there but can be dismissed by pressing the back button.

To make sure the keyboard is always visible you might have to create your own keyboard as part of the UI of your application. Here is a tutorial to show you how to do this with KeyboardView: http://www.fampennings.nl/maarten/android/09keyboard/index.htm

like image 91
Intrications Avatar answered Oct 01 '22 02:10

Intrications