10

Is there a way to programmatically change the value of an activity's windowSoftInputMode? I want to set it to adjustResize in one view, and to not resize on another view (Both the views in the same activity)

Bonton255
  • 2,231
  • 3
  • 28
  • 44
  • 3
    http://stackoverflow.com/questions/6138330/is-there-any-way-to-change-androidwindowsoftinputmode-value-from-java-class – Yuraj Aug 26 '14 at 09:53

1 Answers1

33

Try this:

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);