Hi,
when I try to add an ImageView to a ListView it works fine, UNLESS I add
Then the scrolling becomes erratic (cant use the scroller), and the log shows:
This is really annoying.
The complete code for this routine is:
If it's a bug or unresolvable, is there an efficient way to load the images into the listview and preserve the aspect ratio?
when I try to add an ImageView to a ListView it works fine, UNLESS I add
B4X:
iv.PreserveRatio=True
Apr 07, 2017 4:42:34 PM com.sun.javafx.scene.control.skin.VirtualFlow addTrailingCells
INFO: index exceeds maxCellCount. Check size calculations for class anywheresoftware.b4j.objects.ListViewWrapper$MyCallBack$1
This is really annoying.
The complete code for this routine is:
B4X:
Dim iv As ImageView
iv.Initialize("iv_ListItem")
iv.PreserveRatio=True
iv.Width=ListView1.Width
iv.SetImage(fx.LoadImage("C:\Users\"& username &"/Pictures/", s))
iv.Tag = "C:\Users\"& username &"/Pictures/" & s
Log("iv_listitem is: " & "C:\Users\"& username &"/Pictures/" & s)
ListView1.Items.Add(iv)