Linked Questions

4374 votes
132 answers
1.9m views

I have an EditText and a Button in my layout. After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching outside the keyboard. Can someone provide a ...
-1 votes
1 answer
62 views

public static void hideKeyboard(Activity activity) { InputMethodManager imm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE); View view = activity....
Harshil kakadiya's user avatar
88 votes
6 answers
53k views

I'm new to Android. I've spent two hours already for searching. Whatever i try softkeyboard is never shown for my EditText. I create it simply: EditText editText = (EditText)findViewById(R.id....
Andrey Chernukha's user avatar
89 votes
7 answers
97k views

In my view, I have a search EditText and I would like to trigger programmatically the behaviour of a click event on the field, i.e give focus to the text field AND display soft keyboard if necessary (...
sdabet's user avatar
  • 19.2k
52 votes
10 answers
67k views

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" ...
Foenix's user avatar
  • 991
31 votes
7 answers
31k views

I have a Fragment (the compatibility version) with an EditText in its layout. I'm using a ViewFlipper to flip between fragments. When I get to this particular Fragment, the soft keyboard opens up ...
Mike T's user avatar
  • 4,795
12 votes
2 answers
9k views

I have an EditText in my Activity. As soon as the Activity starts I force the soft keyboard to open using. InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);...
Vibhuti's user avatar
  • 704
10 votes
3 answers
5k views

Problem: I want to hide the keyboard when the button "Add" is pressed. There are two EditText on the screen. The keyboard doesn't appear at starting the activity, which is good, but it doesn't go ...
Ayushi Jha's user avatar
  • 4,023
18 votes
5 answers
392 views

I'm trying to close the softkeyboard that is opened in another app. I tried every solution from here: Programmatically Hide/Show Android Soft Keyboard or here: Close/hide the Android Soft Keyboard As ...
Tazz's user avatar
  • 811
4 votes
4 answers
11k views

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 ...
user2903200's user avatar
2 votes
1 answer
5k views

I have an activity that only has a EditText. I want the soft keyboard to show up automatically. How can I do this?
Sheehan Alam's user avatar
  • 61.1k
6 votes
1 answer
3k views

I have extended AlertDialog with my class that displays my XML layout. I don't use AlertDialog's standard buttons, I have my own OK and Cancel buttons. Listener for them calls dismiss(). The problem ...
Violet Giraffe's user avatar
1 vote
4 answers
2k views

I have an EditText in my activity class. What I want is, whenever my activity starts it automatically opens the input keyboard along with EditText. So how that can be done? Please anyone suggest it to ...
AndroidDev's user avatar
  • 4,559
1 vote
4 answers
2k views

When my app starts, I loaded some text inside EditText which cannot be edited by the user, until click 'menu' and select 'edit text'. The initial xml looks like the below: <EditText android:id=...
Bruce's user avatar
  • 2,618
1 vote
1 answer
2k views

I have tried so many ways but I just can't get the display any Keyboard in my activity. Keyboard just doesn't show!!! I have button in my activity that when clicked calls the method below which ...
vallllll's user avatar
  • 2,761

15 30 50 per page