soft-keyboard

Change return to be next/done key in Xamarin Forms Shared Project

被刻印的时光 ゝ 提交于 2019-11-28 06:20:29
Is it possible to change the text in the 'return' key on the keyboard to be either 'next' or 'done'? I have a login form with username and password. I want the return key to say 'next' when on the username field and then 'done' when on the password field but haven't seen anyway of doing this. This is for a shared project, android and iOS. A custom EntryRenderer can handle changing the keyboard return key description. iOS : UITextField has a ReturnKeyType property that you can set to a preassigned list (see UIReturnType enum). Android : EntryEditText has a ImeOptions property that controls what

android - show soft keyboard on demand

无人久伴 提交于 2019-11-28 02:28:36
Hi I wrapped edittext control onto a control that is being displayed on the screen at users request. It overlays the whole screen until user presses 'done' button on the keyboard. I am not able to explicitly show the control on the screen. only when user taps into control only then its shown. Am I missing something? I even try this and it does not brin it up when I launch the overlay that Edit Text exists on: customCOntrol.showKeyboard(); public void showKeyboard() { InputMethodManager imm = (InputMethodManager)_context.getSystemService(Context.INPUT_METHOD_SERVICE); imm

Phonegap: completely removing the black bar from the iPhone keyboard

被刻印的时光 ゝ 提交于 2019-11-27 21:28:43
We're using Phonegap to develop our mobile app, and we borrowed code from here to remove the black next/prev/done bar from the keyboard: https://stackoverflow.com/a/9276023/35364 What that code does is it finds the black bar, as a UIView object, and calls 'removeFromSuperview' on it. We're not familiar with the iOS SDK/API. So while we can look at the code and get an idea of what it's doing, we can't tell if it's doing it properly, or how to improve it. The specific problem we're running into: We have a text field for writing a message, and we're manually controlling the placement of this

Move layout up when soft keyboard is shown

泄露秘密 提交于 2019-11-27 18:54:21
问题 I'm trying to adjust the layout when the soft keyboard appears after an edit text gets focus. Right now if I have many edit text and the keyboard appears, the last edit text are hidden and I can't scroll up. This is how my layout is builded up: Template: <LinearLayout> <LinearLayout> // header 1 </LinearLayout> <LinearLayout> // header 1 </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" android:orientation="vertical"> //

Change return to be next/done key in Xamarin Forms Shared Project

大城市里の小女人 提交于 2019-11-27 12:06:20
问题 Is it possible to change the text in the 'return' key on the keyboard to be either 'next' or 'done'? I have a login form with username and password. I want the return key to say 'next' when on the username field and then 'done' when on the password field but haven't seen anyway of doing this. This is for a shared project, android and iOS. 回答1: A custom EntryRenderer can handle changing the keyboard return key description. iOS : UITextField has a ReturnKeyType property that you can set to a

How to overcome WhatWG/W3C/Chrome version 33.0.1750.146 “regression bug” with <input type=“number”/> fields

隐身守侯 提交于 2019-11-27 11:45:34
问题 I put the words "regression bug" in quotes as there is obviously some mixed opinions on this. For full details track Bug 24796 in Bugzilla. In short Google Chrome implemented changes according to the latest version of the WhatWG specs: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary that removed the following properties and methods from <input type="number"/> fields. Properties: selectionStart selectionEnd Methods: select()

How to disable “Next” button on a EditText software keyboard (replace with “Done” button)

落花浮王杯 提交于 2019-11-27 06:42:54
I have a bunch of EditTexts in my Android application, each with InputMethod set to numberSigned. My target device does not have a hardware keyboard and uses the software keyboard for numeric entry. Android replaces the standard "Done" button to the right of the entry box with a "Next" button. How can I use "Done" instead? Jim Blackler Try adding android:imeOptions="actionDone" to your EditText . Reference This can also be accomplished in code with: myEditText.setImeOptions(EditorInfo.IME_ACTION_DONE); 来源: https://stackoverflow.com/questions/2568637/how-to-disable-next-button-on-a-edittext

Phonegap: completely removing the black bar from the iPhone keyboard

柔情痞子 提交于 2019-11-26 20:40:03
问题 We're using Phonegap to develop our mobile app, and we borrowed code from here to remove the black next/prev/done bar from the keyboard: https://stackoverflow.com/a/9276023/35364 What that code does is it finds the black bar, as a UIView object, and calls 'removeFromSuperview' on it. We're not familiar with the iOS SDK/API. So while we can look at the code and get an idea of what it's doing, we can't tell if it's doing it properly, or how to improve it. The specific problem we're running into

How to get UIKeyboard size with iOS

跟風遠走 提交于 2019-11-26 19:36:44
Is there some way to get UIKeyboard size programmatically. 216.0f height and 162.0f height in landscape. Following seem to be deprecated. Is there some way that works without any warning in both 3.0 iPhone OS SDK and 4.0 iPhone OS SDK to do this.. CGSize keyBoardSize = [[[note userInfo] objectForKey:UIKeyboardBoundsUserInfoKey] CGRectValue].size; James Bedford You can get the keyboard size from the userInfo dictionary using the UIKeyboardFrameBeginUserInfoKey and the UIKeyboardFrameEndUserInfoKey instead. These two keys return a NSValue instance containing a CGRect that holds the position and

Creating a SoftKeyboard with Multiple/Alternate characters per key

大憨熊 提交于 2019-11-26 17:05:20
I've followed the examples on developer.android.com regarding Input Methods and played with the SoftKeyboard sample application. These together give more than enough information regarding the creation of simple keyboard. What I can't see in the API is the ability to create alternate / multiple characters per key which is available on the standard Keyboard (LatinIME Keyboard). The above image is the result of a long press on the "a" key. When you long press a key it's possible to populate a popup with alternate characters. It is also possible to give a popup hint on some keys which will prompt