Android Question XCustomListview and BBListItem Text is not visible

Addo

Well-Known Member
Licensed User
i have followed this example


but when ever I add items the text in bblistitem doesn't show at all.

what i am doing wrong in the attached Project ?
 

Attachments

  • BBItemListTest.zip
    13.9 KB · Views: 79

Addo

Well-Known Member
Licensed User
I am suggesting to use visible change event instead to avoid looping to the whole list. i tried to play around but i see it needs the offset of the item to draw the text. I have tested with 100 items works fine and smooth but with 1000 items can be a bit laggy since scroll change event loops through the whole list
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The scroll changed is required here as we don't want to draw full items if that isn't needed.

I don't think that the lag is related to that loop but you can optimize it and only go over the visible items. It is a simple change.

More importantly is to implement lazy loading and only add visible items.
 
Upvote 0
Top