I'm currently using the android sdk and displaying info from a MMPK made by arcgis pro.
in the arcgis pro layers can be inserted into sub directories which are collapsible
im trying to make a legend similar to this question done by recreating the sub directories from arcgis pro but i found no way to retrace them