Android Keyboard Show showKeyboard(View view)

Here you can find the source of showKeyboard(View view)

Description

Shows the keyboard.

Parameter

Parameter Description
view a parameter

Declaration

private static void showKeyboard(View view) 

Method Source Code

//package com.java2s;
import android.content.Context;

import android.view.View;

import android.view.inputmethod.InputMethodManager;

public class Main {
    /**/*w  w w . j av a  2s .  c o m*/
     * Shows the keyboard.
     * @param view
     */
    private static void showKeyboard(View view) {
        Context context = view.getContext();
        InputMethodManager imm = (InputMethodManager) context
                .getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,
                InputMethodManager.HIDE_IMPLICIT_ONLY);
    }
}

Related

  1. showKeybaord(View view)
  2. showKeyboard(Context ctx)
  3. showKeyboard(EditText editText)
  4. showInputMethod(final View anyView)