slodge / Android.Dialog

Tools to simplify creating dialogs for Mono for Android
5 stars 3 forks source link

GetHeaderView not used? #6

Open slodge opened 11 years ago

slodge commented 11 years ago

Looking at the Adapter, I see:

    public override View GetView(int position, View convertView, ViewGroup parent)
    {
        var element = ElementAtIndex(position);
        if (element == null)
        {
            element = ElementAtIndex(position - 1);
            while (!(element is Section))
                element = element.Parent;
            return ((Section)element).GetFooterView(_context, convertView, parent);
        }
        return element.GetView(_context, convertView, parent);
    }

This suggests FooterView is 'hacked in' a bit - but HeaderView isn't :/