Questions tagged [android-softkeyboard]

The default onscreen input method provided by Android OS.

Android Soft Keyboard is the onscreen keyboard provided by Android OS.

Key Events of Android soft keyboard

On-screen Input Methods in Android Developers blog

2751 questions
1
vote
2 answers

Hide keyboard when checkbox in ListView is clicked

I currently have ListView where each Item has a TextView and a CheckBox. On top of the ListView is an EditText to search the ListView. When a user has searched something and clicks one of the CheckBoxes or scrolls in the list of given results, I'd…
Frederick Eskens
  • 386
  • 3
  • 20
1
vote
0 answers

why isn't my editText.requestFocus(); working?

When my app starts the soft key board loads up by default. I do this with final EditText editText = (EditText) findViewById(R.id.editText); editText.requestFocus(); in my onCreate method. In my XML my editText has android:inputType="phone", so…
CHarris
  • 2,693
  • 8
  • 45
  • 71
1
vote
2 answers

Android: What is the KeyEvent.KEYCODE for "?123" key on soft keyboard?

I want to press "?123" key programmatically. But I don't know the KEYCODE for this symbol. And I also unable to find it. Can anybody know the KEYCODE for "?123" symbol on Soft Keyboard.
Mohit Chauhan
  • 455
  • 1
  • 10
  • 20
1
vote
0 answers

share image with host application from keyboard

I want to share images from my keyboard application with the host app. For example if the user is using hangouts then I want to share an image with hangouts only. If the user is using FB Messenger then I want to share image with facebook messenger.…
MegaX
  • 596
  • 2
  • 11
  • 23
1
vote
0 answers

AdView gets over the keyboard when it is called

In my MainActivity there are some EditTexts. The first one is focusable and I made the keyboard to appear automatically with this command in onCreate: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); It is the only…
1
vote
1 answer

Clear focus of AutoCompleteTextView on soft keyboard close

I have a simple AutoCompleteTextView in linear layout. I couldn't detect the keyboard close event. How to remove the focus of AutoCompleteTextView if soft keyboard is closed(Either finished editing or stopped editing without any text). Need simple…
1
vote
2 answers

Change System Back Button Orientation

I'm currently develop my activity, when you click on the back button, instead of slide down the keyboard, it will exit the activity (the normal back button behaviour). This is good. Now, the problem I have is, the System Back Button (on Nexus…
Elye
  • 53,639
  • 54
  • 212
  • 474
1
vote
2 answers

trouble with code to change the state of my Edittext when using soft keyboard

I have my editText set to height and width of 0dp with this code :
CHarris
  • 2,693
  • 8
  • 45
  • 71
1
vote
0 answers

Android Softkeyboard Listener in Webview

I built a very simple app that just consists of a webview of a website. On my onCreate I am calling the following Fullscreen function: getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | …
Stef
  • 644
  • 1
  • 8
  • 25
1
vote
5 answers

How do I show the Phone Input softkeyboard when my activity starts?

Between the Activity tags in my AndroidManifest.xml I have : android:windowSoftInputMode = "stateVisible" So when my activity starts the soft keyboard comes up: Is there not something I can add to make the phone input keyboard come up instead? Or…
CHarris
  • 2,693
  • 8
  • 45
  • 71
1
vote
2 answers

Hide keyboard when Entry gets focus

Situation I have an Android app that uses an external keyboard and want to hide the soft keyboard when an Entry control gets focus. Reference Following this android documentation it states the following: Note: If the user's device has an attached…
Ignacio Gómez
  • 1,587
  • 4
  • 23
  • 41
1
vote
0 answers

emojii sofkeyboard without drawable

I implemented the ankushsachdeva_project to display emojii in my SoftKeyboard. Is there a way to modify this library to display the unicode character in the popup (edittext) instead of the corresponding drawable? I want to do this so that every…
1
vote
1 answer

how do i override the softkeypad backspace longpress functionality in android

I want to implement my own method when the user longpresses the backspace key (KEYCODE_DEL) in softkeypad in android. So far I have done the following, But it's not working. public class CustomEditText extends EditText{ private Random r = new…
Pardeep Kr
  • 479
  • 2
  • 6
  • 25
1
vote
3 answers

Android fixed background image in scrollview while scrolling

I have a situation where I need a scrollview to have a background image that shouldn't scroll along with it's parent when moving. Before any of you suggest me the links for setting background image and this that, I have already tried and it's not…
Saqib
  • 1,120
  • 5
  • 22
  • 40
1
vote
1 answer

How to keep keyboard open on focus change, but not close and re-open

I have this OnFocusChangeListener: View.OnFocusChangeListener onFocusChangeListener = new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { InputMethodManager myIMM =…
Julián
  • 101
  • 1
  • 12