Android Question customlistview Superimposed image

Almora

Well-Known Member
Licensed User
Longtime User
When I add the second line picture, it is overlaid. How can I fix. Thank you

B4X:
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("i1")
   
   For i =1 To 5
   
    pnl.Initialize("")
    imv.Initialize("")
    imv1.Initialize("")
    imv.Bitmap = LoadBitmap(File.DirAssets, "i1.png")
    imv1.Bitmap = LoadBitmap(File.DirAssets, "n.png")
   
    If i=2 Then               
            pnl.AddView(imv1, 0, 0, 64dip, 96dip)                           
    End If
       
    pnl.AddView(imv, 0, 0, 64dip, 96dip)
   
    clv1.Add(pnl, 96dip, i)
    Next

End Sub
 

Attachments

  • PicsArt_08-09-03.41.09.jpg
    52.6 KB · Views: 212

Almora

Well-Known Member
Licensed User
Longtime User
I want to put a different picture on each line.

He could not designer. I could not find a similar example.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…