예제 #1
0
		private DayView MakeDayView(Day day)
		{
			DayView dayView = new DayView(Context, day, Timetable, HourView);
			dayView.HourHeight = HourHeight;
			dayView.LayoutParameters = new LayoutParams(DayWidth, ContainerHeight);
			return dayView;
		}
예제 #2
0
		private void AddDay(Day day, int location)
		{
			DayList.Insert(location, day);
			DayView dayView = MakeDayView(day);
			DayViews.Insert(location, dayView);
			MainLayout.AddView(dayView, location);
		}
예제 #3
0
		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;
			}
		}