android - How to keep background image size when software keyboard show -
when software keyboard shows, resizes layout , squeezes background image together. question duplicate of question, explained in way:
software keyboard resizes background image on android
however, question closed when found hack solve it. cannot use hack. entire layout inside scrollview, , need able use scrollview @ times. using android:windowsoftinputmode="statevisible|adjustpan" user not able scroll down , see bottom of screen while keyboard showing, since layout partly exist behind keyboard. solution unacceptable me. there better solutions out there?
cheers,
i ran similar problem not long ago. stumbled upon correct answer bit of work, though.
in android manifest project, attached specific activity using, use line android:windowsoftinputmode="adjustpan|statevisible"
in activity tag.
adjustpan
means activity not resize fit soft keyboard, , statevisible means soft keyboard show when requested (this can statealwaysvisible
, etc if necessary)
source : android dev activity tags
Comments
Post a Comment