Questions tagged [android-keypad]

Android supports a variety of keyboard devices including special function keypads (volume and power controls), compact embedded QWERTY keyboards, and fully featured PC-style external keyboards.

In addition to the on-screen input methods, Android also supports hardware keyboards, so it's important that Android app optimize its user experience for interaction that might occur through an attached keyboard.

Useful links

451 questions
2
votes
1 answer

Android dispatchKeyEvent not working for all KeyEvent codes

I have an EditText and I try to call dispatchKeyEvent from my Activity to insert text into the EditText like so: public class MainActivity extends AppCompatActivity implements View.OnFocusChangeListener { String TAG = "test"; EditText…
2
votes
0 answers

Android - How to set key icon from code

When defining keyboard in xml , we use android:keyIcon attribute to set the key icon. But when setting the Drawable property - Key.icon, the icon is not getting displayed on the key. Instead, the image is getting displayed in the popup that appears…
Samen
  • 21
  • 2
2
votes
5 answers

SoftKeyboard with unicode characters or custom font

We're trying to build a SoftKeyboard for an android app. The characters to be shown on the keyboard are asian language characters. Any pointers will be helpful.
singhspk
  • 2,389
  • 3
  • 23
  • 28
2
votes
1 answer

Android: Combine inputType:phone and inputType:numberPassword

I want to show the 'only digits' keyboard when user taps on the editText. This can be achieved by android:inputType="phone" android:digits="0123456789" I also want my editText to hide the content. Which can be achieved by…
Srujan Barai
  • 2,295
  • 4
  • 29
  • 52
2
votes
1 answer

How to continuously delete the characters on keypad backspace longpress in android

Generally we see that when we hold the BackSpace (Delete) key on a softKeypad in android , it keeps on deleting the characters in the EditText , until it becomes empty. But in my case when i hold the backspace key on softkeypad ,it only deletes one…
Pardeep Kr
  • 479
  • 2
  • 6
  • 25
2
votes
2 answers

how to prevent default keyboard from popping up and enable copy paste option?

I have my own custom keyboard in my app . In the editText box i disabled its onTouch() by returning true OnTouchListener otl = new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { …
kaddy
  • 109
  • 11
2
votes
0 answers

How to create a custom keyboard with Gif images in Android? Any Tutorial or sample source please?

How to create a custom keyboard with Gif images in Android? I need to create a custom keyboard which contains Gif images ,I need to develop a keyboard like the below image ,Any Tutorial or sample source please? I need to develop a keyboard like…
2
votes
1 answer

In Android, detect soft Keyboard is visible or not? but not via OnGlobalLayoutListener

Hello Android developer, We can detect soft keyboard by setting a OnGlobalLayoutListener. When height of window changes we can do some calculation from that we know keyboard is visible or not. lot of discussion you can find here (link) this will…
2
votes
1 answer

Android Custom Keyboard not resizing the window Issue

Hi i am following this link for implementing CustomKeyboard. Everything was perfect except if there are number of EditTexts in my layout. The window is not resizing when the keyboard appears, say if i am trying to enter data to EditTexts which are…
Sunny
  • 1,066
  • 1
  • 13
  • 32
2
votes
2 answers

How to store Android keyboard activity like any text type by other app and send it across Internet in background?

I would like to know how to store other application's keyboard activity like capture passwords or userid as the user types and send it across Internet? Is there any mechanism built into Android that would do that?
Sanjay Bhalani
  • 329
  • 1
  • 18
2
votes
2 answers

How to add words to any Android keyboard predictive dictionary programmatically?

Which file holds the database of words in Android keyboards and how to edit it or how to add words to personal dictionary by creating an application like shadowing the movement of a user iteratively and adding words to personal dictionary.
2
votes
2 answers

How to identify the white space is pressed from the keyboard

I want to identify which key is pressed from the keyboard while type text into EditText box. I am using this code, but it is not working. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if…
faisal ahsan
  • 41
  • 2
  • 10
2
votes
0 answers

Pop up Arabic/ Urdu keyboard for edit box input in android

I am working on application, which will require the user to have an Urdu or Arabic keyboard on screen for input. The issue is that the Urdu keyboard may or may not be installed on the phone, so how would I pop up an Urdu keyboard? I have no idea…
2
votes
1 answer

How to detect key event in webView?

I find out that the code below will only work for hardware buttons webView.setOnKeyListener(new OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { if(!v.hasFocus()){ …
Madhav Bhattarai
  • 847
  • 2
  • 10
  • 29
2
votes
1 answer

Applying KeyboardView in android

I am trying to make a custom keypad layout that has 3 keys the left , a space , 3 keys in the middle , a space and one key. Shown by plus signs, a row on the keyboard should look like : +++=+++=+ where plus signs are the keys and = represents the…