set Soft Input Adjust Pan - Android android.view.inputmethod

Android examples for android.view.inputmethod:InputMethodManager

Description

set Soft Input Adjust Pan

Demo Code

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.WindowManager;

public class Main{

    public static void setSoftInputAdjustPan(Activity context) {

        context.getWindow().setSoftInputMode(
                WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
    }/*from w w w.  j  ava2  s . c  om*/

}

Related Tutorials