android-softkeyboard

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

北慕城南 提交于 2020-01-01 07:36:29
问题 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 keyboard appears but the bottom navigation bar stays visible. I have tried methods such as this measurement method, but the UI elements flicker like this. Is there a proper way to hide the bottom navigation bar when the keyboard is visible? EDIT: In

Android: How to open keyboard for editing EditText when click button?

非 Y 不嫁゛ 提交于 2020-01-01 05:22:30
问题 my case is: I have one EditText field that is with disabled focus. Beside EditText field I has two buttons for Input methods. So I want when click first button: to open soft keybord and edit text in EditText field. I try many ways with: InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(yourEditText, InputMethodManager.SHOW_IMPLICIT); and doesn't work for me. Only way to open soft keyboard is: toggleSoftInput(InputMethodManager.SHOW

Android OnEditorActionListener() actionId give 0 when I click Done key

北战南征 提交于 2020-01-01 03:10:15
问题 I have created one keyboard.When user enter numbers , its entering particular EditText.But When User click on Done key, it didn't go to setOnEditorActionListener but its closing the keyboard. This is my code : final EditText txtQty = new EditText(this); txtQty.setHeight(1); txtQty.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 42)); txtQty.setInputType(InputType.TYPE_CLASS_PHONE); txtQty.setImeOptions(EditorInfo.IME_ACTION_DONE); txtQty.setSelectAllOnFocus(true); txtQty

Set Keyboard Mode in android custom keyboard

梦想与她 提交于 2019-12-31 21:43:48
问题 I have created a Custom Keyboard using the Android Keyboard Class. I want to have Rows for two modes. One is the normal mode. And one is when the user presses the "Sym" button. For each Keyboard.Row for the "Sym" button in the XML i have specified android:keyboardMode="@+id/sym". Now when i run it only the rows that do not specify the android:keyboardMode display. This is as expected and what the documentation says. My questions is how do i set the Mode in my code so that the rows with

How to make AlertDialog view in Input method Service?

别说谁变了你拦得住时间么 提交于 2019-12-31 04:40:29
问题 I would like to make an input method which is used only for SoftKeyboard. My how to make popup onkey event in input method. I am creating Dialog but here is problem you see my logcat: 09-14 11:16:54.349: E/MessageQueue-JNI(7172): at android.inputmethodservice.KeyboardView.detectAndSendKey(KeyboardView.java:824) Softkeyboard.java Here java code public void onKey(int primaryCode, int[] keyCodes) { if (primaryCode == -2) { // add this to your code dialog = builder.create(); Window window =

Display Keyboard for EditText in Emulator (GenyMotion) Android 4.3

半腔热情 提交于 2019-12-30 16:23:06
问题 Does anybody know how to display the keyboard in the emulator when the EditText field has focus. I have tried so many solutions but none of them work. I am working in android 4.3 Jelly Bean. The Emulator I am using is GenyMotion. I would also like to know how to hide the keyboard when the EditText field loses focus. I assume however if the keyboard does not appear in the emulator it won't appear when testing on the device. Any help much appreciated 回答1: Just check the details of your emulator

Are all the Unicode characters supported on Android

巧了我就是萌 提交于 2019-12-30 09:52:59
问题 My question is simple. Are all Unicode characters available in Android? I actually am using the soft keyboard and I want to add a few arabic letters which I can't find the codes for. 回答1: Android supports UTF-8 but you will not be able to use arabic, if it's not installed in your OS. There are ways to install new fonts, but some of them needs jailbreaking your phone. See link for installing font in Android: https://web.archive.org/web/20091023103506/http://www.android-devs.com/?p=33 回答2: It

How come the Android soft keyboard is not responding to EditText?

你。 提交于 2019-12-30 09:23:42
问题 I have a SherlockFragmentActivity and a SherlockFragment that is within a TabManager. In this Fragment I have RadioButtons, CheckBoxes, a Button and an EditText in a LinearLayout. The keyboard sometimes does not respond when pressing on the EditText. In a 2.1 AVD the keyboard responds inconsistently, in a 4.0 AVD the keyboard does not respond at all, and on a device the keyboard responds inconsistently. Sometimes pressing the other objects then activates the ability to show the keyboard. Here

Get keyboard language or detect user input language in Android

和自甴很熟 提交于 2019-12-30 03:16:10
问题 Problem Description I'm trying to detect current selected language of the keyboard. For that purpose I use following code: Code /* Return the handle to a system-level service by name. The class of the returned * object varies by the requested name. */ InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); /* Returns the current input method subtype. This subtype is one of the subtypes in the * current input method. This method returns null when the

Move Floating Action Button above keyboard

此生再无相见时 提交于 2019-12-29 08:42:10
问题 I have this Floating Action Button (GitHub link) and when I open a (software) keyboard the Floating Action Button hides behind the keyboard. Is there a way that I can push it above the keyboard? Edit: tab_random.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <View android:layout_width="match_parent" android:layout_height="156dp" android:background="@color/primary_color" /> <EditText