Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UI Rezising Lags when Keyboard gone

I'm developing following layout.

enter image description here

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.

like image 801
Ammar Avatar asked Nov 01 '22 21:11

Ammar


1 Answers

in your manifest file under activity tag just add:

 android:windowSoftInputMode="adjustpan"

will solve your problem!!

like image 104
Pankaj Arora Avatar answered Nov 11 '22 04:11

Pankaj Arora