Linked Questions
35 questions linked to/from How to show soft-keyboard when edittext is focused
13 votes
5 answers
45k views
force soft keyboard to show when EditText gets focus [duplicate]
I have an EditText that I am passing focus to programmatically. But when I do, I want the keyboard to show up as well (and then go down when that EditText lose focus). Right now, the user has to click ...
1 vote
0 answers
63 views
Hide soft keyboard works for one EditText but does not work properly for the other [duplicate]
I have two EditText in my actvity_main, clicking on it I want to disable the soft keyboard of the android. To achieve this functionality, I was following this link. The two EditText has following id ...
496 votes
30 answers
419k views
Android: How do I prevent the soft keyboard from pushing my view up?
I have a vertical sliding drawer at the bottom of my app. When the soft keyboard opens, it pushes the tab for the drawer up, so it sits atop the keyboard. I actually want it to remain at the bottom of ...
379 votes
33 answers
358k views
Android: show soft keyboard automatically when focus is on an EditText
I'm showing an input box using AlertDialog. The EditText inside the dialog itself is automatically focused when I call AlertDialog.show(), but the soft keyboard is not automatically shown. How do I ...
240 votes
21 answers
311k views
How can I set the focus (and display the keyboard) on my EditText programmatically
I have a layout which contains some views like this: <LinearLayout> <TextView...> <TextView...> <ImageView ...> <EditText...> <Button...> </linearLayout> How ...
229 votes
18 answers
461k views
Set Focus on EditText
I have an EditText-Field and set an OnFocusChangeListener for it. When it has lost focus, a method is called, which checks the value of the EditText with one in the database. If the return-value of ...
172 votes
6 answers
90k views
Android: What is android.R.id.content used for?
Anybody could explain the meaning of "android.R.id.content" ? How is it being used ? http://developer.android.com does not have any explanation. public static final int content Since: API ...
52 votes
10 answers
67k views
Show keyboard automatically
Please explain me the issue about soft keyboard. For example, I have an EditText on my activity or dialogfragment or fragmentactivity, whatever. here it is: <EditText android:id="@+id/edPswrd" ...
58 votes
8 answers
90k views
Android: Resize only parts of view with soft keyboard on screen
I have a view with a Edittext field on top of an ImageView. When the keyboard comes up I want the window to resize so that EditText is no longer hidden by the keyboard. In the AndroidManifest file I ...
15 votes
9 answers
6k views
Get input text with customview without edittext android
I have created customview. Whenever user double taps on the view it should display the keyboard and user can draw new Text. Holder is a customview which extends view. But it's showing the keyboard. ...
4 votes
4 answers
11k views
Android : show keyboard in edittext
Am stuck with a pretty simple issue in the Android App am coding. I have a list of EditText objects, one in each row. When the user long presses the EditText, I need to show the keyboard. When the ...
8 votes
2 answers
7k views
How Show soft keyboard automatically when EditText receives focus
I want show keyboard when my EditText receives focus. I tried many methods but nothing not helped. I tried: 1. InputMethodManager imm = (InputMethodManager) getSystemService(Context....
1 vote
2 answers
4k views
Select EditText programmatically in Android
I'm new in Android and I can't select an EditText programmatically. My scenario. I have a lot of EditText, but only one is enable, I'll calling it A. The user write in this EditText A with the ...
1 vote
1 answer
3k views
Cannot resolve symbol showsoftinput
I'm trying to force the numeric keypad to show when my activity and EditText load. It seems there's a pretty straightforward answer given here and elsewhere: you say EditText yourEditText= (EditText) ...
5 votes
1 answer
6k views
Android onkey - dispatchKeyEvent not firing
well, I've tried all the solutions I could find on stackoverflow and in other places, but the end result hasn't changed one bit: the only key that triggers the onKey event or the dispatchKeyEvent is ...