You can get the indices by traversing the TreeView.
B4X:
Dim idx as int = 0
For Each item as TreeItem in TreeView1.Root.Children
For Each subitem as TreeItem in item.children
'Here you can map item to idx
idx = idx + 1
next
next
You can get the indexes by traversing the TreeView.
B4X:
Dim idx as int = 0
For Each item as TreeItem in TreeView1.Root.Children
For Each subitem as TreeItem in item.children
'Here you can map item to idx
idx = idx + 1
next
next