ime

Android EditText does not work, android:imeOptions=“actionNext” android:inputType=“phone”

£可爱£侵袭症+ 提交于 2019-12-10 23:35:25
问题 I have tried, and only if I delete android:inputType="phone" the keyboard Enter can jump to the Next EditText. I don't know whether there have been some conflicts between android:imeOptions="actionNext" and android:inputType="phone" . code : AutoCompleteTextView has android:imeOptions="actionNext" and android:inputType="phone" , but Enter on the keyboard will not go to the next one. <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation=

Is this a bug (Windows API)?

天涯浪子 提交于 2019-12-10 19:15:27
问题 I had a question about string normalization and it was already answered, but the problem is, I cannot correctly normalize korean characters that require 3 keystrokes With the input "ㅁㅜㄷ"(from keystrokes "ane"), it comes out "무ㄷ" instead of "묻". With the input "ㅌㅐㅇ"(from keystrokes "xod"), it comes out "태ㅇ" instead of "탱". This is Mr. Dean's answer and while it worked on the example I gave at first...it doesn't work with the one's I cited above. If you are using .NET, the following will work:

Android IME: how to show a pop-up dialog?

≡放荡痞女 提交于 2019-12-10 14:12:34
问题 I'm playing around with some keyboard development and try to show a pop-up dialog when a certain key is pressed if (primaryCode == -301) { AlertDialog mDialog = new AlertDialog.Builder(CONTEXT) .setTitle("My dialog") .setMessage("Lets do it.") .setPositiveButton("ok", null).create(); mDialog.show(); } However, the problem is the CONTEXT part. In a normal application it would just be this . I also tried getApplicationContext() and getBaseContext() , but neither of those works -> keyboard

How can I fix low resolution of my custom soft Keyboard View?

我们两清 提交于 2019-12-08 05:42:29
问题 I am developing a custom softkeyboard using softkeyboard sample of android SDK for 10 inches tablet PCs. First question: I noticed that the resolution of my keyboard is very low on tablet that is obvious in the following images. Actually in my keyboard area, the resolution is same as Pocket PCs resolution. How can I change its resolution to normal resolution of tablet PCs (10in)? In my softkeyboard getMaxWidth(); returns 545 that is very low for tablet. Second question: how can I change the

disable ime mode in google chrome

爷,独闯天下 提交于 2019-12-07 12:11:03
问题 How to disable IME using css or anyother method ?My problem is that,When change language to japanese,Double byte numbers are entered in text box,I need to prevent this I use style="ime-mode:disabled" It works all other browsers except google chrome. 回答1: change the attribute type to tel. It works just like ime-mode is inactive in chrome and other browsers supports html5. element.setAttribute('type', 'tel'); I recommend you to use both ime-mode and type="tel" style: ime-mode Chrome Firefox

input connection-how to delete selected text?

纵饮孤独 提交于 2019-12-07 11:37:40
问题 I made a custom keyboard for android. When I press backspace button of my keyboard I use getCurrentInputConnection().deleteSurroundingText(1, 0); to delete one letter from the input field. But when I select some text and then press the backspace button, the selected text is not deleted. What method in input connection should I use so that selected text is also deleted from my keyboard when I press the backspace button? 回答1: Call getCurrentInputConnection().commitText("",1); 回答2: When deleting

How can I fix low resolution of my custom soft Keyboard View?

。_饼干妹妹 提交于 2019-12-07 03:02:29
I am developing a custom softkeyboard using softkeyboard sample of android SDK for 10 inches tablet PCs. First question: I noticed that the resolution of my keyboard is very low on tablet that is obvious in the following images. Actually in my keyboard area, the resolution is same as Pocket PCs resolution. How can I change its resolution to normal resolution of tablet PCs (10in)? In my softkeyboard getMaxWidth(); returns 545 that is very low for tablet. Second question: how can I change the font size of key labels? Thanks a lot, My keyboard View: My desired View: I found the answer of my first

Since TranslateMessage() returns nonzero unconditionally, how can I tell, either before or after the fact, that a translation has occurred?

心不动则不痛 提交于 2019-12-06 17:12:23
问题 This is a continuation from What is the correct, modern way to handle arbitrary text input in a custom control on Windows? WM_CHAR? IMM? TSF?. So after experimenting with a non-IME layout (US English), a non-TSF IME (the Japanese FAKEIME from the Windows XP DDK), and a TSF text service (anything that comes with Windows 7), it appears that if the active input processor profile is not a TSF text service (that is, it is a TF_PROFILETYPE_KEYBOARDLAYOUT ), I'll still have to handle keystrokes and

Getting more data from the Japanese IME

一曲冷凌霜 提交于 2019-12-06 12:02:29
问题 In my c# form I have a data grid view where I want to input both kanji and kana version of a word or sentence, putting them in different columns. For example: 転寝 | うたたね 寝坊 | ねぼう What I want to achieve is having the second column automatically filled when I commit on the first one. I know there are dictionaries containing kanji readings but for sentences it gets complicated, and also there are many kanji with more than one reading. What I know is that the IME has both informations because

How to create custom keyboard with Russian Alphabet?

半腔热情 提交于 2019-12-06 09:31:24
I am beginner in android and working on custom keyboard. I have created in English language. Now I want to add some more languages like Russian and Arabic. I have taken reference from http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615 My question is how to find russian alphabet codes for Android? should I use utf-8, unicode or something else? I have made XML file for Enlgish like this <Row> <Key android:codes="97" android:keyLabel="a" android:keyEdgeFlags="left"/> <Key android:codes="115" android:keyLabel="s"/> <Key android:codes="100" android:keyLabel="d"/> <Key