How to move the layoutFragment up when the soft keyboard is shown in android? -


i have page :

enter image description here

but when open softwarekeyboard can't see other edittext. can do?

enter image description here

notice : use below code not worked .and class extends fragment!

getactivity().getwindow().setsoftinputmode(windowmanager.layoutparams.soft_input_state_visible|windowmanager.layoutparams.soft_input_adjust_resize); 

there 2 ways either can use in manifest activity

it work ,the adjust-pan flow surface upward , open soft keyboard

getactivity().getwindow().setsoftinputmode(windowmanager.layoutparams.soft_input_adjust_pan);

<activity android:name="xxxactivity" android:windowsoftinputmode="adjustpan">  </activity>


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -