Android examples for User Interface:Input Method
is Soft Input Showed
//package com.java2s; import android.app.Activity; import android.view.WindowManager; public class Main { public static boolean isSoftInputShowed(Activity context) { int softInputMode = context.getWindow().getAttributes().softInputMode; return softInputMode == WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED; }//www . j av a 2 s .c om }