Android IMEI Hide hide(Context ctx, EditText edit)

Here you can find the source of hide(Context ctx, EditText edit)

Description

hide

Declaration

public static void hide(Context ctx, EditText edit) 

Method Source Code

//package com.java2s;
import android.content.Context;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;

public class Main {
    public static void hide(Context ctx, EditText edit) {
        ((InputMethodManager) ctx//from   w  ww . j a v a  2  s.  c o  m
                .getSystemService(Context.INPUT_METHOD_SERVICE))
                .hideSoftInputFromWindow(edit.getWindowToken(), 0);
    }
}

Related

  1. hideSoftInput(Activity activity)
  2. hideKeyboard(Context context)