Here you can find the source of showKeybaord(View view)
Parameter | Description |
---|---|
view | Current View being edited by keybaord |
public static void showKeybaord(View view)
//package com.java2s; //License from project: Apache License import android.content.Context; import android.view.View; import android.view.inputmethod.InputMethodManager; public class Main { /**//from w ww. j av a 2 s . c om * Show the soft keyboard * * @param view Current View being edited by keybaord */ public static void showKeybaord(View view) { Context context = view.getContext(); InputMethodManager imm = (InputMethodManager) context .getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, 0); } }