Пример #1
0
        public override View GetView(int position, View convertView, ViewGroup parent)
        {
            var monthView = (MonthView)convertView ??
                            MonthView.Create(parent, _inflater, _calendar.WeekdayNameFormat, _calendar.Today,
                                             _calendar.ClickHandler);

            monthView.Init(_calendar.Months[position], _calendar.Cells[position]);
            return(monthView);
        }
Пример #2
0
        public override View GetView(int position, View convertView, ViewGroup parent)
        {
            var c         = _calendar;
            var monthView = (MonthView)convertView ??
                            MonthView.Create(parent, _inflater, c.WeekdayNameFormat, c.Today,
                                             c.ClickHandler, c.DividerColor, c.DayBackgroundResID, c.DayTextColorResID,
                                             c.TitleTextColour, c.HeaderTextColor);

            monthView.Init(_calendar.Months[position], _calendar.Cells[position]);
            return(monthView);
        }