I followed Erel's instructions here about how to make this work.
it seems like the Click Event is ignored when Expaned.
I can expand the CLV but collapsing is not working at all. Has someone finally combined Expandable with Nested ?
MY UI look like this."This is a b4j snapshot". After expanding there's no way back.
Need help getting nested CLV to work inside expanding CLV
Hoping someone can look at the attached code and suggest how I can get expanding and nested CLV working together. At the moment I can get both CLV's to display but the inner view will not scroll. Note I have commented out line 42.
www.b4x.com
B4X:
Private Sub GetInnerCLVFromTouch (x As Float, Y As Float) As CustomListView
Dim index As Int = CLV.FindIndexFromOffset(Y + CLV.sv.ScrollViewOffsetY)
Dim item As CLVItem = CLV.GetRawListItem(index)
Dim ep As ExpandableItemData = item.Value '<---- new code in CLVNested
If ep.Expanded = False Then
Return Null
End If
If item.Panel.GetView(0).Tag Is CustomListView Then
Dim inner As CustomListView = item.Panel.GetView(0).Tag
If inner.AsView.Left <= x And inner.AsView.Left + inner.AsView.Width >= x Then Return inner
End If
Return Null
End Sub
it seems like the Click Event is ignored when Expaned.
I can expand the CLV but collapsing is not working at all. Has someone finally combined Expandable with Nested ?
MY UI look like this."This is a b4j snapshot". After expanding there's no way back.
Last edited: