Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

PACKED_POSITION_TYPE_CHILD & PACKED_POSITION_TYPE_Group doesn't exist in Expandable ListView

$
0
0

How to get above constants? OnContextItemSelected function i want to get the the id of clicked row in Expandable ListView. Using below code

public override bool OnContextItemSelected (IMenuItem item)
        {
                     int type = ExpandableListView.GetPackedPositionType(info.PackedPosition);
                if (type == ExpandableListView.PACKED_POSITION_TYPE_CHILD) {
                    groupPos = ExpandableListView.GetPackedPositionGroup(info.PackedPosition); 
                    childPos = ExpandableListView.GetPackedPositionChild(info.PackedPosition); 

                    return true;
                } else if (type == ExpandableListView.PACKED_POSITION_TYPE_GROUP) {
                    childPos = ExpandableListView.GetPackedPositionChild(info.PackedPosition); 
                    groupPos = ExpandableListView.GetPackedPositionGroup(info.PackedPosition); 

                    return true;
                }
         }

Getting error as Android.Widget.ExpandableListView doesn't contain a definition for PACKED_POSITION_TYPE_CHILD & PACKED_POSITION_TYPE_GROUP


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>