android-keypad

Is there a way to launch voice input on the softkeyboard programatically?

丶灬走出姿态 提交于 2019-12-05 22:27:26
The idea is to take a user voice input on the press of a button and pass it to the search inside the app. Because of device limitations we are using the SearchViewCompat instead of the useful SearchView. I have been able to grab the voice output using this link , but there is not a simple way to pass the text to the search bar this way. The search view itself shows as a view (so no setText()), but if I can just say "use mic key on keyboard" or something as soon as the searchbar comes up, I think it might work. Any help would be greatly appreciated. Thanks, SGB. No, it's not possible. At least,

Android edittext is underlined when typing

倖福魔咒の 提交于 2019-12-05 08:43:06
I need to removed underline when type in edit text field in Android. For the first name edit text first letter should be capital so that I have given textCapSentences , but in my case I see underline in edittext fields. how to remove that? I have tried all the combination of textFilter|textNoSuggestions|textCapSentences its my first name edit text: <EditText android:id="@+id/signup_lname" android:layout_width="match_parent" android:layout_height="60dp" android:background="@color/signup_layer_bg2" android:ems="10" android:gravity="center" android:hint="@string/signup_lname" android:imeOptions=

Keyboard issue while focusing on bottom edit text in Android

寵の児 提交于 2019-12-05 01:07:52
I am working on an android Application where I am willing to get input from user. I created a layout for it which has a scroll view as a root view & Relative layout as it's child all the other layout are inside this Relative layout. But when edit text is at the bottom of screen & user click on it to bring keyboard it shows some blank box between edit text & keyboard & after this if user enters any word it doesn't get displayed in edit text. But if Edit text is above nearly more then half size of screen it works fine. You can get more clearly by looking at images below Here is my code Does

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

試著忘記壹切 提交于 2019-12-04 16:46:32
I am implementing my own custom keyboard. I use this tutorial for implementing keyboard <?xml version="1.0" encoding="utf-8"?> <Row> <Key android:keyLabel="q" android:keyEdgeFlags="left"/> <Key android:keyLabel="w"/> <Key android:keyLabel="e"/> <Key android:keyLabel="r"/> <Key android:keyLabel="t"/> <Key android:keyLabel="y"/> <Key android:keyLabel="u"/> <Key android:keyLabel="i"/> <Key android:keyLabel="o"/> <Key android:keyLabel="p" android:keyEdgeFlags="right"/> </Row> I want have 2 label on key button.The same as on image below (red): How can I change the keyboard xml to have this? When we

New to kernel development: “Virtual” input driver in kernel?

回眸只為那壹抹淺笑 提交于 2019-12-03 22:28:17
I'm doing some edits to an input device driver in an android kernel. This device has a limited range of keybits and evbits enabled. What I want to do is to create a new /dev/input event node that is not related to any physical device, with more keybits and evbits enabled, so that I can send real input signals from the physical driver to the userspace, in the userspace I listen to them and when received I can inject input events to the "virtual" driver writing to its event node. Does linux/android kernel offer such option? Which path should I follow? Is there any alternative to this? As a

How to mimic Google Keyboard's spacebar long-press functionality for switching keyboards?

非 Y 不嫁゛ 提交于 2019-12-02 17:41:35
问题 Google Keyboard lets you long-press the spacebar to switch keyboards in Android. I haven't turned anything up with a Google search but I'm certain there's a way to do this programmatically. How can I bring up the input method picker? 回答1: They use showInputMethodPicker(): private void onSpaceBarLongPress() { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.showInputMethodPicker(); } 来源: https://stackoverflow.com/questions/35376419/how-to-mimic

How to mimic Google Keyboard's spacebar long-press functionality for switching keyboards?

只愿长相守 提交于 2019-12-02 08:39:06
Google Keyboard lets you long-press the spacebar to switch keyboards in Android. I haven't turned anything up with a Google search but I'm certain there's a way to do this programmatically. How can I bring up the input method picker? They use showInputMethodPicker() : private void onSpaceBarLongPress() { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.showInputMethodPicker(); } 来源: https://stackoverflow.com/questions/35376419/how-to-mimic-google-keyboards-spacebar-long-press-functionality-for-switching-k

Custom keyboard - Android

假装没事ソ 提交于 2019-12-02 04:40:13
Is there any known combinations of inputTypes on an inputText that would give a Num-pad keyboard with special characters such as $ , * , # and & . I am trying to allow the user to input a number and that field could take the mentioned characters as well. I have tried many but none seem to be giving the required output. Would I have to create my own custom keyboard for this? Since my request is very specific to certain special characters please do not mark this as a duplicate question. Thanks in advance. You can use KeyboardView to for customizing as your need. KeyboardView customKeyboard = new

How to change the Softkeyboard “Enter” button Text in android?

社会主义新天地 提交于 2019-12-01 23:32:35
问题 I want to set the softkeyboard to "Enter" key text to "Done". Is there any way to change the text of the enter key of the softkeyboard of the android device? Please suggest if anyone have any idea. Thank you in advance. 回答1: In XML for the editText put android:imeOptions="actionDone" 回答2: Apply inputType and imeOptions tag in EditText. Here inputType property is the type of data to be inserted and imeOptions is the action. this action may be go to next edittext, search, enter etc. This

Capture KeyEvent on RecyclerView Views

半世苍凉 提交于 2019-12-01 11:26:18
问题 Following the directions on this blog post I am able to track the selected item on a vertical list Adapter, but I cannot click or long click any item by pressing some key. I've created this method public static boolean isConfirmButton(KeyEvent event){ switch (event.getKeyCode()){ case KeyEvent.KEYCODE_ENTER: case KeyEvent.KEYCODE_DPAD_CENTER: case KeyEvent.KEYCODE_BUTTON_A: return true; default: return false; } } to intercept "confirm" buttons, but where's the right place to listen for