Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. dot_color = colorPicker_value;
  2.  
  3. calendarView.setEventDataProvider(new FlexibleCalendarView.EventDataProvider() {
  4. @Override
  5. public List<? extends Event> getEventsForTheDay(int year, int month, int day) {
  6.  
  7. if (year == year_i && month == month_i_2 && day == today_i) {
  8. List<CustomEvent> colorLst1 = new ArrayList<>();
  9. if (dot_color != 0) {
  10.  
  11.  
  12. colorLst1.add(new CustomEvent(dot_color));
  13. }
  14. return colorLst1;
  15. }
  16. return null;
  17. }
  18. });
  19.  
  20. return rootView;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement