Android Question Load images from directories in the CustomView

Matteo Granatiero

Active Member
Licensed User
I found this tutorial on https://www.b4x.com/android/forum/threads/cards-list-with-customlistview.87720/, but I upload images from the project. How could I do to upload them from a DirExternal, or images taken from a phone directory?

I tried, taking the code from the project, with:
but it does not work
B4X:
root=File.DirRootExternal
    path1 = root & "/DressUp!/PezziUp/"
For Each f As String In File.ListFiles(path1)
    If f.Contains("v1") Then
        
        Dim content As String = "descriton, abcdefghilmnopqrst"
CLV1.Add(CreateItem(CLV1.AsView.Width, $"This is item #${i}"$, bitmaps.Get(i - 1), content), "")
            
    End If
    Next
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…