I'm developing following layout.
When keybaord is displayed, the UI is resized to available space (state 'A'). When keybaord hides, the UI again resizes to fill the entire screen (state 'B'). But there is a visible lag in UI when going from state 'A' to state 'B'. Is there any way to avoid this lag or provide smooth resize.
UPDATE: I'm using android:windowSoftInputMode="adjustResize"
in manifest for this activity. The given screenshot is actually a sample. My actual layout contains more complex layout which may be causing the lag on resize, but this one completely describes my issue. Is there a way to implement animated resize UI keyboard hide? Any help will be highly apreciated.
in your manifest file under activity tag just add:
android:windowSoftInputMode="adjustpan"
will solve your problem!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With