1717import static java .util .Calendar .HOUR_OF_DAY ;
1818
1919class WeekViewDrawingConfig {
20-
20+
2121 Paint timeTextPaint ;
2222 float timeTextWidth ;
2323 float timeTextHeight ;
@@ -31,6 +31,7 @@ class WeekViewDrawingConfig {
3131 float widthPerDay ;
3232 Paint dayBackgroundPaint ;
3333 Paint hourSeparatorPaint ;
34+ Paint daySeparatorPaint ;
3435 float headerMarginBottom ;
3536
3637 Paint todayBackgroundPaint ;
@@ -52,7 +53,7 @@ class WeekViewDrawingConfig {
5253 int newHourHeight = -1 ;
5354
5455 DateTimeInterpreter dateTimeInterpreter ;
55-
56+
5657 WeekViewDrawingConfig (Context context , WeekViewConfig config ) {
5758 // Measure settings for time column.
5859 timeTextPaint = new Paint (Paint .ANTI_ALIAS_FLAG );
@@ -101,6 +102,12 @@ class WeekViewDrawingConfig {
101102 hourSeparatorPaint .setStrokeWidth (config .hourSeparatorStrokeWidth );
102103 hourSeparatorPaint .setColor (config .hourSeparatorColor );
103104
105+ // Prepare day separator color paint.
106+ daySeparatorPaint = new Paint ();
107+ daySeparatorPaint .setStyle (Paint .Style .STROKE );
108+ daySeparatorPaint .setStrokeWidth (config .daySeparatorStrokeWidth );
109+ daySeparatorPaint .setColor (config .daySeparatorColor );
110+
104111 // Prepare the "now" line color paint
105112 nowLinePaint = new Paint ();
106113 nowLinePaint .setStrokeWidth (config .nowLineStrokeWidth );
@@ -263,5 +270,5 @@ public String interpretTime(int hour) {
263270 }
264271 };
265272 }
266-
273+
267274}
0 commit comments