Trouble in design when click the edittext in popup?

Viewed 27

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" 
1 Answers

Try this in your fragment class,

getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
Related