@@ -1106,35 +1106,35 @@ private void drawRectangularBackgroundWithBorders(Canvas canvas) {
1106
1106
int width = Math .round (borderWidth .left );
1107
1107
updatePathEffect (width );
1108
1108
mPaint .setStrokeWidth (width );
1109
- mPathForSingleBorder .moveTo (left , top - borderWidth . top / 2 );
1110
- mPathForSingleBorder .lineTo (left , bottom + borderWidth . bottom / 2 );
1109
+ mPathForSingleBorder .moveTo (left + width / 2 , top );
1110
+ mPathForSingleBorder .lineTo (left + width / 2 , bottom );
1111
1111
canvas .drawPath (mPathForSingleBorder , mPaint );
1112
1112
}
1113
1113
if (borderTop > 0 ) {
1114
1114
mPathForSingleBorder .reset ();
1115
1115
int width = Math .round (borderWidth .top );
1116
1116
updatePathEffect (width );
1117
1117
mPaint .setStrokeWidth (width );
1118
- mPathForSingleBorder .moveTo (left , top );
1119
- mPathForSingleBorder .lineTo (right , top );
1118
+ mPathForSingleBorder .moveTo (left , top + width / 2 );
1119
+ mPathForSingleBorder .lineTo (right , top + width / 2 );
1120
1120
canvas .drawPath (mPathForSingleBorder , mPaint );
1121
1121
}
1122
1122
if (borderRight > 0 ) {
1123
1123
mPathForSingleBorder .reset ();
1124
1124
int width = Math .round (borderWidth .right );
1125
1125
updatePathEffect (width );
1126
1126
mPaint .setStrokeWidth (width );
1127
- mPathForSingleBorder .moveTo (right , top - borderWidth . top / 2 );
1128
- mPathForSingleBorder .lineTo (right , bottom + borderWidth . bottom / 2 );
1127
+ mPathForSingleBorder .moveTo (right - width / 2 , top );
1128
+ mPathForSingleBorder .lineTo (right - width / 2 , bottom );
1129
1129
canvas .drawPath (mPathForSingleBorder , mPaint );
1130
1130
}
1131
1131
if (borderBottom > 0 ) {
1132
1132
mPathForSingleBorder .reset ();
1133
1133
int width = Math .round (borderWidth .bottom );
1134
1134
updatePathEffect (width );
1135
1135
mPaint .setStrokeWidth (width );
1136
- mPathForSingleBorder .moveTo (left , bottom );
1137
- mPathForSingleBorder .lineTo (right , bottom );
1136
+ mPathForSingleBorder .moveTo (left , bottom - width / 2 );
1137
+ mPathForSingleBorder .lineTo (right , bottom - width / 2 );
1138
1138
canvas .drawPath (mPathForSingleBorder , mPaint );
1139
1139
}
1140
1140
}
0 commit comments