Android Question Expandable list based on xCustomListView

Sergey_New

Well-Known Member
Licensed User
Longtime User
Is there an easy way to allow only one row to open and automatically close all other open rows?
 
Solution
solution finish:
B4X:
Sub clv1_ItemClick (index As Int, Value As Object)
    If Not(Currindex = index) Then
        Dim i As ExpandableItemData = clv1.GetValue(Currindex)
        If i.Expanded = True Then
            expandable.ToggleItem(Currindex)
        End If
    End If
    Sleep(300)
    expandable.ToggleItem(index)
    Currindex = index
End Sub

Sergey_New

Well-Known Member
Licensed User
Longtime User
...I recommend you to see...
Thanks for the links, to be honest, I've already seen them. But what I don't understand is the answers to my questions...
That's why I'm asking for help.
 
Upvote 0
Top