Questions tagged [android-softkeyboard]

The default onscreen input method provided by Android OS.

Android Soft Keyboard is the onscreen keyboard provided by Android OS.

Key Events of Android soft keyboard

On-screen Input Methods in Android Developers blog

2751 questions
79
votes
8 answers

Android: How to push button above soft keyboard

I've got a "save" button which I want to push up together with the soft keyboard. So when the user clicks an EditText in my layout, then the button has to stay above the keyboard. Now the button becomes hidden underneath the keyboard. How do you do…
Xander
  • 5,487
  • 14
  • 49
  • 77
71
votes
15 answers

Show keyboard for edittext when fragment starts

When my fragment starts, I want my edittext to be in focus/let user to just start typing in it. I am able to get it in focus with requestFocus(), but I cannot get the keyboard to show up. I have tried both this: edit = (EditText)…
heero
  • 1,941
  • 5
  • 23
  • 33
66
votes
12 answers

Recyclerview not scrolling to end when keyboard opens

I am using recylerview in my application and whenever new element is added to recyclerview, it scrolls to last element by using recyclerView.scrollToPosition(adapter.getCount()); But, whenever keyboard opens(because of editTextView), it resizes the…
65
votes
9 answers

EditText in Listview loses focus when pressed on Android 4.x

I know there are a lot of similar questions out here but I couldn't get any of the provided solutions working in a simple sample app. The problem occurs when the softkeyboard is shown for the first time. As soon as it is shown, only by pressing the…
64
votes
9 answers

HTML: Why does Android browser show "Go" instead of "Next" in keyboard?

I have an HTML login form that contains following elements (in this order): input type=text (user name input) input type=password (password) input type=submit (Login button) Why does the Android browser show "Go" button in soft keyboard instead of…
Mikko Rantalainen
  • 14,132
  • 10
  • 74
  • 112
61
votes
6 answers

Implementations of Emoji (Emoticon) View/Keyboard Layouts

I am trying to figure out how the emoji (emoticon) selections are implemented on the Facebook app and the Google Hangouts app. I looked into the SoftKeyboard Demo app in the Android API Samples but the display of these emoji views does not look…
Etienne Lawlor
  • 6,817
  • 18
  • 77
  • 89
60
votes
3 answers

Set FAB (Floating Action Button) above keyboard

Already asked here but without a proper answer. I want the FAB to float on top of the keyboard. that's it. For example Open a new Blank Activity template project with Android Studio Change the Hello World TextView to EditText See image below:
David
  • 37,109
  • 32
  • 120
  • 141
58
votes
16 answers

How to hide Android soft keyboard on EditText

I have an Activity with some EditText fields and some buttons as a convenience for what normally would be used to populate those fields. However when we the user touches one of the EditText fields the Android soft keyboard automatically appears. I…
ScubaSteve
  • 593
  • 1
  • 4
  • 6
57
votes
11 answers

Android: ScrollView not scrolling with keyboard out

I've got a layout with some views, from which one is an EditText. The layout easily fits on one page, BUT, when the soft keyboard is out, the layout doesn't scroll. Here's a recap of my layout:
Xander
  • 5,487
  • 14
  • 49
  • 77
56
votes
14 answers

Hiding ‘Bottom Navigation Bar’ whilst keyboard is present - Android

I have a small demo chat UI application. This application has a bottom navigation bar. I need the bottom navigation bar to hide when the keyboard appears. Here is an example of the chat UI As you can see when you click in the EditText element, the…
Calco
  • 1,420
  • 1
  • 17
  • 31
54
votes
6 answers

How to hide the BottomNavigationView below keyboard with adjustResize set

According to the material design spec, when the keyboard appears, the BottomNavigationView should hide underneath it. However, if I set android:windowSoftInputMode="adjustResize" in the Activity's manifest then the BottomNavigationView moves above…
willjgriff
  • 783
  • 2
  • 6
  • 11
53
votes
17 answers

How to close Android Soft KeyBoard programmatically?

I am currently showing softkeyboard using the following code InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput (InputMethodManager.SHOW_FORCED, InputMethodManager.RESULT_HIDDEN); And…
Mak
  • 1,057
  • 1
  • 12
  • 30
50
votes
8 answers

Hide keyboard when navigating from a fragment to another

I have a Fragment that contains an Edit Text. When the Edit Text is pressed, the keyboard is being shown. When pressed the Save button in the upper corner, the application returns to the previous fragment, but the keyboard persists. I would like the…
48
votes
7 answers

add view over keyboard android

in my android application I have a chat activity ,I use this code from android-chat-starter the problem is in the emulator everything works fine , I tested it in many types of emulators (api >18 , api =18 , api <18) but in testing in actual device…
Remon Amin
  • 1,506
  • 2
  • 19
  • 44
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