android-softkeyboard

Android - Comma as decimal separator on Numeric Keyboard

送分小仙女□ 提交于 2020-08-24 06:34:50
问题 We need to have a numeric keyboard for an EditText . The Keyboard should have decimal separator based on the device's selected locale. We implemented this by setting the custom DigitsKeyListener to the EditText public class NumericDigitsKeyListener extends DigitsKeyListener { @Override protected char[] getAcceptedChars() { char[] acceptedCharacters = null; acceptedCharacters = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', new DecimalFormatSymbols(Locale.getDefaultLocale())

Bottomsheet with edit text moved up by keyboard

断了今生、忘了曾经 提交于 2020-07-29 06:56:22
问题 I have bottomsheet fragment what shows to user answears to his comment. At the bottom of bottom sheet we have edit text, where user can add new comment. So, when soft keyboard opened the bottomsheet staes above keyboard and its top moved far beyond the screen. But bottom sheet should to resize when keyboard is open. Here is my code: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"

How to set the distance from soft keyboard to EditText?

走远了吗. 提交于 2020-04-13 05:42:27
问题 I have a problem with soft keyboard overlapping parts of EditTexts. When I click my EditTexts the soft keyboard appears just below the text, which means that a part of the text box is not shown as the soft keyboard overlaps it. Any ideas how to increase the distance between EditText and Soft keyboard? 回答1: There will be certain Solutions available that some times works and some times not what I am using is working and will handle your scenario Use the following Step by step 1- Add Scroll view

Android Done button instead of Next

北战南征 提交于 2020-03-18 11:17:59
问题 I have a problem with the keyboard. I have a ListView with edit texts, and when the keyboard opens for the first time the Done button is displayed instead of Next. The problem is that I need to use adjustResize in the AndroidManifest.xml and the list is moved up when the keyboard is displayed, so I think this is why the keyboard is not working properly. How can I solve this issue? 回答1: Add android:imeOptions="actionDone" to the field where you need a done button on your keyboard. Add android

Android Done button instead of Next

跟風遠走 提交于 2020-03-18 11:16:59
问题 I have a problem with the keyboard. I have a ListView with edit texts, and when the keyboard opens for the first time the Done button is displayed instead of Next. The problem is that I need to use adjustResize in the AndroidManifest.xml and the list is moved up when the keyboard is displayed, so I think this is why the keyboard is not working properly. How can I solve this issue? 回答1: Add android:imeOptions="actionDone" to the field where you need a done button on your keyboard. Add android

Unresponsive soft keyboard for a couple of seconds in EditText when I move the cursor in the widget

为君一笑 提交于 2020-02-06 07:51:06
问题 When I move the cursor in a EditText widget the soft keyboard is unresponsive for a couple of seconds. I have cold booted the device, and tried a different keyboard but the problem remains in just one EditText widget. This problem does not happen on a tablet or in the emulator just on this Samsung Galaxy S7. It also does not happen for the same EditText widget when I rotate the device to landscape, where the softkeyboard covers the screen with it's own attached edit window. Which suggests the

keep keyboard open on Ionic when button click ( chat app )

偶尔善良 提交于 2020-02-03 10:55:55
问题 I have an Ionic v1 chat application, I made everything, but I encountred the famous problem when clicking on a send button (send chat) the keyboard loses focus from the input and then closes. I've tried many approaches, but it none of them work: Input directive to keep focus, forcing focus on click event, modifying the value of InputUserAction in config.xml to false. Any help is much appreciated. <div class="sender"> <input type="text" ng-model="..." class="..."> <div class="button-send">

Enter key listener for Google keyboard is not working

北城以北 提交于 2020-01-24 13:23:47
问题 I want to add a functionality on click of "enter" key of Google's keyboard without vanquishing the default newline characteristic. I have used OnKeyListener but it is not working. EditText edittext = (EditText) findViewById(R.id.user_query); edittext.setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode ==KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_DPAD_CENTER)) { //here i want