android-softkeyboard

How to scroll an EditText to the very top of the layout?

百般思念 提交于 2019-12-11 00:47:06
问题 So I have this layout with some ChipsInput inside a scrollview and I simply want these to go to the very top when the keyboard is activated I've tried to change windowSoftInputMode to adjustPan and others but it does not make it to go to the very top, just doesn't cover it. Here's my xml layout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id

scrolling in scrollview inside a fragment in ViewPager with soft keyboard visible

我只是一个虾纸丫 提交于 2019-12-11 00:33:50
问题 I use a ViewPager and inside the first fragment of the ViewPager I have a another fragment that is parenting a sub fragment with ScrollView in it. to make it more visual: ┌------------┐ | 1 | 1 is the ViewPager fragment | ┌---------┐| | | 2 || 2 is the fragment inside ViewPager fragment | |┌-------┐|| | ||3 ||| 3 is the sub fragment containing the ScrollView with EditText form | ||form ||| | ||here ||| | || ||| | |└-------┘|| | └---------┘| └------------┘ problem: the view adjust but the

Hide soft keyboard for editText focus/touch

孤人 提交于 2019-12-10 23:32:44
问题 I am trying to hide the soft keyboard from showing when an EditText either receives focus or a touch event. I want the EditText to be editable - there will be text in the EditText, so I want the EditText to respond to a touch event so the cursor is positioned, but I will have dedicated buttons for editing rather than using the soft keyboard. I can't get this to work - the soft keyboard seems to pop up on both focuschange and touch events. I have reduced the code to the following:

Hide virtual keyboard always

独自空忆成欢 提交于 2019-12-10 23:15:10
问题 Actually i have a edit text.when i click edit text virtual keyboard popups.But i just wanna hide virtual keyboard always even after click on edit text.And edit text should be printable with system keyboard.How could i do this? My code.. EditText edtNote = (EditText)findViewById(R.id.note); InputMethodManager imm = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE); imm.restartInput(edtNote); Configuration config = this.getResources().getConfiguration(); if (config

How to make delete key- delete all selected edit text in custom android keyboard

痞子三分冷 提交于 2019-12-10 23:06:03
问题 I am creating custom android keyboard and I want delete key to delete all the edit text if they are selected. i.e, when text is selected, clipboard(cut,copy,paste comes up); in that mode , if the delete key is pressed, it should delete all. It doesn't currently. P.S don't tell me for a specific edit text, it is a custom keyboard, it won't have access to edit text. 回答1: I don't see why it won't. In the keyboard, I created, I just send out the delete key event and it works like a charm. Try the

Show SoftKeyboard in landscape but not entire screen

五迷三道 提交于 2019-12-10 22:18:10
问题 Im trying to achieve something like this image: the problem its when im on landscape and put a searchbar like the image, the soft keyboard cover all screen,and i want the behavior like the image i tried android:windowSoftInputMode="adjustPan|adjustResize" and seems isnt working,at least on jelly bean. any ideas? Thanks 回答1: i found the solution, in imeOptions of EditText, so i used android:imeOptions="flagNoFullscreen" so the screen now its in middle :) <EditText android:id="@+id/txt_search"

Soft-keyboard makes the cordova-view shrink

自古美人都是妖i 提交于 2019-12-10 19:48:18
问题 In my cordova-powered app I disabled the zoom. Though on a page with an input field, if the soft-keyboard shows-up, the view gets automatically zoomed to include the whole page: when the soft-keyboard disappears, the page remains zoomed. How to get rid of this zooming? I took a look at softkeyboard plugin but it didn't give me any hints... 回答1: found an answer myself. I had to add the windowSoftInputMode attribute to make it work: <activity android:configChanges="orientation|keyboardHidden

Show the softkeyboard with only alphanumeric keys?

匆匆过客 提交于 2019-12-10 17:10:37
问题 Is it possible? I would like to show the keyboard with the bare basic alphabetic and numeric buttons, no settings key or smiley key or anything like that, just the letters, numbers, space, done, and shift etc. I swear I happened to catch an article about how to set the keyboard in this mode months ago, but I can't find it now! I looked at the possible values for android:inputType & android:windowSoftInputMode but I can't see anything that would help. What am I missing? Update The software is

change the keyboard layout after a button click

微笑、不失礼 提交于 2019-12-10 16:45:54
问题 I'm developping an android app , and i have an EditText and a two RadioButtons ( A and B ), what i'm trying to do is : When RadioButton A is checked , i want to change the keyboard layout to display it with the Done button , When the RadioButton B is checked, i want to change the keyboard layout to display it with the Search Button . I've tried to change the IMEOptions of my EditText like this , but it still doesn't work : NB : the keyboard is already visible, what i want to do is just modify

How can I have both a return and a done keys in an EditText's softkeyboard?

左心房为你撑大大i 提交于 2019-12-10 15:54:56
问题 how can I have both a "done" (close the softkeyboard) and a "return" (line break) keys in my softkeyboard (Samsung Galaxy 10.1, Android 3.1, portrait mode) when writing in an EditText? Using <EditText android:id="@+id/comment" android:layout_width="772dp" android:layout_height="200dp"/> I get Thanks 回答1: That may depend on the application and what you mean by 'done'. But, the KeyCode DPAD_UP and _DOWN ("arrow keys") will normally move the cursor to the next EditText. 来源: https://stackoverflow