I might be missing something, but I can't see the last item in a CLV, even though they're fixed-size. The items are multiple views within a panel. I've looked extensively on the forum and haven't found a solution. Could anyone help? Note that I used a different height for the last item, but, besides not looking elegant, when the number of indexes is less than the height of the screen, there is a gray space below the last item.
B4X:
public Sub CreateListItem(Index As Int, NumItens As Int) As B4XView
If Index<NumItens-1 Then
Private mItemHeight As Int = 180dip
Else
Private mItemHeight As Int = 1.27*180dip
End If
' Private mItemHeight As Int = 9*Label4.TextSize*GetDeviceLayoutValues.Scale'16%y*GetDeviceLayoutValues.Scale
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, clvcompras.AsView.Width, 32%y)
p.LoadLayout("XCLVcompras")
Return p
End Sub