search

Home  >  Q&A  >  body text

html5 - When the H5 page keyboard in android is retracted, there is a blank delay below

This page is an H5 page embedded in the APP. Click on the street search box in the picture, and an input box will appear below. This input box must be native to the mobile phone. Then click the Cancel button, the area originally occupied by the input box will be blank for about half a second, and then return to its original state. I would like to ask if there is any way to improve it so that the original content can be displayed immediately after the input box below disappears.

怪我咯怪我咯2785 days ago696

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 13:33:09

    When defining this activity in the manifest, try setting android:windowSoftInputMode to adjustPan. The default value of android:windowSoftInputMode is adjustResize. At this time, when the keyboard appears, it will be re-layout and the content will be pushed up. AdjustPan will only cover it and will not be re-layout.
    You can see the official Android document android:windowSoftInputMode

    reply
    0
  • Cancelreply