示例#1
0
        public sealed override Android.Views.View GetView(int position, Android.Views.View convertView, ViewGroup parent)
        {
            var context = new PlainListCellContext()
            {
                ReusableCell = convertView.AsCell(),
                Row          = position,
                Parent       = parent.AsView()
            };

            return(GetCell(context));
        }
示例#2
0
        public sealed override Android.Views.View GetChildView(int groupPosition, int childPosition, bool isLastChild, Android.Views.View convertView, ViewGroup parent)
        {
            var context = new GroupedListCellContext()
            {
                ReusableCell = convertView.AsCell(),
                Row          = childPosition,
                Section      = groupPosition,
                IsExpanded   = isLastChild,
                Parent       = parent.AsView()
            };

            return(GetCell(context));
        }
示例#3
0
        public sealed override Android.Views.View GetGroupView(int groupPosition, bool isExpanded, Android.Views.View convertView, ViewGroup parent)
        {
            var context = new GroupedListSectionContext()
            {
                SectionHeaderView = convertView.AsView(),
                Section           = groupPosition,
                IsExpanded        = isExpanded,
                Parent            = parent.AsView()
            };
            var section = GetSection(context);

            if (convertView == null)
            {
                var mExpandableListView = parent as ExpandableListView;
                mExpandableListView?.ExpandGroup(groupPosition);
            }
            return(section);
        }