Android Question Add badge on ListView row

cenyu

Active Member
Licensed User
Longtime User
Hi All, i've searched for hours in the forums but haven't found anything relevant, is there a possability to create ListView with lets say 10 rows and on every row add a red circle badge with number in it. Has anyone come across something like that?


B4X:
       Private badger1 As Badger
       ListView1.Initialize("ListView1")
    For i = 1 To 10
        ListView1.AddSingleLine("Item #" & i)
        badger1 .addBadger(row,color,text)
    Next
    Activity.AddView(ListView1, 0, 5%y, 50%x, 50%y)


Thanks in advance.
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Use xCustomListView and add the Badge to a Panel/Image on the right side of a Item.

I think it does not work with a ListView.
 
Upvote 0
Top