android-softkeyboard

Overriding Android Native Keyboard

半世苍凉 提交于 2019-12-12 02:34:40
问题 I programmed a customKeyboard. What I need to do is to override native softkeybaord, system wide. Is it possible to do so? If yes, how can it achieve this and if no, then what are the alternatives to accomplish this task. 回答1: It's called an "Input Method Editor" There are plenty of apps such as swiftkey and swype which are custom keyboards which work this way. Basically, Android let's the user choose who will manager their input (both keyboard and touch). 回答2: After installing your keyboard

AOSP Keyboard: NoSuchMethodError - createEmptyDictFileNative

醉酒当歌 提交于 2019-12-12 01:47:21
问题 I'm trying to build the AOSP keyboard from the 5.0.2 branch after adding some custom code to obtain pressure values for key touches. I'm using lunch full-eng to build the source and using mm to build LatinIME after I've added my changes. I was having trouble with pre-optimization but was helped here on how to solve that. I'm now having the following error: E/dalvikvm( 729): ERROR: couldn't find native method E/dalvikvm( 729): Requested: Lcom/android/inputmethod/latin/BinaryDictionary;

National letter selector doesn't appear

此生再无相见时 提交于 2019-12-12 01:13:58
问题 What I had to do was to implement a text input able to color letters green or red. My piece of code can do this but there is a problem. I can't write an national letter because the popup does not appear. edit_text.addTextChangedListener(new TextWatcher() { boolean input_changed = false; private boolean isInputBlocked() { this.input_changed = !this.input_changed; return !this.input_changed; } @Override public void afterTextChanged(Editable s) { // Prevent recursive if (isInputBlocked()) return

Get time from Timepicker's edit Text

不羁的心 提交于 2019-12-12 00:33:07
问题 I've seen older posts and all the answers suggest to clearFocus. I can't do that, because my TimePicker isn't inside a dialog, so I don't know when I should call clearFocus() function and probably it will crash my app if I would try to modify TimePicker after. I'm sure this problem has a solution because the Alarm app which comes with Android do this feature without a dialog. Any answer is welcome, Regards! 回答1: You should use TimePicker.OnTimeChangedListener to handle onTimeChanged action if

Android Keyboard Type

杀马特。学长 韩版系。学妹 提交于 2019-12-11 19:17:23
问题 Is it possible to have this keyboard in android when user tap on an edit text? This keyboard needs to come up first. I used different input type however I didnt get the one that I attached. Can someone please advice? 回答1: Is it possible to force that specific type of keyboard? No. You can't even force the keyboard to exist. The user chooses a keyboard program, such as the default Android keyboard, Swype, SwiftKey, etc. You can specify an input type like URL, numeric, text, password, etc. The

Key board appears every time when it open the home activity of my app,UNABLE to HIDE KEYBOARD

删除回忆录丶 提交于 2019-12-11 18:54:12
问题 I have used ACTION BAR and a SEARCH VIEW in it.Every time i open the slide bar or open home activity it shows the keyboard. I think it is setting the focus on search View of action bar.But i'm unable to unfocused it. I tried this code to hide but it dint worked.\ getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); And have also tried this Here is the code... public class MainActivity extends FragmentActivity implements SearchView.OnQueryTextListener ,

PhoneGap: Android soft keyboard covers input fields

China☆狼群 提交于 2019-12-11 18:12:33
问题 I am having issues with a PhoneGap application that I'm working in. My app has lots of forms, since the objective of the app is mostly to provide a nice user interface to a database. However, whenever the user tries to edit an input field that is close to the bottom, the Android keyboard will pop up and cover the field, so that the user cannot see what he/she is writing. Do you know if there is a workaround for this? Has anyone come across this issue on their apps? 回答1: What you can do in

EditText's built-in scroll does not scroll till the end when keyboard is showing - the keyboard hides the text at the bottom

大城市里の小女人 提交于 2019-12-11 15:27:07
问题 I made a video to show that when scrolling till the end the keyboard hides the text at the bottom: https://photos.app.goo.gl/XZRDphEmAh5aR9D78 if you want to check out the app and the GitHub project and play around with the app and code for yourself you will find that here: supernote.org I already tried various stuff in the manifest like: android:windowSoftInputMode="adjustResize" So this is the xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http:/

How does setTextIsSelectable prevent the keyboard from appearing?

做~自己de王妃 提交于 2019-12-11 14:59:01
问题 If I create a simple app with single Activity that contains a single EditText, and I do EditText editText = (EditText) findViewById(R.id.editText); editText.setTextIsSelectable(true); then this prevents the keyboard from appearing (in my tests on Android 5.0 and 7.1). This is what I want, as requested in these questions: Disable soft-keyboard from EditText but still allow copy/paste? How to disable Android Soft Keyboard for a particular activity? Android: Disable soft keyboard at all

java.lang.ClassCastException: android.inputmethodservice.KeyboardView cannot be cast to android.view.ViewGroup

隐身守侯 提交于 2019-12-11 14:41:49
问题 I am getting this error while trying to use other layouts inside keyboard view as in my xml file. I don't want my keyboard layout to have rows and keys as in normal keyboard instead i want it to have two buttons on either side at the top inside any parent layout. Also I need a layout inside keyboard view to contain my drawing canvas. I have also tried to put in a layout like this: <?xml version="1.0" encoding="utf-8"?> <android.inputmethodservice.KeyboardView xmlns:android="http://schemas