private void initCalendarView() {
mRightNow = Calendar.getInstance();
mHelper = new MonthDisplayHelper(mRightNow.get(Calendar.YEAR),
mRightNow.get(Calendar.MONTH), mRightNow.getFirstDayOfWeek());
mBackgroundColor = new Paint();
mBackgroundColorToday = new Paint();
mBackgroundColorTouched = new Paint();
mWeekTitle = new Paint(Paint.SUBPIXEL_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);
mLinePaint = new Paint();
mLinePaint2 = new Paint();
mBackgroundColor.setColor(Color.WHITE);
mBackgroundColorToday.setColor(Color.RED);
mBackgroundColorToday.setAlpha(100);
mBackgroundColorTouched.setColor(Color.BLUE);
mBackgroundColorTouched.setAlpha(100);
mWeekTitle.setColor(Color.rgb(135, 135, 135));
mLinePaint.setColor(Color.BLACK);
mLinePaint2.setColor(Color.rgb(90, 90, 90));
}
CalendarView.java 文件源码
java
阅读 50
收藏 0
点赞 0
评论 0
项目:BigApp_Discuz_Android
作者:
评论列表
文章目录