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.
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