Java Code Examples for com.prolificinteractive.materialcalendarview.CalendarDay#today()
The following examples show how to use
com.prolificinteractive.materialcalendarview.CalendarDay#today() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DynamicSettersActivity.java From material-calendarview with MIT License | 5 votes |
public static void showDatePickerDialog( Context context, CalendarDay day, DatePickerDialog.OnDateSetListener callback) { if (day == null) { day = CalendarDay.today(); } DatePickerDialog dialog = new DatePickerDialog( context, 0, callback, day.getYear(), day.getMonth() - 1, day.getDay() ); dialog.show(); }
Example 2
Source File: OneDayDecorator.java From monthweekmaterialcalendarview with Apache License 2.0 | 4 votes |
public OneDayDecorator() { date = CalendarDay.today(); }
Example 3
Source File: CalendarActivity.java From monthweekmaterialcalendarview with Apache License 2.0 | 4 votes |
@OnClick(R.id.tv_today) public void clickToday() { selectedDate = CalendarDay.today(); monthWeekMaterialCalendarView.setCurrentDate(selectedDate); monthWeekMaterialCalendarView.setSelectedDate(selectedDate); }
Example 4
Source File: CalendarSmoothActivity.java From monthweekmaterialcalendarview with Apache License 2.0 | 4 votes |
@OnClick(R.id.tv_today) public void clickToday() { selectedDate = CalendarDay.today(); monthWeekMaterialCalendarView.setCurrentDate(selectedDate); monthWeekMaterialCalendarView.setSelectedDate(selectedDate); }
Example 5
Source File: TodayDecorator.java From o2oa with GNU Affero General Public License v3.0 | 4 votes |
@Override public boolean shouldDecorate(CalendarDay day) { CalendarDay today = CalendarDay.today(); return today != null && day.equals(today); }
Example 6
Source File: SelectorDecorator.java From o2oa with GNU Affero General Public License v3.0 | 4 votes |
public SelectorDecorator(Context context) { date = CalendarDay.today(); drawable = FancySkinManager.Companion.instance().getDrawable(context, R.drawable.calendar_selector); }
Example 7
Source File: TodayDecorator.java From ETSMobile-Android2 with Apache License 2.0 | 4 votes |
public TodayDecorator(Context context) { today = CalendarDay.today(); this.context = context; }
Example 8
Source File: OneDayDecorator.java From material-calendarview with MIT License | 4 votes |
public OneDayDecorator() { date = CalendarDay.today(); }
Example 9
Source File: CustomTileDimensions.java From material-calendarview with MIT License | 4 votes |
public TodayDecorator() { today = CalendarDay.today(); backgroundDrawable = getResources().getDrawable(R.drawable.today_circle_background); }