Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

Commit 99737ae

Browse files
committed
完善正确view的绘制
1 parent 7d0941b commit 99737ae

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

LoadingDialog/src/main/java/com/xiasuhuei321/loadingdialog/view/RightDiaView.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private void drawDynamic(Canvas canvas) {
126126
line2_y -= speed;
127127
}
128128
//画第二根线
129-
canvas.drawLine(center1 + line1_x - 1, center + line1_y,
129+
canvas.drawLine(center1 + line1_x - 1, center + line1_y - 4,
130130
center1 + line2_x, center + line2_y, mPaint);
131131
}
132132

@@ -197,9 +197,7 @@ protected void setDrawDynamic(boolean drawEveryTime) {
197197
*/
198198
protected void setSpeed(int speed) {
199199
if (speed <= 0 && speed >= 3) {
200-
throw new IllegalArgumentException("how can u set this speed?? " + speed + " do not " +
201-
"use reflect to use this method!u can see the LoadingDialog class for how to" +
202-
"set the speed");
200+
throw new IllegalArgumentException("support speed >0 & < 3, the speed you set is: " + speed);
203201
} else {
204202
this.speed = speed;
205203
}

0 commit comments

Comments
 (0)