Bug? Bug with List.Initialize2 ? - Informatix    
Jul 15, 2013I thought this code:
Dim ListeTas As List
ListeTas.Initialize2(Array As Int(0, 1, 2, 3))
...was similar to that one:
Dim ListeTas As List
ListeTas.Initialize
For i = 0 To 3
ListeTas.Add(i)
Next...
link: See the documentation of Initialize2: Basic4android - Collections (Core)
Sorry. I should...
link: See the documentation of Initialize2: Basic4android - Collections (Core)...
link: I think ListeTas.Initialize2(Array As Int(0, 1, 2, 3))
this one make a readonly list....
Bug? List.Initialize2 and Array [SOLVED, I've should've read the documentation] - alwaysbusy    
Sep 14, 2016Maybe not really a bug, but more a not so obvious limitation of using a list initialize2... I've got some UnsupportedOperationExceptions when a B4J list is initialized with Initialize2 and...
link: https://www.b4x.com/android/forum/threads/b4j-list-removeat-fails-on-list-where-initialize2-used...
link: Pfft. :oops: RTFM Alain, RTFM......
link: Check List.Initialize2 documentation: https://www.b4x.com/b4j/help/collections...
B4A Question list Initialize2 - same as stuffing array in? - Albert Kallal (first post)    
Jan 18, 2020Thank you for that wee bit of advice! I just did not want to start out writing too much code down a bad garden path.
A simple quest...
link: In one wee word @Albert Kallal , yes......
link: ' field values
v.Initialize2(Array As Object("Jasper","Albert...
Bug? B4J List.RemoveAt fails on List where Initialize2 used - Bruce Axtens    
Aug 20, 2014 As List
End Sub
Sub AppStart (Args() As String)
L1.Initialize
L1.Add(1)
L1.Add(2....clear
Log(L1.Size)
Log("--")
L2.Initialize2(Array As Int(1,2,3,4))
Log(L2...
link: The purpose if List.Initialize2 is to wrap an array. Not to create a new data collection.
Note...
link: "and if you pass an array the list will be of a fixed size. Meaning that you cannot later add...
link: See List.Initialize2 documentation: http://www.b4x.com/b4j/help/collections.html#list_initialize2...
B4J Question Adding a value to a list results in a UnsupportedOperationException - MathiasM    
Jan 14, 2021Hello
I try to add a value to a list, but I get a java.lang.UnsupportedOperationException when I try to do this.
Why is this not working?
Sub AppStart (Args() As String)
TestList("Third", Array As String("First", "Second"))
End Sub
Sub TestList(NewValue As String, PreviousList As List)
Dim NewList As List
NewList.Initialize2(PreviousList)
NewList...
link: Tip: never use List.Initialize2. As @stevel05 wrote you can convert an array to a read-only list...
B4A Library [B4X] [XUI] xCustomListView - cross platform CustomListView - Erel    
Dec 24, 2023   
(46 reactions)   
tags: CustomListView, xcutomlistbox card, xuiCLV, CUSTOMLIST, Erel, XUI(CreateListItem($"Item #${i}"$, 160dip, clv2.AsView.Height), $"Item #${i}"$)
'Instead of
'clv2.Add(CreateListItem($"Item #${i}"$, clv2.AsView.Width, 160dip), $"Item...Update: As several other libraries depend on xCustomListView library, it is no longer recommended... features to xCLV. They are listed at the end of this post.
Video tutorial:
256437236
xCustomListView is an implementation of CustomListView based on XUI library. It provides all the features...
B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    
Nov 1, 2024   
(47 reactions)-files.132731/#post-838166
List of classes or libraries that can be used to access secondary storages...
intent.Initialize("android.intent.action.CREATE_DOCUMENT", "")
intent... As JavaObject
Dim ContentResolver As JavaObject = ctxt.InitializeContext.RunMethodJO...
File.Copy2(Source, out)
out.Close
Return True
End If
Return False...("class ".Length)
jo.InitializeStatic(cls)
Return jo.GetField("processBA")
End Sub...
B4A Question xCustomListView with Four Columns of Imageviews and many Rows - Mahares    
Jan 12, 2019I 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... the list, the xCustomListView works well, but if I move from customlistview item to item in the order...
B4A Tutorial [B4X] [XUI] CustomListView - lazy loading / virtualization - Erel    
Nov 16, 2023   
(40 reactions)   
tags: customlist view card, CustomListView, Virtualiza, XCustomListView, xuiCLV, B4X As String, Content As String, BitmapFile As String)
Sub FillList2
Dim bitmaps As List = Array....Color_LightGray, lblAction1.TextColor)
SetColorStateList(lblAction2, xui.Color_LightGray...)
SetColorStateList(lblAction2, xui.Color_LightGray, lblAction2.TextColor)
ImageView1.SetBitmap...(lblAction1, xui.Color_LightGray, lblAction1.TextColor)
SetColorStateList(lblAction2, xui...xCustomListView v1.50 adds an important new event named VisibleRangeChanged. This event is fired...
B4A Library [B4X] CLVSwipe - xCustomListView Swipe actions and pull to refresh - Erel    
Mar 2, 2025   
(48 reactions)   
tags: CLVSwipe, CLVSwipe - CustomListView, xuiCLV, xclv swipe pull, clv, myapp, xCustomListView and ViewsEx v1.30+.
2. Initialize Swipe and pass the CustomListView.
3. In... the standard xCustomListView library.
It is compatible with B4A and B4i (currently not with B4J).
Both....Color_Green, _
"Action 1": xui.Color_Red, "Action 2": xui.Color_Blue...:
CustomListView1.AddTextItem($"Important item ${i} ..."$, Swipe.CreateItemValue("", Array... panel. This is the panel that appears when the user pulls the list.
- Set it with Swipe...
Page: 1  
2  
3  
4  
5  
6  
7