public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { RadCalendarView calendarView = new RadCalendarView (Activity); EventReadAdapter adapter = new EventReadAdapter (calendarView); calendarView.EventAdapter = adapter; adapter.ReadEventsAsync (); return calendarView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { RadCalendarView calendarView = new RadCalendarView(Activity); EventReadAdapter adapter = new EventReadAdapter(calendarView); calendarView.EventAdapter = adapter; adapter.ReadEventsAsync(); return(calendarView); }
public void OnResult(Java.Lang.Object result) { EventReadAdapter.CalendarInfo[] calendars = result.ToArray <EventReadAdapter.CalendarInfo> (); string[] calendarIDs = new string[calendars.Length]; for (int i = 0; i < calendars.Length; i++) { calendarIDs [i] = calendars [i].Id; } adapter.EventsQueryToken = EventQueryToken.GetCalendarsById(calendarIDs); adapter.ReadEventsAsync(); }
public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { RadCalendarView calendarView = new RadCalendarView (Activity); EventReadAdapter adapter = new EventReadAdapter (calendarView); calendarView.EventAdapter = adapter; Calendar calendar = Calendar.Instance; long start = calendar.TimeInMillis; calendar.Add (CalendarField.Date, 7); long end = calendar.TimeInMillis; EventQueryToken token = adapter.EventsQueryToken; token.SetRange (start, end); adapter.ReadEventsAsync (); return calendarView; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { RadCalendarView calendarView = new RadCalendarView(Activity); EventReadAdapter adapter = new EventReadAdapter(calendarView); calendarView.EventAdapter = adapter; Calendar calendar = Calendar.Instance; long start = calendar.TimeInMillis; calendar.Add(CalendarField.Date, 7); long end = calendar.TimeInMillis; EventQueryToken token = adapter.EventsQueryToken; token.SetRange(start, end); adapter.ReadEventsAsync(); return(calendarView); }