android-softkeyboard

Android soft keyboard resize layout

无人久伴 提交于 2019-11-28 11:55:37
When the virtual keyboard opens, it resizes my layout. How can i made for put the keyboard on my layout? And what it doesn't re-size my layout? You can use manifest flags to configure the effect of the virtual keyboard. See http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft Ashutosh Srivastava Android soft keyboard resize layout <activity android:name=".activity.SignUpActivity" android:screenOrientation="portrait" android:theme="@style/AppTheme.NoActionBar" android:windowSoftInputMode="adjustResize" /> It's Working for me try it. use only this code: <application

How to show soft keyboard on Android Things?

落花浮王杯 提交于 2019-11-28 10:18:51
I'm trying to show soft keyboard on Android Things , Raspberry Pi 3 . I tried the methods below, but not succeeded so far: <activity ... android:windowSoftInputMode="stateAlwaysVisible"> and <EditText ... android:inputType="numberDecimal"/> Does Android Things 7.0 support soft keyboard, or am I missing something? Update II : there is a bug with Dev Preview 5.1 when Google's soft keyboard doesn't show up at all . Update : starting with Dev Preview 4 the Android Things image is shipped with com.google.android.inputmethod.latin preinstalled. If you're going to use a 3d party keyboard app the

How to set different background of keys for Android Custom Keyboard

a 夏天 提交于 2019-11-28 08:44:39
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) getLayoutInflater().inflate( R.layout.input, null); }else { this.mInputView = (KeyboardView)

Soft keyboard hides half of EditText

安稳与你 提交于 2019-11-28 07:27:51
I have a listview and the last list item contains EditText: <RelativeLayout android:id="@+id/contentLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="30dp" android:orientation="vertical" > <ImageView android:id="@+id/test" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignRight="@+id/messageEditText" android:layout

How can restrict my EditText input to some special character like backslash(/),tild(~) etc by soft keyboard in android programmatically

Deadly 提交于 2019-11-28 06:11:11
I am developing an application for keyboard, but i am geting an issue. I want to restrict/block some special character from soft keyboard in EditText in android programmatically. So, Is there any way i can restrict any special character input in edit text in android. If anyone have idea,Please reply. Thanks in advance. Try this may works for you public class MainActivity extends Activity { private EditText editText; private String blockCharacterSet = "~#^|$%&*!"; private InputFilter filter = new InputFilter() { @Override public CharSequence filter(CharSequence source, int start, int end,

background layout moving when soft keyboard displayed - android

匆匆过客 提交于 2019-11-28 05:11:52
问题 I've got an input popup that I'm displaying over my activities main view that has some edit boxes in it. When the popup is displayed the activities view stays dimmed in the background (like with an alert dialog). The issue I'm having is that when the keyboard comes up the popup is ok, but activities view in the background is shifting up. That view should be paused and I wouldn't have thought it would be affected by the keyboard at all. Is there any way to stop this from happening? I've tried

Android SoftKeyboard onKeyDown/Up not detecting 'alternative' keys

我与影子孤独终老i 提交于 2019-11-28 05:01:01
问题 I have a view which handles input for me, I pop up a keyboard and set the view focusable. Now I can get certain key presses... @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_DEL) { } else if (keyCode == KeyEvent.KEYCODE_BACK) { } else if (keyCode == KeyEvent.KEYCODE_ENTER) { } else { } } and so on... the character pressed I get by using event.getDisplayLabel() That works as long as I only want the normal letters A-Z. In other languages, more

How to resize AlertDialog on the Keyboard display

我与影子孤独终老i 提交于 2019-11-28 04:55:11
I have a AlertDialog box with approximately 10 controls (text and TextView ) on it. These controls are in a ScrollView with AlertDialog , plus I got 2 buttons positive and negative. The issue I have is when the soft keyboard pops up the two buttons are hidden behind the keyboard. I was looking for something like redraw function on my inner View or the dialog box. Below is the screen shot of what I am talking about. nmr If your dialog was an activity using one of the Dialog themes you could effect this behavior by setting the adjustResize flag for the windowSoftInputMode parameter of the

Empty space when I return to Activity (Soft Keyboard forced)

99封情书 提交于 2019-11-28 04:36:55
问题 I have an ActionView with menu item on ActionBar (using ActionBarSherlock ), I'm able to display an EditText as a search field in it. It's an input to launch another Activity with a CustomView in ActionBar which it displays the same layout (I don't use anything to force the SoftKeyboard to appear in this second activity, there is no problem here). When I want to make the Soft Keyboard appears/disapears automatically when the view collapse in first activity, I use: openKeyboard method mImm

Recyclerview not scrolling to end when keyboard opens

半城伤御伤魂 提交于 2019-11-28 04:28:48
I am using recylerview in my application and whenever new element is added to recyclerview, it scrolls to last element by using recyclerView.scrollToPosition(adapter.getCount()); But, whenever keyboard opens(because of editTextView), it resizes the view and recyclerview gets smaller, but couldn't scroll to last element. android:windowSoftInputMode="adjustResize" I even tried to used the following code to scroll to last element, but it didn't work editTextView.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if(hasFocus)