adjust Soft Input - Android User Interface

Android examples for User Interface:Input Method

Description

adjust Soft Input

Demo Code


//package com.java2s;

import android.app.Activity;

import android.view.*;

public class Main {

    public static void adjustSoftInput(Activity activity) {
        activity.getWindow().setSoftInputMode(
                WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
    }//from ww w.  ja v a 2  s .  co  m
}

Related Tutorials