Java tutorial
//package com.java2s; import android.app.Activity; import android.view.WindowManager; public class Main { public static void adjustSoftInput(Activity activity) { activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); } }