keyboard

Android: How to avoid layout being pushed when keyboard invoked

蓝咒 提交于 2020-01-31 05:55:27
问题 I have a layout as below <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="1"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> <LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="wrap_content">

Android: How to avoid layout being pushed when keyboard invoked

☆樱花仙子☆ 提交于 2020-01-31 05:54:08
问题 I have a layout as below <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="1"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> <LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="wrap_content">

use arrow keys, with keyup in Angular

荒凉一梦 提交于 2020-01-29 09:36:26
问题 I have an Angular project, and I want to implement some functions to arrow keys, I tried to use something like (keyup.[keyCode])="Move(itemArray, 'UP') _where [keyCode] represents the code of one of arrow keys_But nothing works, here's the template where I use this. The Template (HTML) <div (keyup.38)="Move(itemArray, 'UP')" (keyup.37)="Move(itemArray, 'LEFT')" (keyup.40)="Move(itemArray, 'DOWN')" (keyup.39)="Move(itemArray, 'RIGHT')"> <div> <div class="score"> <span>Best:</span> {{best}} <

Get the VK int from an arbitrary char in java

本小妞迷上赌 提交于 2020-01-29 03:52:07
问题 How do you get the VK code from a char that is a letter? It seems like you should be able to do something like javax.swing.KeyStroke.getKeyStroke('c').getKeyCode() , but that doesn't work (the result is zero). Everyone knows how to get the key code if you already have a KeyEvent, but what if you just want to turn chars into VK ints? I'm not interested in getting the FK code for strange characters, only [A-Z],[a-z],[0-9]. Context of this problem -------- All of the Robot tutorials I've seen

OS X Terminal: Meta key + alt functionality at the same time

ぐ巨炮叔叔 提交于 2020-01-28 13:17:28
问题 Is there a way to use an alt / option key as a meta key but still be able to use it to make some characters which need it? For example, in my local keyboard layout: @ is alt + 2 \ is alt + shift + 7 | is alt + 7 etc. So, if I set alt as a meta key, I can't make those characters anymore. On the other hand, using "press esc, release esc, press a key" to make meta key sequences makes my hands hurt. Any Emacs users with international keyboards who have solved this, please give any tips you might

OS X Terminal: Meta key + alt functionality at the same time

有些话、适合烂在心里 提交于 2020-01-28 13:17:09
问题 Is there a way to use an alt / option key as a meta key but still be able to use it to make some characters which need it? For example, in my local keyboard layout: @ is alt + 2 \ is alt + shift + 7 | is alt + 7 etc. So, if I set alt as a meta key, I can't make those characters anymore. On the other hand, using "press esc, release esc, press a key" to make meta key sequences makes my hands hurt. Any Emacs users with international keyboards who have solved this, please give any tips you might

iphone keyboard without textview

末鹿安然 提交于 2020-01-28 04:41:38
问题 is it possible to bring up the keyboard in an iphone app without a textview? or will i have to have an invisible textview? if so, how do you programatically create a textview and then bring up the keyboard (without the user having to tap the textview)? the only examples i can find use interface builder.. 回答1: The only (valid) way to show the keyboard is to have a textfield that is first responder. You can hide it and make it first responder programmatically by calling becomeFirstResponder on

iphone keyboard without textview

主宰稳场 提交于 2020-01-28 04:38:25
问题 is it possible to bring up the keyboard in an iphone app without a textview? or will i have to have an invisible textview? if so, how do you programatically create a textview and then bring up the keyboard (without the user having to tap the textview)? the only examples i can find use interface builder.. 回答1: The only (valid) way to show the keyboard is to have a textfield that is first responder. You can hide it and make it first responder programmatically by calling becomeFirstResponder on

Soft keyboard won't appear

試著忘記壹切 提交于 2020-01-25 19:24:27
问题 Hello I want to show up the soft keyboard whenever I tap on the textfield. the application of mine works fine whenever u login for the first time but when i logout from the application it does not pop up. 回答1: You can show the soft keyboard focused on a specific EditText like this. EditText editText = (EditText) findViewById(R.id.edit); InputMethodManager imm = (InputMethodManager) getSystemService( Context.INPUT_METHOD_SERVICE); imm.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT);

Soft keyboard won't appear

自闭症网瘾萝莉.ら 提交于 2020-01-25 19:21:32
问题 Hello I want to show up the soft keyboard whenever I tap on the textfield. the application of mine works fine whenever u login for the first time but when i logout from the application it does not pop up. 回答1: You can show the soft keyboard focused on a specific EditText like this. EditText editText = (EditText) findViewById(R.id.edit); InputMethodManager imm = (InputMethodManager) getSystemService( Context.INPUT_METHOD_SERVICE); imm.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT);