adjust Soft Input Size - Android android.view.inputmethod

Android examples for android.view.inputmethod:InputMethodManager

Description

adjust Soft Input Size

Demo Code

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);
  }//from www.j a va 2  s  .  c  om

}

Related Tutorials