private DayView MakeDayView(Day day) { DayView dayView = new DayView(Context, day, Timetable, HourView); dayView.HourHeight = HourHeight; dayView.LayoutParameters = new LayoutParams(DayWidth, ContainerHeight); return dayView; }
private void AddDay(Day day, int location) { DayList.Insert(location, day); DayView dayView = MakeDayView(day); DayViews.Insert(location, dayView); MainLayout.AddView(dayView, location); }
public void SetScrollBars(int rightDayViewIndex) { foreach (DayView d in DayViews) d.VerticalScrollBarEnabled = false; if (DayViews.Count > rightDayViewIndex && rightDayViewIndex >= 0) { DayView rightDayView = DayViews[rightDayViewIndex]; rightDayView.VerticalScrollBarEnabled = true; } }