3

problem :When i click editext in popup , the layout of the screen moves up.

Here original layout, enter image description here

After Clicking editext in popup, enter image description here

I have to search and get the solution . but this is only suitable for activity. Im using fragemt so how can i solve my issues,

    android:windowSoftInputMode="stateVisible|adjustResize" 
Arun
  • 65
  • 4

1 Answers1

2

Try this in your fragment class,

getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
AskNilesh
  • 63,753
  • 16
  • 113
  • 150
Ana
  • 164
  • 2
  • 10