本文整理汇总了Java中com.prolificinteractive.materialcalendarview.DayViewFacade.addSpan方法的典型用法代码示例。如果您正苦于以下问题:Java DayViewFacade.addSpan方法的具体用法?Java DayViewFacade.addSpan怎么用?Java DayViewFacade.addSpan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.prolificinteractive.materialcalendarview.DayViewFacade
的用法示例。
在下文中一共展示了DayViewFacade.addSpan方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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));
}
}
示例2: 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));
}
示例3: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入方法依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(5, color));
}
示例4: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入方法依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(10, Color.RED));
}
示例5: decorate
import com.prolificinteractive.materialcalendarview.DayViewFacade; //导入方法依赖的package包/类
@Override
public void decorate(DayViewFacade view) {
view.addSpan(new DotSpan(8, color));
}
示例6: 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)));
}