B4A Tutorial [B4X] [XUI] CustomListView - lazy loading / virtualization - Erel    Nov 16, 2023   (38 reactions) xCustomListView v1.50 adds an important new event named VisibleRangeChanged. This event is fired whenever the visible range of items changes.
We can use this event to defer the items creation. This can significantly improve the performance of lists with complex items.
As an example, if we try to c B4A Library [B4X] PreoptimizedCLV - Lazy loading extension for xCustomListView - Erel    Jan 04, 2022   (41 reactions) Step #1:
Add the items with PCLV.AddItem. You need to pass the item size (height for vertical lists and width for horizontal lists), background color and value. Value can be any object you like including complex custom types that hold all the data needed to later build the layout.
Step #2:
Call PCL B4A Library [B4X] CLVSelections - extended selection modes for xCustomListView - Erel    Feb 26, 2020   (16 reactions) This class extends xCustomListView library and adds more selection modes: MODE_SINGLE_ITEM_TEMP - The same as the default behavior. MODE_SINGLE_ITEM_PERMANENT - Single item is selected and the selection remains. MODE_MULTIPLE_ITEMS- Multiple items can be selected. There is also a helper method tha Italian (Risolto) Polpolare clv 50 record per volta - LucaMs (first post)    Nov 18, 2024   (1 reaction) Non si può sfruttare l'evento: _VisibleRangeChanged (FirstIndex As Int, LastIndex As Int) ? (Non ho scaricato quell'esempio né quello di Erel). B4A Library [B4X] [XUI] xCustomListView - cross platform CustomListView - Erel    Dec 24, 2023   (46 reactions) - V1.50 - Large update.
VisibleRangeChanged event. With this event it is possible to show longer lists with complex items: https://www.b4x.com/android/forum/threads/b4x-xui-customlistview-lazy-loading-virtualization.87930/
FindIndexFromOffset - quickly finds the index of the item in the specified i B4A Question CLV VisibleRangeChanged - Erel (first post)    Oct 18, 2021   (1 reaction) SMM was built to work with B4XPages. You will lose functionality in non-B4XPages projects. I've added a note about it in the tutorial.
See SMM_Example2. There is a call for MediaManager.TrimMediaCache. It also explains why it is required. If it doesn't solve this issue then please create a B4XPages B4A Tutorial [B4X] xCLV - lazy loading with text input - Erel    Oct 24, 2019   (18 reactions) - A custom type is used to store all of the relevant information for each item. - The important code is in the VisibleRangeChanged event: Sub (FirstIndex As Int, LastIndex As Int) For i = 0 To CustomListView1.Size - 1 Dim cd As CellData = CustomListView1.GetValue(i) Dim pnl As B4X B4A Library AS Gallery - show images from folders (image- and video-thumbnails) - Alexander Stolte    Aug 13, 2020   (16 reactions) ASGallery Author: Alexander Stolte Version: 1.03 ASGallery Events: PreviewClick (path As String, isImage As Boolean) Functions: Class_Globals As String CreateFileAndTime (Name As String, Time As Long, dir As String) As FileAndTime CreateMyImageData (IndexOfFirstImage As Int, lst_image_filename B4A Question (Solved)Strange behavior CustomListview_VisibleRangeChanged - Alexander Stolte (first post)    Jul 01, 2024   (1 reaction) Works if I implement lazy loading in this way, just as it is in the tutorial:
Sub (FirstIndex As Int, LastIndex As Int)
Dim ExtraSize As Int = 20
For i = 0 To ServicesLV.Size - 1
Dim p As B4XView = ServicesLV.GetPanel(i)
If i > FirstIndex - ExtraSize And i < LastIndex + Extr B4A Question Problem with array of PCLVs - Mahares (first post)    Apr 16, 2022   (1 reaction) GetBase.Tag For Each i As Int In PCLVs(j).VisibleRangeChanged(FirstIndex, LastIndex) Dim item As CLVItem = clv.GetRawListItem(i) Dim pnl As B4XView = xui.CreatePanel("") item.Panel.AddView(pnl, 0, 0, item.Panel.Width, item.Panel.Height) pnl.LoadLayout("Item" Page: 1   2   3   4   5   6   7   Powered by ColBERT |