Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to develop a custom Soft Keyboard for Android application?

I've got an Math related application I've made that I really would like to make a custom soft keyboard for. It would have attributes like a numpad and special characters like pi and square root symbols built in. I would want it to replace to default keyboard just for that application, and only open the keyboard that I develop for this app. My question is how do I do that? Do I make a "keyboard" out of table layouts and a bunch of buttons that opens when I click on the text field, or do I make use of the keyboard layout?

like image 279
Jon Avatar asked Aug 11 '11 06:08

Jon


People also ask

How do I make the keyboard softer on my Android?

To show the input method when your activity starts, add the android:windowSoftInputMode attribute to the <activity> element with the "stateVisible" value. For example: <application ... > Note: If the user's device has an attached hardware keyboard, the soft input method does not appear.

What app can i use to customize my keyboard?

MyKeyboard is beloved by its users for its ease of use and endless possibilities. For example, the emoji row is a standard feature of the custom Keyboard and can be changed to contain all of your favorite emoji. These emoji keys then automatically contain subkeys with similar emoji which you can personalize.


1 Answers

You should not create a table layout and a bunch of buttons, it is an unfamiliar user interface and creates a bad user experience. See this answer about how to create a custom soft keyboard that is identical to the platform soft keyboard but contains the keys you need: android app specific soft keyboard

like image 138
Torben Avatar answered Nov 15 '22 05:11

Torben