It should work like this:
Dim ft As B4XFloatTextField = clv.GetPanel(0).GetView(2).Tag 'get the field from the first item assuming that the field is the third view in the layout.
Thanks for that, but that was pretty much what I was trying. As an experiment I took the B4A_ExpandableList and:
1. removed the customlistview module and used XUI VIEWS instead.
2. added a B4XFloatTextField to the pnlExpanded panel in the designer.
3. gave all items in the pnlExpanded a tag (eg et1,btn1,ft etc.....)
4. added this code at the end of Sub ExpandItem so that it looks like this
Sub ExpandItem (index As Int)
Dim id As ItemData = clv1.GetValue(index)
clv1.ResizeItem(index, id.ExpandedHeight)
clv1.GetPanel(index).Tag = True
AnimatedArrow(index, 0, 180)
'-------test code-------
pnlExpanded = clv1.GetPanel(index).GetView(1)
Log(pnlExpanded.Tag)
For i = 0 To pnlExpanded.NumberOfViews - 1
Dim x As B4XView = pnlExpanded.Getview(i)
Log(x.Tag)
Next
End Sub
5. the results were fine(with the correct tag names showing) for all views but the B4XFloatTextField which listed a whole lot of stuff I do not understand. I was hoping to just get the tag.
I am not certain if anything is wrong or if the problem is me with my lack of understanding. In any event help would be appreciated.