is Soft Input Showed - Android User Interface

Android examples for User Interface:Input Method

Description

is Soft Input Showed

Demo Code


//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
}

Related Tutorials