iOS Question xCustomListVew update last item

monic

Active Member
Licensed User
Longtime User
I've tried multiple ways to change the value of a text box nested in this for each loop to a different value based on the number of images downloaded from a website.

Maybe it because Ive spent too long looking at the screen that it hurts :eek: that I cant figure it out.

B4X:
Sub BuildItems
    If links.Size = 0 Then Return
    CLV4.Clear
    Dim m As Map
    m.Initialize
    Dim t As Map
    t.Initialize
    For Each link As String In links
        Dim p As B4XView = xui.CreatePanel("")
        p.Width = MainPage.RootPanel.Width
        Dim height As Int = 260dip
        p.SetLayoutAnimated(0, 1, 0, MainPage.RootPanel.Width, height)
        p.LoadLayout("BelowZero")
        CLV4.Add(p, link)
 
        jobody.Text = "" '<!--  Issue is I cant seem to add values
        m.Put(joimg, link)
    Next
    Downloader.Download(m)
End Sub
 

monic

Active Member
Licensed User
Longtime User
Ideally at the same time as the images are downloaded but like the images a different title.
 
Upvote 0

monic

Active Member
Licensed User
Longtime User
I generate 6 cards each with a different image which works perfect but with each new image I would like a new title but I haven't found a way to do this.

B4X:
jobody.Text = "Title one"
B4X:
jobody.Text = "Title two"
...
 
Upvote 0
Top