Hi. I would like to make a function where the item is in customlistview and inside have a plus and minus button same like Add To Cart function. So in b4a we can set using panel.GetView. but for B4j is using Pane , is it the same ? Attach here is the example of B4A code.
B4X:
Dim Index As Int = CustomListViewCart.GetItemFromView(Sender)
Dim Product_ID As String = CustomListViewCart.GetValue(Index)
Dim mPanel As Panel = CustomListViewCart.GetPanel(Index)
Dim rPanel As Panel = mPanel.GetView(0)
lblPrice = rPanel.GetView(5)
txtQte = rPanel.GetView(6)
lblTotal = rPanel.GetView(4)
lblProductTax = rPanel.GetView(9)
lblProductID = rPanel.GetView(8)
lblToppingPrice = rPanel.GetView(10)
If txtQte.Text >= 1 Then
txtQte.Text = NumberFormat((txtQte.Text - 1),0,0)
lblTotal.Text = ((lblPrice.Text * txtQte.Text)+ lblToppingPrice.Text.Trim),2)
End If