How to move the layoutFragment up when the soft keyboard is shown in android? -
i have page :
but when open softwarekeyboard
can't see other edittext
. can do?
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
Post a Comment