本文整理汇总了Java中com.prolificinteractive.materialcalendarview.DayViewFacade类的典型用法代码示例。如果您正苦于以下问题:Java DayViewFacade类的具体用法?Java DayViewFacade怎么用?Java DayViewFacade使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DayViewFacade类属于com.prolificinteractive.materialcalendarview包,在下文中一共展示了DayViewFacade类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onRetrieveDeadlineDays
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void onRetrieveDeadlineDays(final ScheduleDeadlineDaysModel model) {
swipeRefreshLayout.setRefreshing(false);
if (slidingUpPanelLayout.getPanelState() != SlidingUpPanelLayout.PanelState.EXPANDED) {
titleSlidingUpPanel.setText(new SimpleDateFormat("MMMM yyyy").format(date.getTime()));
}
materialCalendarView.addDecorator(new DayViewDecorator() {
@Override
public boolean shouldDecorate(CalendarDay day) {
return day.getMonth() == model.month && model.getDays().contains(day.getDay());
}
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new ForegroundColorSpan(ContextCompat.getColor(getContext(), android.R.color.white)));
view.setSelectionDrawable(ContextCompat.getDrawable(getContext(), R.drawable.round));
}
});
}
示例2: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
if (this.color != null) {
view.addSpan(new ForegroundColorSpan(this.color));
} else {
view.addSpan(new ForegroundColorSpan(Color.RED));
}
}
示例3: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setBackgroundDrawable(highlightDrawable);
}
示例4: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setSelectionDrawable(drawable);
}
示例5: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new StyleSpan(Typeface.BOLD));
view.addSpan(new RelativeSizeSpan(1.4f));
}
示例6: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(5, color));
}
示例7: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setDaysDisabled(true);
}
示例8: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(10, Color.RED));
}
示例9: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(8, color));
}
示例10: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setBackgroundDrawable(drawable);
}
示例11: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setBackgroundDrawable(backgroundDrawable);
}
示例12: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
/**
* This function decorate the view.
*
* @param view : The view to decorate.
*/
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(7, Color.rgb(253, 160, 96)));
}