android-softkeyboard

Android development: hook shortcut on keyboard when phone app activity is focused

五迷三道 提交于 2021-02-19 03:09:19
问题 It's a specific question and I've done a bit of Android development before, but not so deep into the system management. So I need to create an app which run in background (this part is OK) and to launch automatically an activity of the app when a special shortcut (let's say #123*6) is typed from the phone app software keyboard on the phone. Can you please indicate me if it's possible, and if yes, what API/Component I should use? Can't find something relevant on the Web. 回答1: Ok I finally got

Adding * and # key to the soft keyboard

[亡魂溺海] 提交于 2021-02-18 12:45:11
问题 1) PROBLEM: I have an EditText in which the user has to enter USSD code. Problem is, for entering USSD code the user has to switch to symbol keyboard (two to three times) which creates a very bad user experience. USSD Code Examples: *345*77#, *333*25#, *123*678# etc. <EditText android:id="@+id/field_code" android:layout_width="match_parent" android:layout_height="wrap_content" android:imeActionId="@integer/imo_action_search" android:imeOptions="actionSearch" android:inputType="phone" /> 2)

Xamarin Show Keyboard and Focus on an Entry Field

a 夏天 提交于 2021-02-13 17:34:03
问题 I am using Xamarin.Android and I have a Dialog with Xamarin.Forms.Entry field in it. How do I show keyboard and give focus to this Entry field when dialog is displayed? I am using a device, not an emulator. 回答1: Can you try this, dialog.Appearing += (object sender, System.EventArgs e) => yourEntry.Focus (); When you focus to the entry, Keyboard will be shown by default Here is the sample, i have tried to show keyboard in button click <StackLayout> <Entry x:Name="entry" HeightRequest="50"

Not show keyboard capture with window flag FLAG_SECURE

自闭症网瘾萝莉.ら 提交于 2021-02-07 03:33:40
问题 I am adding the following flag to my app: getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE); Sadly the keyboard is still visible and I can still see what the user is inputting when I watch thew playback of the screen recording. Any idea, how I can stop to the keyboard being captured? Edit: I don't want to hide the soft keyboard as the user has to enter private information in text fields. 来源: https://stackoverflow.com/questions/41718825/not-show-keyboard-capture-with-window-flag

Not show keyboard capture with window flag FLAG_SECURE

99封情书 提交于 2021-02-07 03:29:25
问题 I am adding the following flag to my app: getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE); Sadly the keyboard is still visible and I can still see what the user is inputting when I watch thew playback of the screen recording. Any idea, how I can stop to the keyboard being captured? Edit: I don't want to hide the soft keyboard as the user has to enter private information in text fields. 来源: https://stackoverflow.com/questions/41718825/not-show-keyboard-capture-with-window-flag

Is there a way to show soft keyboard in Presentation Class(Secondary Screen)?

邮差的信 提交于 2021-01-29 07:13:07
问题 The secondary monitor is connected by HDMI internally. And the OS is 7.1 (I can't upgrade it to 10+) I implemented the secondary screen with Presentation. And I am suffering with creating a keyboard. English/Number is easy but my mother tongue(Korean) is difficult. And also, I may need to use the keyboard for the webview. So, it should be accessible to the webview. It means, my custom keyboard view in the layout won't work inside the webview. Is there any solution with this? 来源: https:/

how to hide the softketboard when DatePickerDialog is open on the screen

大憨熊 提交于 2021-01-29 05:10:54
问题 I am customizing DatePickerDialog to add some of my functionality for native DatePicker. that is working as expected. But day, month and year fields of DatepickerDialog are editable by default. so when i focus those editable input fields soft keyboard will be open by default and used will be able to edit the date/month/year and when user edit the day/month/year ans press set/cancel edited date DatePickerDialog is getting closed and functionality is working properly. Here my issue is when user

how to hide the softketboard when DatePickerDialog is open on the screen

[亡魂溺海] 提交于 2021-01-29 05:10:48
问题 I am customizing DatePickerDialog to add some of my functionality for native DatePicker. that is working as expected. But day, month and year fields of DatepickerDialog are editable by default. so when i focus those editable input fields soft keyboard will be open by default and used will be able to edit the date/month/year and when user edit the day/month/year ans press set/cancel edited date DatePickerDialog is getting closed and functionality is working properly. Here my issue is when user

Android InputMethodEditor layout file. Non-Key/Row elements in the XML?

别说谁变了你拦得住时间么 提交于 2021-01-28 07:09:38
问题 I'm trying to implement a keyboard with a TextView that updates with each keypress, but it won't show up on the screen. It should appear above the top row of letters. When I run the keyboard, the keys show up with an extra row on top but nothing inside <Keyboard xmlns:android="http://schemas.android.com/apk/res/android" android:keyWidth="10%p" android:id="@+id/keyboardView" android:horizontalGap="0px" android:verticalGap="0px" android:keyHeight="60dp" > <Row> <TextView xmlns:android="http:/

How to perform a search action by android custom keyboard action button? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-28 03:26:42
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Improve this question I'm developing an android custom keyboard. I need to perform search action, move cursor to next text field action according to the text fields that user selected. How to perform those actions? 回答1: I got the answer. getCurrentInputConnection()