Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is navigation drawer lagging at the first open?

If I open up the navigation drawer in my app for the first time, it doesn't slide out, it waits and then shows it nearly full pulled out. Closing it and reopen the drawer shows normal sliding behaviour.

If I replace my drawer header backgroung image with just a color, it slides out like expected. My background image is a small JPG picture with about 50 KB.

How can I use a drawer header background picture without having the drawer lag at first open it?

like image 955
developing_android Avatar asked Dec 25 '22 10:12

developing_android


1 Answers

Problem was that I had put the image into drawable folder. I moved it to drawable-xxxhdpi and any drawer lags have been solved.

like image 51
developing_android Avatar answered Jan 09 '23 11:01

developing_android