keyboard

Android get available input languages

时光毁灭记忆、已成空白 提交于 2020-01-07 03:04:05
问题 I'm trying to get the available input devices on Android, in order to do that I'm using the InputMethodManager and using the API of getEnabledInputMethodList() as follows: InputMethodManager inputMgr = (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE); List<InputMethodInfo> inputMethodList = inputMgr.getEnabledInputMethodList(); for (InputMethodInfo method : inputMethodList) { List<InputMethodSubtype> subMethods = inputMgr.getEnabledInputMethodSubtypeList(method,

How to hide default Android keyboard when custom keyboard is visible?

杀马特。学长 韩版系。学妹 提交于 2020-01-07 03:03:29
问题 I have an Android app with Activity containing a TextView as below. <EditText android:id="@+id/textEdit1" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="8dip" android:paddingRight="8dip" android:lines="4" android:hint="My hint" android:layout_gravity="center_horizontal|center_vertical" android:gravity="left" android:selectAllOnFocus="true" android:textAppearance="?android:attr/textAppearanceSmall"/> When the user clicks within this TextView (and

How to move the control/UI elements along with the keyboard in UWP

佐手、 提交于 2020-01-06 19:58:27
问题 I'm wondering if there any solution that could make the app automatically adjust the controls position when the keyboard is activated. For example, in the image below, I want to make those four button on the screen move dependently with keyboard. When the keyboard is activated, buttons move to the center and move back when the keyboard is gone. There might be some similar questions here but I couldnt see them in the search result, maybe they are using some different words on title so if this

How to move the control/UI elements along with the keyboard in UWP

冷暖自知 提交于 2020-01-06 19:57:04
问题 I'm wondering if there any solution that could make the app automatically adjust the controls position when the keyboard is activated. For example, in the image below, I want to make those four button on the screen move dependently with keyboard. When the keyboard is activated, buttons move to the center and move back when the keyboard is gone. There might be some similar questions here but I couldnt see them in the search result, maybe they are using some different words on title so if this

Modeless dialog keyboard handling (winapi)

僤鯓⒐⒋嵵緔 提交于 2020-01-06 18:36:35
问题 I've got an application with a main window which has a bunch of controls, including the spacebar, which is handled by a simple method called onSpacebar() . On top of that main window, I've got a persistent modeless dialog. I need the spacebar to behave the exact same way, regardless of whether the dialog has focus, or the main window has focus. This dialog is backed by a DialogProc which looks something like this: BOOL CALLBACK DialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {

Modeless dialog keyboard handling (winapi)

坚强是说给别人听的谎言 提交于 2020-01-06 18:36:17
问题 I've got an application with a main window which has a bunch of controls, including the spacebar, which is handled by a simple method called onSpacebar() . On top of that main window, I've got a persistent modeless dialog. I need the spacebar to behave the exact same way, regardless of whether the dialog has focus, or the main window has focus. This dialog is backed by a DialogProc which looks something like this: BOOL CALLBACK DialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {

Change Position of native keyboard

杀马特。学长 韩版系。学妹 提交于 2020-01-06 14:21:22
问题 In my application i am using Tab activities to switch from one activity to another. I want to know that is there any way to change our native android keyboard position? Because i want to display native keyboard above Tab that i have used in my application ? Thus user can easily navigate while typing. I have searched a lot but i didn't get any success yet. Any help would be appreciated. Thanks. 回答1: I want to know that is there any way to change our native android keyboard position? No.

telegram keyboard not showing non English languages chracters?

守給你的承諾、 提交于 2020-01-06 08:17:27
问题 I'm trying to write a php telegram bot in Persian which is a non English utf8 language. when I try to send plain text in Persian to my client it works perfectly ok $array = [ "chat_id" => $chat_id, "text" => $someNonEnglishText ]; $telegram->sendMessage($array); but when I try to send keyboard data with the code below it just show some question marks like ???????????????? on my keyboard buttons $reply_markup = $telegram->replyKeyboardMarkup([ 'keyboard' => $someNonEnglishkeyboard, 'resize

telegram keyboard not showing non English languages chracters?

浪子不回头ぞ 提交于 2020-01-06 08:16:12
问题 I'm trying to write a php telegram bot in Persian which is a non English utf8 language. when I try to send plain text in Persian to my client it works perfectly ok $array = [ "chat_id" => $chat_id, "text" => $someNonEnglishText ]; $telegram->sendMessage($array); but when I try to send keyboard data with the code below it just show some question marks like ???????????????? on my keyboard buttons $reply_markup = $telegram->replyKeyboardMarkup([ 'keyboard' => $someNonEnglishkeyboard, 'resize

Soft Keyboard Disappearing when changing input

倾然丶 夕夏残阳落幕 提交于 2020-01-06 07:24:10
问题 Strange problem here which was caused by the most recent win 10 update 1709 I have a uwp app that is installed on a tablet which has assigned access setup. So it is locked to this application in tablet mode. This was all fine until the last update which broke the keyboard. It pops up the first time, then when tapping the next input box it disappears. Then to get it to return you need to tap in the box again. I'm using the input scope on a few of them, and this seems to work intermittently too