I have often read that it is slower to use a layout file than to code it.
My example is a panel with 15 components in it. (Label,buttons, etc..)
If I used LazyLoading now, fast scrolling would be a problem.
Would it be a good idea to grab the layout file in a panel at startup and then load that panel instead of referencing the layou file? How can you speed up the process? Building the layout by code would be a massive amount of time.
I have try last week to implement LazyLoading in to my project, this works fine. But if i scroll fast, had the list performance problems. And this on a Oneplus 6 with 8GB RAM and a Snapdragon 845. I think it was because of that. The list was just 20 items long.
No, Seems like I made a mistake while building. I have test it, i made the imageViews big in the example project and then i have Blurred the image, but the list scrolls smooth.
No, Seems like I made a mistake while building. I have test it, i made the imageViews big in the example project and then i have Blurred the image, but the list scrolls smooth.
You can also improve performance considerably even more by using Picasso for ImageViews.
When LoadLayout is used just add holder bitmap and let the Picasso load real bitmap asynchronously.
If you decide to use Picasso with "lazy loading" remember to use Picasso method "cancelRequest" when removing not visible panels.