Hi,
Please help regarding to Customlistview.
I tried to create a list entry using b4xFloatTextField object inside CustomListView
Now i'm stuck and dont know how to get the value back, since the entry object is not in B4xView type
Below is the example what i mean :
Please advice
Tks
Please help regarding to Customlistview.
I tried to create a list entry using b4xFloatTextField object inside CustomListView
Now i'm stuck and dont know how to get the value back, since the entry object is not in B4xView type
Below is the example what i mean :
How do i can get b4xFT value inside the line
Code:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private clv As CustomListView
Private b4xFloatText As B4XFloatTextField
Dim xui As XUI
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Activity.LoadLayout("1")
clv.Clear
clv.Add(AddPNL("Test Value 1"),"01")
clv.Add(AddPNL("Test Value 2"),"02")
Dim b4xFT As B4XFloatTextField
Try
For i = 0 To clv.Size-1
'b4xFT = clv.GetValue(i)
'Log(b4xFT.Text)
'For Each v As B4XView In clv.GetPanel(i).GetAllViewsRecursive
'....
'....
'Next
Next
Catch
Log(LastException)
End Try
End Sub
Sub AddPNL(cValue As String) As Panel
Try
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated( 0, 0, 0, 98%x, 10%y)
p.LoadLayout("line")
b4xFloatText.Text = cValue
Catch
Log(LastException)
End Try
Return p
End Sub
Please advice
Tks