Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

android dismiss keyboard

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);
Comment

close keyboard android

public static void hideSoftKeyboard(Activity activity) {
    InputMethodManager inputMethodManager = 
        (InputMethodManager) activity.getSystemService(
            Activity.INPUT_METHOD_SERVICE);
    inputMethodManager.hideSoftInputFromWindow(
        activity.getCurrentFocus().getWindowToken(), 0);
}
Comment

PREVIOUS NEXT
Code Example
Java :: changer version java terminal 
Java :: java 8 find in list by property 
Java :: hello world in different programming languages 
Java :: convert array of int to arraylist java 
Java :: odd number in java 
Java :: java for 
Java :: instantiate optinal java 8 
Java :: java zip file 
Java :: frequency of each element from list in java 
Java :: transformer un string en double java 
Java :: java return tuple 
Java :: android add activity parent manifest 
Java :: image cropper implementation 
Java :: How to print in console java 
Java :: break java 
Java :: priority scheduling in java 
Java :: implement the bubble sort algorithm on the following arraylist 
Java :: java get random 
Java :: java replaceAll ignore case 
Java :: Duration class java 
Java :: how to close a jframe in netbeans 
Java :: Send image file to server useing Retrofit 
Java :: java arraylist declaration 
Java :: load a list from text file java 
Java :: java hash password 
Java :: AndroidManifest.xml could not be found. 
Java :: boucles java 
Java :: spring websocket allow origin 
Java :: java replace element in list 
Java :: final in java 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =