B4A Class Grid Class - PreoptimizedCLV

scsjc

Well-Known Member
Licensed User
Grid using Erel sample code based on PreoptimizedCLV -> https://www.b4x.com/android/forum/threads/grid-class-preoptimizedclv.116309/#post-726808

Example applied on F1, Work very nice:




The idea of this class is to be able to load in a 3 column Grid (customizable) a long list of url images, and to be able to customize all the labels panels etc...

This class is based on the code:
https://www.b4x.com/android/forum/t...-imageviews-and-many-rows.101431/#post-636920

It works quite well, but when you do the VisibleRangeChanged it loads the images, and this process takes longer than I would like. I have not managed to refine it more. I invite anyone who can think of ideas and modifications to improve this grid.

I hope someone is encouraged to improve it and to have a Grid Class that works smoothly, and that can be customized.
 

Attachments

Last edited:

scsjc

Well-Known Member
Licensed User
View attachment 91824

My implementation based on PreoptimizedCLV is attached.
I'm not sure that building a "grid" library will be very useful as each app will have different requirements and implementing such grid is very simple.
Nothing to object, my idea is only a draft in front of its great simple code. Wonderful.
 
Grid using Erel sample code based on PreoptimizedCLV -> https://www.b4x.com/android/forum/threads/grid-class-preoptimizedclv.116309/#post-726808

Example applied on F1, Work very nice:




The idea of this class is to be able to load in a 3 column Grid (customizable) a long list of url images, and to be able to customize all the labels panels etc...

This class is based on the code:
https://www.b4x.com/android/forum/t...-imageviews-and-many-rows.101431/#post-636920

It works quite well, but when you do the VisibleRangeChanged it loads the images, and this process takes longer than I would like. I have not managed to refine it more. I invite anyone who can think of ideas and modifications to improve this grid.

I hope someone is encouraged to improve it and to have a Grid Class that works smoothly, and that can be customized.
Can you please post your sample code?
 
Top