dextorer / BuildingForAndroidTV

Code for the "Building for Android TV" series of articles.
https://medium.com/@rotxed
MIT License
104 stars 59 forks source link

Picasso fast scrolling #9

Open olealgoritme opened 9 years ago

olealgoritme commented 9 years ago

Hi,

Testing to load 10 rows of 100 CardPresenters, it gets very laggy when fast scrolling even on very powerful android boxes.

Picasso v 2.4 has pauseTag() and resumeTag() made for this exact purpose. Their sample app uses a AbsListView onScrollListener and pauses/resumes the picasso bitmap loading in (fast) scroll mode.

Any way to implement this with leanback and your CustomRowFragment?

dextorer commented 9 years ago

Hi @thailemon ,

are you using 'episode 4' as a base for your project? If not, I suggest you to switch to that / update the components manually, since lot of things has changed in the Leanback demo project.

Also, I'm trying to write a library that offers a CustomBrowseFragment that works sort of out of the box.

olealgoritme commented 9 years ago

That's awesome! Yes I'm using the updated version with the changes :) But with fast scroll through a very large row it's at times very laggy. Have you had this issue?

dextorer commented 9 years ago

Yes, the issue is confirmed. But before I investigate it I would rather try and have something working for the library.

dextorer commented 9 years ago

As promised, here goes the library! https://github.com/dextorer/Sofa