Questions tagged [soft-keyboard]

A "soft keyboard" is a virtual keyboard based on a software component that allows a user to enter characters.

A virtual keyboard is a software component that allows a user to enter characters.[1] A virtual keyboard can usually be operated with multiple input devices, which may include a touchscreen, an actual computer keyboard and a computer mouse.

Virtual keyboards are commonly used as an on-screen input method in devices with no physical keyboard, where there is no room for one, such as a pocket computer, personal digital assistant (PDA), tablet computer or touchscreen equipped mobile phone. It is common for the user to input text by tapping a virtual keyboard built into the operating system of the device. Virtual keyboards are also used as features of emulation software for systems that have fewer buttons than a computer keyboard would have.

http://en.wikipedia.org/wiki/Virtual_keyboard

284 questions
4316
votes
128 answers

How to close/hide the Android soft keyboard programmatically?

I have an EditText and a Button in my layout. After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching outside the keyboard. I assume that this is a simple piece of code, but where can I find an…
375
votes
33 answers

Android: show soft keyboard automatically when focus is on an EditText

I'm showing an input box using AlertDialog. The EditText inside the dialog itself is automatically focused when I call AlertDialog.show(), but the soft keyboard is not automatically shown. How do I make the soft keyboard automatically show when the…
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
261
votes
4 answers

Android - Programmatically Hide/Show Soft Keyboard

Possible Duplicate: How do you close/hide the Android soft keyboard programmatically? First thing first I already saw this thread. I tried the accepted methods given there, but nothing worked for me. I have two screens in my app. First one has 2…
Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167
87
votes
2 answers

How to disable "Next" button on a EditText software keyboard (replace with "Done" button)

I have a bunch of EditTexts in my Android application, each with InputMethod set to numberSigned. My target device does not have a hardware keyboard and uses the software keyboard for numeric entry. Android replaces the standard "Done" button to the…
Andrew Buss
  • 1,532
  • 2
  • 14
  • 23
87
votes
6 answers

Android softkeyboard never shows up in emulator

I'm new to Android. I've spent two hours already for searching. Whatever i try softkeyboard is never shown for my EditText. I create it simply: EditText editText = (EditText)findViewById(R.id.editText); I tried: editText.requestFocus();//i tried…
Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161
70
votes
10 answers

Show soft keyboard when Activity starts

I have 2 activities, A and B. When A starts, it checks for a condition and if true, it calls startActivityForResult() to start B. B only takes text input so it makes sense for the soft keyboard to automatically pop up when B start. When the activity…
Al.
  • 2,285
  • 2
  • 22
  • 30
68
votes
4 answers

How to get UIKeyboard size with iOS

Is there some way to get UIKeyboard size programmatically. 216.0f height and 162.0f height in landscape. Following seem to be deprecated. Is there some way that works without any warning in both 3.0 iPhone OS SDK and 4.0 iPhone OS SDK to do…
Tharindu Madushanka
  • 3,241
  • 7
  • 31
  • 33
48
votes
8 answers

Hide soft keyboard after dialog dismiss

I want to hide soft keyboard after AlertDialog dismiss, but it's still visible. Here is my code: alert = new AlertDialog.Builder(MyActivity.this); imm =…
Dmytro Zarezenko
  • 10,526
  • 11
  • 62
  • 104
47
votes
7 answers

Creating a SoftKeyboard with Multiple/Alternate characters per key

I've followed the examples on developer.android.com regarding Input Methods and played with the SoftKeyboard sample application. These together give more than enough information regarding the creation of simple keyboard. What I can't see in the API…
Graeme
  • 25,714
  • 24
  • 124
  • 186
32
votes
4 answers

Change return to be next/done key in Xamarin Forms Shared Project

Is it possible to change the text in the 'return' key on the keyboard to be either 'next' or 'done'? I have a login form with username and password. I want the return key to say 'next' when on the username field and then 'done' when on the password…
John
  • 1,808
  • 7
  • 28
  • 57
29
votes
7 answers

Hide Soft Keyboard on Done Keypress in Android?

I'm struggling with the done button on the soft keyboard. I can't get the soft keyboard Done key press to hide the keyboard. From another button, it works perfectly with imm.hideSoftInputFromWindow(editText.getApplicationWindowToken(), 0); but the…
Benny Skogberg
  • 10,431
  • 11
  • 53
  • 83
24
votes
7 answers

Reliable way to know when android soft keyboard resigns (callback that works on every phone)

We are working on our first android app and it has been a very enjoyable experience so far. It is almost complete, but before release we are having some considerations ,mainly about android soft keyboard. We have a couple of EditText fields that…
Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167
17
votes
5 answers

Android Hide Keyboard Not Working - cannot hide soft keyboard

I'm developing on the Droid Incredible (and have tested on a 1.5 AVD Emulator as well), and one of the tabs in my tab widget consists of a listview and a row with an EditText and a Send button (for a chat feature). I am using the following to close…
stormin986
  • 7,672
  • 15
  • 42
  • 54
13
votes
2 answers

How to overcome WhatWG/W3C/Chrome version 33.0.1750.146 "regression bug" with fields

I put the words "regression bug" in quotes as there is obviously some mixed opinions on this. For full details track Bug 24796 in Bugzilla. In short Google Chrome implemented changes according to the latest version of the WhatWG specs:…
scunliffe
  • 62,582
  • 25
  • 126
  • 161
13
votes
1 answer

Android slow soft keyboard opening

I have a really annoying problem. A made registration form in android and when an EditText get focus the keyboard comes up. But its really slow. It takes 5 sec or more even on high-end devices. Our application is using fragments in several layers.…
1
2 3
18 19