Input Window Hide - Android User Interface

Android examples for User Interface:Window

Description

Input Window Hide

Demo Code


//package com.java2s;
import android.app.Activity;

import android.view.WindowManager;

public class Main {

    public static void InputHideBySer(Activity act) {
        act.getWindow().setSoftInputMode(
                WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
    }/* w  w w . ja  v  a  2 s  . c o  m*/
}

Related Tutorials