Beispiel #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;
		}
Beispiel #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);
		}
Beispiel #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;
			}
		}