android-softkeyboard

How to add preference of Custom Input method to Android Settings app?

依然范特西╮ 提交于 2020-01-09 11:23:11
问题 Recently I've started to develop Android Soft Keyboard and got some problem with preferences. How to add a preferences to Android setting app? I've searched almost all the source code of AnySoftKeyboard, but haven't found anything what would add them to Settings app. I'm placing a link to show what I meant: http://code.google.com/p/softkeyboard/wiki/Settings (first picture from begin) Thank you P.S. Sorry for my bad english.. 回答1: I've found it myself: in XML of input method you need to put

How to show soft keyboard on Android Things?

强颜欢笑 提交于 2020-01-09 10:07:19
问题 I'm trying to show soft keyboard on Android Things , Raspberry Pi 3 . I tried the methods below, but not succeeded so far: <activity ... android:windowSoftInputMode="stateAlwaysVisible"> and <EditText ... android:inputType="numberDecimal"/> Does Android Things 7.0 support soft keyboard, or am I missing something? 回答1: Update II : there is a bug with Dev Preview 5.1 when Google's soft keyboard doesn't show up at all. Update : starting with Dev Preview 4 the Android Things image is shipped with

How to show soft keyboard on Android Things?

六眼飞鱼酱① 提交于 2020-01-09 10:07:09
问题 I'm trying to show soft keyboard on Android Things , Raspberry Pi 3 . I tried the methods below, but not succeeded so far: <activity ... android:windowSoftInputMode="stateAlwaysVisible"> and <EditText ... android:inputType="numberDecimal"/> Does Android Things 7.0 support soft keyboard, or am I missing something? 回答1: Update II : there is a bug with Dev Preview 5.1 when Google's soft keyboard doesn't show up at all. Update : starting with Dev Preview 4 the Android Things image is shipped with

No soft keyboard for the EditText inside the Dialog Box

你离开我真会死。 提交于 2020-01-06 08:33:12
问题 I'd like to create a Dialog Box where the user can insert a number; so I overrided the onCreateDialog method this way: protected Dialog onCreateDialog(int id) { EditText editNum=new EditText(this); editNum.setMaxLines(1); editNum.setRawInputType(InputType.TYPE_CLASS_NUMBER); String strVal=listViewNum.getItemAtPosition(selectedItem).toString(); strVal=strVal.substring(strVal.indexOf("=")+1,strVal.length()-1); editNum.setText(Util.formatNumber(Double.parseDouble(strVal))); editNum.selectAll();

Android - is it possible to hide certain characters from the soft keyboard?

你离开我真会死。 提交于 2020-01-06 06:47:07
问题 Is it possible to hide (or disable) certain characters on the soft keyboard? It's been asked before: Android soft keyboard - disable certain keys but no answer. (I'd rather hide than disable keys but would go for either) Thanks! 回答1: Is it possible to hide (or disable) certain characters on the soft keyboard? Only if you create your own input method editor (a.k.a., soft keyboard) and get the user to switch to it. Attributes like android:inputType are hints that some input method editors will

Android - is it possible to hide certain characters from the soft keyboard?

家住魔仙堡 提交于 2020-01-06 06:46:47
问题 Is it possible to hide (or disable) certain characters on the soft keyboard? It's been asked before: Android soft keyboard - disable certain keys but no answer. (I'd rather hide than disable keys but would go for either) Thanks! 回答1: Is it possible to hide (or disable) certain characters on the soft keyboard? Only if you create your own input method editor (a.k.a., soft keyboard) and get the user to switch to it. Attributes like android:inputType are hints that some input method editors will

How can I detect long pressed volume and power button when app is in background on Android P using service

空扰寡人 提交于 2020-01-06 05:47:15
问题 I want to detect volume button press when app is in background and even if device is locked I am working on android P, I was able to get long pressed volume button when app is in background but screen not locked using service and by getting Allow over other apps permission but it caused problem , when app is in background back button and keyboard are not working , I am able to open other apps like whatsapp but I can not type a message and can not back , Here is my code any please help .

touchEvent while typing with soft keyboard android

别来无恙 提交于 2020-01-06 03:06:11
问题 in my application I would like to receive touchEvent(MotionEvent) event while the user is typing using his soft keyboard on a TextView. I have already tried using dispatchTouchEvent(MotionEvent) on the main activity, but during the typing this event is not fired. Is there a way to handle it? EDIT: The main idea is to have from the soft key two different events, one for the letter submitted (for example as with keyUp and keyDown) and one relative to the touch like dispatchTouchEvent, since

touchEvent while typing with soft keyboard android

落爺英雄遲暮 提交于 2020-01-06 03:05:56
问题 in my application I would like to receive touchEvent(MotionEvent) event while the user is typing using his soft keyboard on a TextView. I have already tried using dispatchTouchEvent(MotionEvent) on the main activity, but during the typing this event is not fired. Is there a way to handle it? EDIT: The main idea is to have from the soft key two different events, one for the letter submitted (for example as with keyUp and keyDown) and one relative to the touch like dispatchTouchEvent, since

Soft Keyboard hide on backpress

假如想象 提交于 2020-01-05 05:11:12
问题 I need to identify the event of back press which hide the softkeyboard I have tested by override following methods onKeydown onBackPressed onConfigurationChanged dispatchKeyEvent But the controller is not reaching there 回答1: Use dispatchKeyEventPreIme in subclassed EditText view: @Override public boolean dispatchKeyEventPreIme(KeyEvent event) { if(KeyEvent.KEYCODE_BACK == event.getKeyCode()) { //do what you need here } return super.dispatchKeyEventPreIme(event); } 来源: https://stackoverflow