A bug with the ListView

ondesic

Active Member
Licensed User
Longtime User
Two bugs:
1) Right now if you change the settings of the
lsv.SingleLineLayout.ItemHeight to, say 30, the highlight rectangle doesn't change with it. In fact, on a smaller resolution device, selecting one item can high light 3. The highlight needs to scale with he itemheight.

2) along the lines above, many times when your finger comes off an item, the listview doesn't redraw right, and all the lighlighted area outside the item stays highlighted.

Here is a picture of the two cases:

Please fix this :)
Thanks
 

Attachments

  • test1.png
    test1.png
    1.5 KB · Views: 196
  • test2.png
    test2.png
    1.5 KB · Views: 234

tremara1

Active Member
Licensed User
Longtime User
Try This

Try also setting the label height..
B4X:
lsv.SingleLineLayout.label.height = 30
 

ondesic

Active Member
Licensed User
Longtime User
tremara1,

The label height changes with lsv.SingleLineLayout.ItemHeight as well as lsv.SingleLineLayout.label.height. They are basically the same. Adding the code did nothing to fix the highlight bug. Thanks though.
 

ondesic

Active Member
Licensed User
Longtime User
Erel,

Yes, I have set the item height before adding. I have also tried it the othr way. Both give the same effect
 
Top