B4A Tutorial [B4X] [XUI] CustomListView - lazy loading / virtualization - Erel    
Nov 16, 2023   
(40 reactions)), content), "")
Next
Log("Loading cards took: " & (DateTime.Now - n... empty cells and only load the items when they become visible:
Global type:
Type CardData (Title...)
CLV1.Add(p, cd)
Next
Log("Loading cards took: " & (DateTime.Now - n) &... CreateItem from the original example
p.LoadLayout("Card1")
lblTitle..., lblAction2.TextColor)
ImageView1.SetBitmap(xui.LoadBitmapResize(File.DirAssets, cd...
B4A Library [B4X] PreoptimizedCLV - Lazy loading extension for xCustomListView - Erel    
Aug 28, 2025   
(44 reactions) loading is explained here: https://www.b4x.com/android/forum/threads/b4x-xui-customlistview-lazy...-basics-creating-long-lists-using-xcustomlistview-with-lazy-loading-newer-developers.114096/#content...
link: Updates:
PCLV_Example1 is based on B4XPages and is cross platform....
link: v1.21 - Fixes an issue with horizontal orientation in B4i....
link:
I tried to explain the first example(of the first post) in following tutorial:
Great job!...
B4A Tutorial [B4X] RandomUser API - SMM + lazy loading list + DDD - Erel    
Oct 15, 2025   
(16 reactions)167847
Cross platform example of showing a list of users, retrieved from https://randomuser.me/
The API returns a list with the data of 150 random users. The list is parsed and added to a lazy loaded CLV. The images are downloaded using SMM. Note the usage of the useful DDD (https://www.b4x.com/android/forum/threads/b4x-dse-designer-script-extensions.141312/#content) and the call to DDD....LoadLayout("UserCard")
Dim user As UserData = CustomListView1.GetValue(i)
dd...
B4A Question Applying Lazy Loading to xCustomListView with Imageviews Bitmap Files - Mahares    
Jan 9, 2019   
(1 reaction)I am not sure I am Applying Lazy Loading effectively in xCustomListView with Imageviews. The xCLV...). The bitmap files to load the imageviews range from 5 to 11 KB in size each. Here is the majority...,"p6.jpg")
Activity.LoadLayout("layMain") 'has CustomListView1 only... name
p.SetLayoutAnimated(0, 0, 0, CustomListView1.AsView.Width, 130dip)
p.LoadLayout...).SetBitmap(xui.LoadBitmapResize(File.DirAssets, f, iv(j).Width, iv(j).Height, False))
Dim cd...
B4A Tutorial ✅ Part 2 Examples - Creating long lists using xCustomListView with Lazy Loading - Newer developers - Peter Simpson    
Apr 28, 2020   
(55 reactions)Hello All,
If you're not experienced with using xCustomListView (xCLV) with Lazy Loading (LL... find useful, one such useful link is about LL (Lazy loading). Even though the links...
link: hello ,Peter. I'm from china.
i can't download the example code,can you send it to my email?...
link: probably one of the most important B4A post in this great community! Absolutely in line with some of...
link:
Please download from: github
You're a genious Thank you so much!...
B4A Tutorial ✅ Part 1 Basics - Creating long lists using xCustomListView with Lazy Loading - Newer developers - Peter Simpson    
May 1, 2020   
(32 reactions) 'Layout View
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("MainCLV") 'Load the base/main layout file
Activity.Title = "Basic xCLV with LL layout"...
Pnl.LoadLayout("ItemInfo") 'Load your
LblNum.Text = TD.LabelNum...
link: () As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("MainCLV") 'Load the layout...
B4A Tutorial [B4X] xCLV - lazy loading with text input - Erel    
Oct 24, 2019   
(21 reactions)The attached B4J example demonstrates how to implement lazy loading with editable items.
https://www.b4x.com/basic4android/images/java_nAZX0TSYJE.png
There are several interesting points:
- Layouts are reused.
- A custom type is used to store all of the relevant information for each item.
- The important code is in the VisibleRangeChanged event:
Sub CustomListView1_VisibleRangeChanged (FirstIndex As Int, LastIndex As Int)
For i = 0 To CustomListView1.Size - 1
Dim cd As CellData...
B4A Tutorial ✅ [B4X] [XUI] [B4XPages] B4A PreoptimizedCLV lazy loading from SQLite and CSV - Newer developers - Peter Simpson    
Feb 23, 2021   
(28 reactions)/%F0%9F%92%A1-b4x-xui-b4xpages-b4j-preoptimizedclv-lazy-loading-from-sqlite-and-csv-newer-developers... B4J posts
https://www.b4x.com/android/forum/threads/%F0%9F%92%A1-b4x-xui-b4xpages-b4i-preoptimizedclv-lazy...
link:
Welcome to Sheldon Coopers and Amy Farrah Fowlers fun with flags ;)
? ? ?...
link: link not work https://www.dropbox.com/s/miy8lu2jtd20zce/WorldPopultion1.zip?dl=0...
link: @Peter Simpson , your contributions for benefit of B4X members, are priceless ?
Regards,
Anand...
B4A Code Snippet Grid in a CustomListView for B4A: Icon Selector with Lazy Loading - GeoT    
Apr 16, 2026   
(7 reactions) that receives the click event
and the visual selection effect (SetColorAnimated)
DATA & LOADING
- Monochrome vector icons loaded from AddResources folder via AndroidResources
- pnlCell.Tag (Map) is the data source: holds the icon name and "loaded" flag
- Lazy loading via...
link: (First, Last)
Sub CLV1_VisibleRangeChanged(FirstIndex As Int, LastIndex As Int)
Dim loadFrom...
B4A Question xCustomListView with Four Columns of Imageviews and many Rows - Mahares    
Jan 12, 2019 bitmap file. Although scrolling is smoother in release mode on faster devices, lazy loading is still...I wanted to accomplish what Erel did in the below link in post #3, but with 4 or multiple columns of imageviews not one imageview column.
https://www.b4x.com/android/forum/threads/applying-lazy-loading-to-xcustomlistview-with-imageviews-bitmap-files.101299/
I have a list of bitmap files to show in succession on an xCustomlistView that has 4 columns of imageviews and below each row of imageviews...
Page: 1  
2  
3  
4  
5