android-softkeyboard

Android soft keyboard hides inputs from CordovaWebView when in fullscreen

不羁的心 提交于 2019-12-18 13:17:19
问题 I have a CordovaWebView that presents some html forms. When i focus on an input field, the Android's soft keyboard pops up and, for certain fields, according to their position, it gets on top of it. Basically, it is not resizing the layout of CordovaWebView. Whatever i do, i can't change this, and it is said that it is related to the fact that the CordovaWebView is in fullscreen mode. How can i accomplish to resolve this? PS: is it, or not, a bug? Thank you all! 回答1: In fact, it is a well

Android 4.0 keyboard issue in emulator.?

馋奶兔 提交于 2019-12-18 12:20:24
问题 I am tried an app in android icecream sandwich emulator. My app is having some activities with some text box's. now the problem is when i am tapping on the text box the soft keypad is not appearing.And i checked it in Google maps application there too it is not displaying any key pad is there any problem in android 4.0 with soft keypad??? 回答1: Fixed ! Edit your AVD, add "Keyboard Support" and change the value to no. Restart your AVD making sure that you wipe user data. Your keyboard will

Flash APIs for Android Platform

可紊 提交于 2019-12-18 09:20:46
问题 My usage is very limited. All i need to do is to invoke the soft keyboard from within my flash application. Is there anything I can do, without using a textfield or any such editable controls, which will pop up the keyboard. Thanks 回答1: So basically you need to have some sort of object that is interactive (that is, a textfield or something similar) to call up the on screen keyboard. This is probably because flash needs to set the focus for typing to that object. The object needs to be of type

Softkeyboard not showing in AlertDialog for phone only

独自空忆成欢 提交于 2019-12-18 09:18:50
问题 Why the softkeyboard is showing only on the tablet is a mystery ! Here is the code that I have used. AlertDialog.Builder builder = new AlertDialog.Builder(CurrentActivityName.this); builder.setTitle(“Title”); builder.setMessage(“Message”); final EditText input = new EditText(CurrentActivityName.this); builder.setView(input); builder.setPositiveButton(R.string.allow, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { //my code } });

How to map accented characters in keyboard xml

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 08:56:53
问题 I have to implement a simple custom soft-keyboard in my application and I want to show accented characters on the keyboard too. These are: í, é, á, ű, ú, ő, ó, ü, ö My question is how to map these in the keyboard xml? What are the key codes for these? I could not found them in the official KeyEvent document. My current keyboard definition xml looks like this: <Keyboard xmlns:android="http://schemas.android.com/apk/res/android" android:keyWidth="10%p" android:horizontalGap="0px" android

Android - adjust scrollview when keyboard is up for android 5.0 (lollipop)

点点圈 提交于 2019-12-18 05:57:51
问题 I have a problem on android lollipop, screen doesn't adjust size when the softkeyboard comes up. This is my manifest intro example from one of the activity i made: android:windowSoftInputMode="stateAlwaysHidden|adjustResize" Is there something new that is added and we have to take into account for android 5.0 ? The scrollview works fine on android < 5.0. 回答1: the problem was that it didn't work with translucent status bar and i had to set android:fitsSystemWindows="true" in my main layout 回答2

getting list of languages supported by android keyboard

依然范特西╮ 提交于 2019-12-18 05:02:20
问题 I need to display the list of the all languages which are supported by android keyboard. Now I am using Locale.getAvailableLocales(); method but i am getting language and country constants. I need all language names only. Is it possible? and how ?. 回答1: How about using Locale.getDisplayName(Locale) on each Locale you get with Locale.getAvailableLocales(); ? Returns this locale's language name, country name, and variant, localized to locale. new Locale("en").getDisplayName(Locale.US) ->

Read Keyboard events in Android WebView

我是研究僧i 提交于 2019-12-18 03:23:14
问题 I'm trying to listen to key events in android web view. Example when user is filling a form, I should receive the key events. This is my WebView code public class MyWebView extends WebView implements OnKeyListener { ..... @Override public boolean onKeyDown(int keyCode, KeyEvent event) { Log.i("PcWebView", "onKeyDown keyCode=" + keyCode); return super.onKeyDown(keyCode, event); } @Override public boolean onKeyUp(int keyCode, KeyEvent event) { Log.i("PcWebView", "onKeyUp keyCode=" + keyCode);

Read Keyboard events in Android WebView

雨燕双飞 提交于 2019-12-18 03:23:08
问题 I'm trying to listen to key events in android web view. Example when user is filling a form, I should receive the key events. This is my WebView code public class MyWebView extends WebView implements OnKeyListener { ..... @Override public boolean onKeyDown(int keyCode, KeyEvent event) { Log.i("PcWebView", "onKeyDown keyCode=" + keyCode); return super.onKeyDown(keyCode, event); } @Override public boolean onKeyUp(int keyCode, KeyEvent event) { Log.i("PcWebView", "onKeyUp keyCode=" + keyCode);

Unable to show keyboard automatically in the SearchView

半城伤御伤魂 提交于 2019-12-18 03:10:12
问题 The SearchView is focused by default, but when I try to show software keyboard - it doesn't happen: InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0); But when I click on the SearchView - it does. Why? 回答1: Fixed! mSearchView.setOnQueryTextFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View view, boolean hasFocus) { if (hasFocus) { showInputMethod(view