soft-keyboard

Scrollviewer & SIP Issue (WP7.5 Mango)

吃可爱长大的小学妹 提交于 2019-12-06 19:54:53
问题 I am working on an application which includes a registration form. The form contains multiple text entry boxes, and so a ScrollViewer is used to allow them all to be displayed on one page. The following is a stripped down example of the XAML code I am using: <Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"> <TextBlock x

Hide Soft Keyboard Not Working

北城余情 提交于 2019-12-06 19:04:29
问题 I'm developing on the Droid Incredible (and have tested on a 1.5 AVD Emulator as well), and one of the tabs in my tab widget consists of a listview and a row with an EditText and a Send button (for a chat feature). I am using the following to close the soft keyboard once I click Send, but it's not working. This is identical to code I've found elsewhere that people have upvoted as correct. See anything I'm missing? // in Button's onClick(): EditText chatTextBox = (EditText) findViewById(R.id

How to hide Windows Phone 8.1 soft keyboard effectively?

只愿长相守 提交于 2019-12-05 07:46:19
I want to hide the soft keyboard when the Enter key is tapped, but no solutions works for me properly. (Windows Phone 8.1 Universal App) This one just doesn't work: if (e.Key == VirtualKey.Enter) { textBox.IsEnabled = false; textBox.IsEnabled = true; } A method like this: private void LoseFocus(object sender) { var control = sender as Control; var isTabStop = control.IsTabStop; control.IsEnabled = false; control.IsTabStop = false; control.IsEnabled = true; control.IsTabStop = isTabStop; } works only partially. It's hiding keyboard only when I'm using textbox for the first time. On the second

Soft keyboard push up hidding action bar or overlay edittext

纵然是瞬间 提交于 2019-12-04 19:44:55
I have an issue with a simple layout. If I set android:windowSoftInputMode="stateHidden|adjustResize" this happens: Bug In any case this happens only If I open keyboard from landscape, then rotate (with keyboard open). In normal use (rotating and then opening keyboard) this does not happens! If I set android:windowSoftInputMode="stateHidden|adjustPan" ActionBar is pushed up. Here layout code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/a" android:layout

Hide Soft Keyboard on Done Keypress in Android?

此生再无相见时 提交于 2019-12-03 08:22:13
问题 I'm struggling with the done button on the soft keyboard. I can't get the soft keyboard Done key press to hide the keyboard. From another button, it works perfectly with imm.hideSoftInputFromWindow(editText.getApplicationWindowToken(), 0); but the onKeyListener does not function the way I want. When I hit the editText, the soft keyboard shows up and its content is cleared from characters. Thanks for listening! The main.xml: <EditText android:id="@+id/answer" android:layout_gravity="center

How to disable Android Soft Keyboard for a particular activity?

风格不统一 提交于 2019-12-03 06:18:01
I have an activity with one EditText where I need to input numbers only. Now, I have defined the Input Type for my EditText to be number only and have drawn up a pretty keypad for my user to use, however I also need to make sure the soft keyboard doesn't pop up for my user when they click on the EditText. I have tried hiding the keyboard through the manifest by adding android:windowSoftInputMode="stateAlwaysHidden" in my Manifest for the particular activity, but this doesn't work for me because as soon as the user clicks on the EditText the keyboard appears again. I've tried doing the same

Hide soft keyboard after dialog dismiss

被刻印的时光 ゝ 提交于 2019-12-03 04:11:54
问题 I want to hide soft keyboard after AlertDialog dismiss, but it's still visible. Here is my code: alert = new AlertDialog.Builder(MyActivity.this); imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); alert.setOnDismissListener(new DialogInterface.OnDismissListener() { @Override public void onDismiss(DialogInterface dialog) { imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0); } }); 回答1: In Manifest xml android:windowSoftInputMode="stateAlwaysHidden" It

Hide Soft Keyboard on Done Keypress in Android?

[亡魂溺海] 提交于 2019-12-02 22:04:51
I'm struggling with the done button on the soft keyboard. I can't get the soft keyboard Done key press to hide the keyboard. From another button, it works perfectly with imm.hideSoftInputFromWindow(editText.getApplicationWindowToken(), 0); but the onKeyListener does not function the way I want. When I hit the editText, the soft keyboard shows up and its content is cleared from characters. Thanks for listening! The main.xml: <EditText android:id="@+id/answer" android:layout_gravity="center_horizontal" android:textSize="36px" android:inputType="phone" android:minWidth="60dp" android:maxWidth=

Custom popup for key of keyboard

妖精的绣舞 提交于 2019-12-01 18:15:46
I am making custom keyboard.. Now my question is that I want custom popup for key pressed. So, can I change it. popup of key like as this image If any one know about this then please help me... CapDroid Yup, its not too hard at all. Just check out the time in the AOSP here. It's all done in the resource files, here is a short snippet. From the symbols.xml file of my keyboard project. <Key android:codes="49" android:keyLabel="1" android:keyEdgeFlags="left" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="¹½⅓¼⅛"/> Barry Fruitman It's easy. Just set the android:iconPreview

Custom popup for key of keyboard

橙三吉。 提交于 2019-12-01 17:37:04
问题 I am making custom keyboard.. Now my question is that I want custom popup for key pressed. So, can I change it. popup of key like as this image If any one know about this then please help me... CapDroid 回答1: Yup, its not too hard at all. Just check out the time in the AOSP here. It's all done in the resource files, here is a short snippet. From the symbols.xml file of my keyboard project. <Key android:codes="49" android:keyLabel="1" android:keyEdgeFlags="left" android:popupKeyboard="@xml/kbd