soft-keyboard

How to set different background of keys for Android Custom Keyboard

好久不见. 提交于 2019-12-17 18:41:49
问题 I am Working on Custom Keyboard Application This is code for background color of input.xml in softkeyboard :- @Override public View onCreateInputView() { Log.e("onStartInputView ","On StartInput View Called--"); SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); String Backgroundcolour = preferences.getString("BackgroundColour",""); Log.e("Brithnesss- -","----"+Backgroundcolour); if(Backgroundcolour.equalsIgnoreCase("black")) { this.mInputView = (KeyboardView

Xamarin.Forms Entry That Should Not Show SoftKeyboard on Its Focus

◇◆丶佛笑我妖孽 提交于 2019-12-13 03:49:08
问题 I am working on Xamarin Forms project and I am using Entry view and that is requirement since i need to be able to focus on it but it is also requirement to not show soft keyboard. This requirement cannot be changed. Also, I cannot use Label or Button instead of Entry since these do not receive focus. Following this article (https://theconfuzedsourcecode.wordpress.com/2017/05/19/a-keyboard-disabled-entry-control-in-xamarin-forms/comment-page-1/#comment-1300), I tried creating custom renderer

How to prevent lifting listview when keyboard goes up

回眸只為那壹抹淺笑 提交于 2019-12-12 04:12:12
问题 This is code MainActivity java and main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/main_layout" android:gravity="center" android:layout_height="match_parent" android:layout_width="match_parent" android:background="#75F575"> <LinearLayout android:clickable="true" android:layout_gravity="center" android:orientation="vertical" android:layout_width="250dp" android:layout_height="100dp" android:background="#C69817" android:id="@+id/secondLayout">

Properly resize main kivy window when soft keyboard appears on android

徘徊边缘 提交于 2019-12-12 02:13:25
问题 I'm trying to use Window.softinput_mode to resize the window content when the soft keyboard appears: softinput_mode = 'resize' With this mode, the window is resized (i.e., window height is reduced by keyboard_height), but the keyboard still overlaps the content because, as it seems, the adapted window y coordinate is reduced by keyboard_height. How can i vertically top-align the window content when the soft keyboard appears? The modes 'pan' and 'below_target' didn't also help, because with

How programmatically switch to default softkeyboard

↘锁芯ラ 提交于 2019-12-11 12:33:20
问题 I have multiple keyboards on my device, how can I switch between the different keyboards programmatically? (I don't want to simply open or close the soft keyboard as in: android - show soft keyboard on demand. I need to switch to the default keyboard.) Edit: add code If i try below code, i switch to current keyboard: InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput( 0, 0); But i need switch to default keyboard. Please get me any

Android editable spinner plus virtual keyboard - is it possible?

橙三吉。 提交于 2019-12-11 05:58:37
问题 I have AlertDialog with an editable Spinner which allows me to edit the selected value, but there is a problem. The edit control inside my Spinner accepts the focus after tap and if the device has a physical keyboard all is fine. But if no keyboard... The virtual keyboard never shows up with this dialog. Even if I force the keyboard to come up after dialog shows (without opening the spinner list), it comes in the background only and it is unusable. Is it possible to have such a dialog with

When Dialog is showing, outside edittext in activity not showing the soft keyboard in android

泄露秘密 提交于 2019-12-11 04:07:52
问题 now i had a severe problem. I am having one activity and in that i have one edit text. I want to show up a customized dialog box on the top right of that activity. Now what my problem is while the dialogue is showing, when i click the edit text, soft keyboard is not showing....please help i want to show the keyboard while the dialog is showing... i have searched many..i found solution for the edit text inside the dialog but i need for the edit text which is outside the dialog...please help

Creating a custom InputScope for Windows Phone 7

前提是你 提交于 2019-12-10 20:54:37
问题 Where can I find a tutorial for creating a custom InputScope? I'd like to create a custom keyboard that displays only the numbers 1-9 on the onscreen keybord (no symbols). 回答1: You cannot create custom input scope, here are the ones supported InputScopeNameValue Enumeration there may be one close to what you want - there are ones with numbers e.g. telephone or number. 回答2: You can't create a custom input scope, but you can process key events, see http://www.atleyhunter.com/2010/11/12/making

Setting onClickListener to editText

六眼飞鱼酱① 提交于 2019-12-08 05:09:24
问题 Hi im trying to add on click listener to editText so i can disable the softkeyboard when user clicks on edittext using this code below, how to do that? InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); 回答1: First it needs to be focusable... <EditText ... android:inputType="none" android:focusable="false" ... /> You have to implement it in your code and than just add this to get an click

How to detect “done” Button in softkeyboard Unity3d

对着背影说爱祢 提交于 2019-12-07 19:58:35
问题 I use a InputField in my android app to get a string a soft keyboard pops up when i'm entering a string but now i want to call a function when user press "done" button in softkeyboard how can i do that? Unity3d 4.6.2f1 回答1: the best way i found is to subclass InputField. You can look into the source for the UnityUI on bitbucket. In that subclass you can access the protected m_keyboard field and check whether done was pressed AND not canceled, that will give you the desired result. Using