B4A Class Grid Class - PreoptimizedCLV

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

  • PreoptimizedCLVWithImages.zip
    13.5 KB · Views: 984
Last edited:

woniol

Active Member
Licensed User
Longtime User
Hi,
A bit off topic but what kind of menu is used in your example?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1586843763413.png


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.

Better implementation based on SMM: https://www.b4x.com/android/forum/t...rk-for-images-videos-and-more.134716/#content
 

Attachments

  • PreoptimizedCLVWithImages.zip
    13.5 KB · Views: 1,535
Last edited:
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