Input Window Adjust Resize - Android User Interface

Android examples for User Interface:Window

Description

Input Window Adjust Resize

Demo Code


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

import android.view.WindowManager;

public class Main {

    public static void InputAdjustResize(Activity act) {
        act.getWindow().setSoftInputMode(
                WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
    }/*  w  w w .jav  a  2 s  .  c  o  m*/
}

Related Tutorials