mercredi 6 mai 2015

ViewPager with TextView lag

I have a ViewPager with a custom layout. This ViewPager has been created following Google/Android documentation and rules.

This layout contains two images (one small icon and optimized image) and many TextView.

I've noticed that ViewPager lags sliding between pages even without populate data. I mean, I've tried only displaying the layout with empty TextViews and slide still lags.

All resources are saved in the relative drawable folder (drawable-xhdpi, drawable-mdpi etc).

How can I do to reduce lags? It could be a problem related to TextViews?

Aucun commentaire:

Enregistrer un commentaire