Android examples for User Interface:Input Method
hide Input Panel
//package com.java2s; import android.app.Activity; import android.view.inputmethod.InputMethodManager; public class Main { public static void hideInputPanel(Activity activity) { InputMethodManager imm = (InputMethodManager) activity .getSystemService(Activity.INPUT_METHOD_SERVICE); if (imm.isActive()) { imm.hideSoftInputFromWindow(activity.getCurrentFocus() .getApplicationWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); }/* w w w. jav a 2 s . c o m*/ } }