Android Question customlistview always lost some items

carycai

Member
Licensed User
Longtime User
attach test code.
i use the CustomListView,display some data,and always lost some items display in listview or display not completely.
see screenshoot.jpeg.
another question:why customlistview display the index order of items which not my wish(order from 0 to 12) ?
please anyone help me?
thks
 

Attachments

  • Apptest.zip
    Apptest.zip
    87.6 KB · Views: 454
  • screenshoot.jpeg
    screenshoot.jpeg
    153.5 KB · Views: 585
Last edited:
what do you mean with losing items?

you don't see them at the end of the list?

you need to calculate the inner panel height of the scrollview to fix that.

the same for the index. you added it somewhere so that it displays it as 2 lined row.
 
Upvote 0
what do you mean with losing items?

you don't see them at the end of the list?

you need to calculate the inner panel height of the scrollview to fix that.

the same for the index. you added it somewhere so that it displays it as 2 lined row.
yes, i can't see some of items at the end of the list.but actually items all have been loaded into list.

for the index,please see the zip file for code.It list index not i wish.
 
Upvote 0
you can create whatever you like (even without this module) but it requires more code.

Code:
For i=0 To usermap.Size-1
Dim p As Panel
Dim l As Label
p.Initialize("")
l.Initialize("")
l.Text=usermap.GetValueAt(i)
l.TextColor=Colors.White
l.TextSize=30
p.AddView(l,0,0,100%x,50dip)
clv.addCView(p,50dip,0,"")
Next
 
Upvote 0
Back
Top