Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve Soft keyboard Show/hide working slow?

i have use Edittext in ViewPager>Fragment>NestedScrollView>RecyclerView>Edittext

when i show/hide keyboard it take too many time to show/hide and also show me white background. i all things use like AdjustResize,AdjustPan

enter image description here

after close keyboard show white background like bellow

enter image description here

please help me for resolve this issues

like image 209
Adil Saiyad Avatar asked Oct 21 '25 11:10

Adil Saiyad


1 Answers

I think this performance issue is due to complex hierarchy of your screen. Try to set android:windowSoftInputMode="adjustNothing".

If glitch will gone try to simplify hierarchy

For example in ViewPager>Fragment>NestedScrollView>RecyclerView>Edittext

Remove NestedScrollView (reuse RecyclerView behaviour or use Airbnb Epoxy library)

PS: also check what application not perform heavy tasks when you focus this field

like image 150
Peter Staranchuk Avatar answered Oct 23 '25 00:10

Peter Staranchuk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!