html5 - When the H5 page keyboard in android is retracted, there is a blank delay below
怪我咯
怪我咯 2017-05-16 13:31:09
0
1
682

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.

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
Ty80

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template