' This part populates the ListView
DBUtils.ExecuteListView(SQL, "Select [Description] || ' ' || [Dimensions] || ' Max. Lines: ' || [Maxlines] from MyTable WHERE Category == 'Home'", Null, 0, ProductSelector, False)
' Set up the ListView
ProductSelector.Visible = True
Activity.Title = "Choose your product"
ProductSelector.SingleLineLayout.ItemHeight = 75dip
ProductSelector.SingleLineLayout.Label.TextSize = 18
ProductSelector.SingleLineLayout.Label.TextColor = Colors.White
ProductSelector.SingleLineLayout.Label.Gravity = Gravity.LEFT
Sub ProductSelector_ItemClick (Position As Int, Value As Object)
Msgbox("You chose as value", Value)
Msgbox("You chose as position", Position)
End Sub