0

enter image description hereI want to achieve the functionality shown in the image. Let me explain the scenario in details.

I have a main activity and several fragments. what I want is when the keyboard is open the activity will remain same (will not resize) but the fragment will change its height and will be shown above the keyboard.

I have tried to do this using android:windowSoftInputMode="adjustResize" and android:windowSoftInputMode="adjustPan" for activity and getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); in onCreateView of the fragment. But its not working properly. I am getting this.enter image description here

is there any way to solve this?

Masudul Hasan
  • 137
  • 2
  • 17

0 Answers0