Hi i have this problem, i have a CustomListView with have: btnAdd buton, btn+ & btn- button and a txtQty textbox with quantity value (picture attached)
I need that when i press + or - button the value of textbox in the listItem change
And then when i click btnAdd_Click had the value of the textbox in this item
Thank you very much if someone can help me
I need that when i press + or - button the value of textbox in the listItem change
And then when i click btnAdd_Click had the value of the textbox in this item
Customlistview:
Lista.Add(CreateListItem(bd, ElProd.Name, ElProd.Precio, Lista.AsView.Width, 120dip), ElProd.Code)
Lista.Add(CreateListItem(bd, ElProd2.Name, ElProd2.Precio, Lista.AsView.Width, 120dip), ElProd2.Code)
Lista.Add(CreateListItem(bd, ElProd3.Name, ElProd3.Precio, Lista.AsView.Width, 120dip), ElProd3.Code)
Sub CreateListItem(bmp As BitmapDrawable, name As String, prec As Double, Width As Int, Height As Int) As Panel
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, Width, Height)
p.LoadLayout("CellItem")
lblDesc.Text=name
lblPrecio.Text="$ " & prec
imgFoto.Background=bmp
btnAdd.Text="AGREGAR"
btnAdd.Visible=Agregar
Return p
End Sub
Private Sub btnAdd_Click
Dim Index As Int = Lista.GetItemFromView(Sender)
end sub
Thank you very much if someone can help me