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)
Asked
Active
Viewed 1.8k times
1 Answers
33
Try this:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);

Alejandro Martínez Martínez
- 2,038
- 1
- 18
- 29