@Experimental public class WeekPagerAdapter extends android.support.v4.view.PagerAdapter
Modifier and Type | Class and Description |
---|---|
static class |
WeekPagerAdapter.Weekly |
Constructor and Description |
---|
WeekPagerAdapter(MaterialCalendarView mcv) |
Modifier and Type | Method and Description |
---|---|
void |
clearSelections() |
void |
destroyItem(android.view.ViewGroup container,
int position,
java.lang.Object object) |
int |
getCount() |
int |
getIndexForDay(CalendarDay day) |
CalendarDay |
getItem(int position) |
int |
getItemPosition(java.lang.Object object) |
java.lang.CharSequence |
getPageTitle(int position) |
com.prolificinteractive.materialcalendarview.DateRangeIndex |
getRangeIndex() |
java.util.List<CalendarDay> |
getSelectedDates() |
int |
getShowOtherDates() |
java.lang.Object |
instantiateItem(android.view.ViewGroup container,
int position) |
void |
invalidateDecorators() |
boolean |
isViewFromObject(android.view.View view,
java.lang.Object object) |
com.prolificinteractive.materialcalendarview.CalendarPagerAdapter<?> |
migrateStateAndReturn(com.prolificinteractive.materialcalendarview.CalendarPagerAdapter<?> newAdapter) |
void |
setDateSelected(CalendarDay day,
boolean selected) |
void |
setDateTextAppearance(int taId) |
void |
setDayFormatter(DayFormatter formatter) |
void |
setDecorators(java.util.List<DayViewDecorator> decorators) |
void |
setRangeDates(CalendarDay min,
CalendarDay max) |
void |
setSelectionColor(int color) |
void |
setSelectionEnabled(boolean enabled) |
void |
setShowOtherDates(int showFlags) |
void |
setTitleFormatter(TitleFormatter titleFormatter) |
void |
setWeekDayFormatter(WeekDayFormatter formatter) |
void |
setWeekDayTextAppearance(int taId) |
public WeekPagerAdapter(MaterialCalendarView mcv)
public void setDecorators(java.util.List<DayViewDecorator> decorators)
public void invalidateDecorators()
public int getCount()
getCount
in class android.support.v4.view.PagerAdapter
public java.lang.CharSequence getPageTitle(int position)
getPageTitle
in class android.support.v4.view.PagerAdapter
public com.prolificinteractive.materialcalendarview.CalendarPagerAdapter<?> migrateStateAndReturn(com.prolificinteractive.materialcalendarview.CalendarPagerAdapter<?> newAdapter)
public int getIndexForDay(CalendarDay day)
public int getItemPosition(java.lang.Object object)
getItemPosition
in class android.support.v4.view.PagerAdapter
public java.lang.Object instantiateItem(android.view.ViewGroup container, int position)
instantiateItem
in class android.support.v4.view.PagerAdapter
public void setSelectionEnabled(boolean enabled)
public void destroyItem(android.view.ViewGroup container, int position, java.lang.Object object)
destroyItem
in class android.support.v4.view.PagerAdapter
public boolean isViewFromObject(android.view.View view, java.lang.Object object)
isViewFromObject
in class android.support.v4.view.PagerAdapter
public void setTitleFormatter(@NonNull TitleFormatter titleFormatter)
public void setSelectionColor(int color)
public void setDateTextAppearance(int taId)
public void setShowOtherDates(int showFlags)
public void setWeekDayFormatter(WeekDayFormatter formatter)
public void setDayFormatter(DayFormatter formatter)
public int getShowOtherDates()
public void setWeekDayTextAppearance(int taId)
public void setRangeDates(CalendarDay min, CalendarDay max)
public com.prolificinteractive.materialcalendarview.DateRangeIndex getRangeIndex()
public void clearSelections()
public void setDateSelected(CalendarDay day, boolean selected)
public CalendarDay getItem(int position)
@NonNull public java.util.List<CalendarDay> getSelectedDates()