Kaopiz / KProgressHUD

An implement of ProgressHUD for Android, similar to MBProgressHUD, SVProgressHUD for iOS.
Apache License 2.0
1.65k stars 382 forks source link

fixed radius in BarView is not a good option #14

Closed notHide closed 8 years ago

notHide commented 8 years ago

In BarView, onDraw() method:

canvas.drawRoundRect(mBound, mRadius, mRadius, mOuterPaint);
canvas.drawRoundRect(mInBound, mRadius, mRadius, mInnerPaint);

This is not a regular rounded rectangle.

recommended change to this:

canvas.drawRoundRect(mBound, mBound.height()/2, mBound.height()/2, mOuterPaint);
canvas.drawRoundRect(mInBound, mInBound.height()/2, mInBound.height()/2, mInnerPaint);