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
3
votes
1 answer

Create KeyboardView by default keyboard without key definition in xml resource file

I'm creating an object from the android Keyboard class (https://developer.android.com/reference/android/inputmethodservice/Keyboard.html). In my case I just need the default keyboard, no custom keyboard. But the constructors of the Keyboard class…
Stefan Brendle
  • 1,545
  • 6
  • 20
  • 39
3
votes
2 answers

How to disable keyboard popup?

The keyboard pops up wherever there's an EditText item. I wan't to disable this popup from occurring automatically and only want the keyboard to appear when the user manually sets focus on the EditText field. I have added the following in my…
Ahmed Mujtaba
  • 2,110
  • 5
  • 36
  • 67
3
votes
1 answer

How to override Soft keyboard keyPress event in android?

I need a listener's to detect user interaction on my activity which has a fragment attached to it, for which i have overriden diapatchTouchEvent() which is working fine for touch event and hard key events, but it does not work for soft keyboard…
3
votes
0 answers

How to disable hardware buttons in android?

I'm building application for blind people to use android devices. For that I want to disable hardware buttons without power button. I tried to do that with code @Override public boolean onKeyDown(int keyCode, KeyEvent event) { …
3
votes
2 answers

Numeric Keyboard for Android with Plus(+) char

I am developing App that has EditText in List Item View. which accept the numeric value and list of values with '+' sign. on submit a function is called which evaluate that string and adds the values present in that string separated by '+'. Now the…
Vinayak Khedkar
  • 504
  • 5
  • 13
3
votes
1 answer

Android Launcher with KEYCODE_VOICE_ASSIST key capture

I was wondering if that would be possible with a custom launcher as it seems per the Android docs that key code is not delivered to applications. So when pressing the mic button on remote controls or keyboards that have it, how would an app or a…
3
votes
2 answers

Android - Unexpected Behavior of Keypad - EditText in ListView

I am stuck with problem since last two days i.e. i have created ListView with Custom View with Variant SubLayout like: Problems: When i click on EditText of Qty, its displaying Soft Input Keyboard with Numeric Keypad and immediately focus lost…
3
votes
0 answers

Android Keyboard Lag Animation

On one of my activities i have an edit box that of course when clicked opens up the keyboard. However, even though the keyboard does animate there seems to be a strange lag of the editbox moving up? Ive tried a few different things however to no…
Andy Joyce
  • 2,802
  • 3
  • 15
  • 24
3
votes
3 answers

How to hide keypad in android after pressing home button

I am showing a list with messages and each message's row has a comment button.When i click on comment button opens a comment box with edit text and button for submitting the comment.When comment box appears on screen keypad also appears for entering…
3
votes
2 answers

Android Close keyboard smoothly

I am using the following code to hide the soft keyboard from screen InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.hideSoftInputFromWindow( …
pvn
  • 2,016
  • 19
  • 33
3
votes
1 answer

Android custom keyboard with 2 lablels (main and small at the top right)

I am implementing my own custom keyboard. I use this tutorial for implementing keyboard
Tim
  • 1,606
  • 2
  • 20
  • 32
3
votes
1 answer

Android Custom KeyBoardView clear default keys

I have custom MyKBV class which extends KeyBoardView.I created this custom view to use custom font for the keys. I am able to see the changed font on the keys but the problem is each key overlap's with the default keys from the XML which I presume…
3
votes
2 answers

KeyboardView not taking XML attribute keyBackground

I'm trying to set a custom background for my KeyboardView. setting the XML attribute keyBackground seems to be the way to go about it, but I keep getting a NullPointerException slash ResourceNotFoundException in my logcat when it tries to inflate…
vivianh
  • 155
  • 1
  • 3
  • 12
3
votes
1 answer

after pressing home keyboard is not hiding

I use following code to show keyboard InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY); I use…
Pankaj Kharche
  • 1,329
  • 4
  • 15
  • 37
3
votes
0 answers

Adding a character in auto complete textview is taking to google search screen android

I have a AutoCompleteTextview when I enter a character then sometimes it leads to Google search screen of android. I dont know y this is so. Layout Declaration for AutoCompleteTextview is:
Vaibs
  • 1,128
  • 3
  • 16
  • 36