@@ -106,9 +106,9 @@ protected void onDraw(Canvas canvas) {
106106 */
107107 float originX = viewWid / 2 ;
108108 float originY = viewHeight ;
109- float botP1_x = (float ) (originX - botLineLen / 2.0 );
109+ float botP1_x = (float ) (originX - botLineLen / 2.0 );// Left
110110 float botP1_y = originY ;
111- float botP2_x = (float ) (originX + botLineLen / 2.0 );
111+ float botP2_x = (float ) (originX + botLineLen / 2.0 );// Right
112112 float botP2_y = originY ;
113113 float midP1_x = (float ) (originX + botLineLen / 2.0 + botArcR );
114114 float midP1_y = botP2_y - botArcR - midHeight ;
@@ -119,7 +119,7 @@ protected void onDraw(Canvas canvas) {
119119 float midP4_x = (float ) (originX - botLineLen / 2.0 - botArcR );
120120 float midP4_y = originY - botArcR - midHeight ;
121121
122- canvas .drawLine (botP1_x , botP1_y , botP2_x , botP2_y , bgPaint );
122+ canvas .drawLine (botP1_x , botP1_y , botP2_x + 2 , botP2_y , bgPaint ); // Add offset
123123
124124 botLeftRect .set (midP3_x , viewHeight - 2 * botArcR , botP1_x + botArcR , botP1_y );
125125 canvas .drawArc (botLeftRect , 89 , 91 , false , bgPaint );
@@ -151,7 +151,7 @@ protected void onDraw(Canvas canvas) {
151151 headShineRectF .set ((midP4_x + lineWid ),
152152 (float ) (midP4_y - (midP1_x - midP4_x ) / 2.0 + lineWid ),
153153 (midP1_x - lineWid ),
154- (float ) (midP4_y + (midP1_x - midP4_x ) / 2.0 - lineWid * 2 ));
154+ (float ) (midP4_y + (midP1_x - midP4_x ) / 2.0 - lineWid * 2 + 2 )); // Bottom add offset
155155 canvas .drawArc (headShineRectF , 180 , 180 , false , shinePaint );
156156
157157 /**
0 commit comments