developing_android
developing_android

Reputation: 189

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?

Upvotes: 4

Views: 931

Answers (1)

developing_android
developing_android

Reputation: 189

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

Upvotes: 10

Related Questions