Arun
Arun

Reputation: 65

Trouble in design when click the edittext in popup?

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" 

Upvotes: 3

Views: 33

Answers (1)

Ana
Ana

Reputation: 194

Try this in your fragment class,

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

Upvotes: 2

Related Questions