private void initPaints(Resources res){
  final String monthTypeface=res.getString(R.string.date_picker_month_typeface);
  final String dayOfWeekTypeface=res.getString(R.string.date_picker_day_of_week_typeface);
  final String dayTypeface=res.getString(R.string.date_picker_day_typeface);
  final int monthTextSize=res.getDimensionPixelSize(R.dimen.date_picker_month_text_size);
  final int dayOfWeekTextSize=res.getDimensionPixelSize(R.dimen.date_picker_day_of_week_text_size);
  final int dayTextSize=res.getDimensionPixelSize(R.dimen.date_picker_day_text_size);
  mMonthPaint.setAntiAlias(true);
  mMonthPaint.setTextSize(monthTextSize);
  mMonthPaint.setTypeface(Typeface.create(monthTypeface,0));
  mMonthPaint.setTextAlign(Align.CENTER);
  mMonthPaint.setStyle(Style.FILL);
  mDayOfWeekPaint.setAntiAlias(true);
  mDayOfWeekPaint.setTextSize(dayOfWeekTextSize);
  mDayOfWeekPaint.setTypeface(Typeface.create(dayOfWeekTypeface,0));
  mDayOfWeekPaint.setTextAlign(Align.CENTER);
  mDayOfWeekPaint.setStyle(Style.FILL);
  mDaySelectorPaint.setAntiAlias(true);
  mDaySelectorPaint.setStyle(Style.FILL);
  mDayHighlightPaint.setAntiAlias(true);
  mDayHighlightPaint.setStyle(Style.FILL);
  mDayPaint.setAntiAlias(true);
  mDayPaint.setTextSize(dayTextSize);
  mDayPaint.setTypeface(Typeface.create(dayTypeface,0));
  mDayPaint.setTextAlign(Align.CENTER);
  mDayPaint.setStyle(Style.FILL);
}

private void initPaints ( Resources res ) { final String monthTypeface = res . getString ( R . string . date_picker_month_typeface ) ; final String dayOfWeekTypeface = res . getString ( R . string . date_picker_day_of_week_typeface ) ; final String dayTypeface = res . getString ( R . string . date_picker_day_typeface ) ; final int monthTextSize = res . getDimensionPixelSize ( R . dimen . date_picker_month_text_size ) ; final int dayOfWeekTextSize = res . getDimensionPixelSize ( R . dimen . date_picker_day_of_week_text_size ) ; final int dayTextSize = res . getDimensionPixelSize ( R . dimen . date_picker_day_text_size ) ; mMonthPaint . setAntiAlias ( true ) ; mMonthPaint . setTextSize ( monthTextSize ) ; mMonthPaint . setTypeface ( Typeface . create ( monthTypeface , 0 ) ) ; mMonthPaint . setTextAlign ( Align . CENTER ) ; mMonthPaint . setStyle ( Style . FILL ) ; mDayOfWeekPaint . setAntiAlias ( true ) ; mDayOfWeekPaint . setTextSize ( dayOfWeekTextSize ) ; mDayOfWeekPaint . setTypeface ( Typeface . create ( dayOfWeekTypeface , 0 ) ) ; mDayOfWeekPaint . setTextAlign ( Align . CENTER ) ; mDayOfWeekPaint . setStyle ( Style . FILL ) ; mDaySelectorPaint . setAntiAlias ( true ) ; mDaySelectorPaint . setStyle ( Style . FILL ) ; mDayHighlightPaint . setAntiAlias ( true ) ; mDayHighlightPaint . setStyle ( Style . FILL ) ; mDayPaint . setAntiAlias ( true ) ; mDayPaint . setTextSize ( dayTextSize ) ; mDayPaint . setTypeface ( Typeface . create ( dayTypeface , 0 ) ) ; mDayPaint . setTextAlign ( Align . CENTER ) ; mDayPaint . setStyle ( Style . FILL ) ; }
sets up the text and style properties for painting .
