Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
XingdongYu committed Jun 1, 2017
1 parent f83e5fa commit 7aa821b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/src/main/java/com/robog/library/QQNaviView.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
private void setupView() {

//根据view的宽高确定可拖动半径的大小
mSmallRadius = 0.1f * Math.min(mView.getWidth(), mView.getHeight());
mBigRadius = 1.5f * mSmallRadius * mRange;
mSmallRadius = 0.1f * Math.min(mView.getWidth(), mView.getHeight()) * mRange;
mBigRadius = 1.5f * mSmallRadius;

//设置imageview的padding,不然拖动时图片边缘部分会消失
int padding = (int) mBigRadius;
Expand Down

0 comments on commit 7aa821b

Please sign in to comment.