本文整理汇总了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));
}
});
}
开发者ID:mgilangjanuar,项目名称:GoSCELE,代码行数:20,代码来源:ScheduleDeadlineFragment.java
示例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));
}
}
开发者ID:NuclleaR,项目名称:react-native-material-calendarview,代码行数:9,代码来源:WeekEndsDecorator.java
示例3: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setBackgroundDrawable(highlightDrawable);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:HighlightWeekendsDecorator.java
示例4: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setSelectionDrawable(drawable);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:MySelectorDecorator.java
示例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));
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:OneDayDecorator.java
示例6: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(5, color));
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:EventDecorator.java
示例7: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setDaysDisabled(true);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:DisableDaysActivity.java
示例8: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(10, Color.RED));
}
开发者ID:gvsucis,项目名称:mobile-app-dev-book,代码行数:5,代码来源:MonthlyFragment.java
示例9: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(8, color));
}
开发者ID:gincos,项目名称:BeHealthy,代码行数:5,代码来源:CalendarAchievementDecorator.java
示例10: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setBackgroundDrawable(drawable);
}
开发者ID:NuclleaR,项目名称:react-native-material-calendarview,代码行数:5,代码来源:TodayDecorator.java
示例11: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.setBackgroundDrawable(backgroundDrawable);
}
开发者ID:prolificinteractive,项目名称:material-calendarview,代码行数:5,代码来源:CustomTileDimensions.java
示例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)));
}
开发者ID:Snooze986,项目名称:SonoESEO-Android,代码行数:10,代码来源:CalendarDecorator.java
注:本文中的com.prolificinteractive.materialcalendarview.DayViewFacade类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论