Skip to content

Commit

Permalink
Fix Rotate Animation Drawable WOBBLE
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Banes committed Jan 10, 2013
1 parent 420b36a commit 684a616
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified library/res/drawable-hdpi/default_ptr_rotate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified library/res/drawable-mdpi/default_ptr_rotate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified library/res/drawable-xhdpi/default_ptr_rotate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public RotateLoadingLayout(Context context, Mode mode, Orientation scrollDirecti

public void onLoadingDrawableSet(Drawable imageDrawable) {
if (null != imageDrawable) {
mRotationPivotX = imageDrawable.getIntrinsicWidth() / 2f;
mRotationPivotY = imageDrawable.getIntrinsicHeight() / 2f;
mRotationPivotX = Math.round(imageDrawable.getIntrinsicWidth() / 2f);
mRotationPivotY = Math.round(imageDrawable.getIntrinsicHeight() / 2f);
}
}

Expand Down

0 comments on commit 684a616

Please sign in to comment.