Skip to content

Commit

Permalink
Add spin animation to pie example
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJay committed May 28, 2016
1 parent 0270470 commit 1b9b3da
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -165,6 +165,10 @@ public boolean onOptionsItemSelected(MenuItem item) {
mChart.animateXY(1400, 1400);
break;
}
case R.id.actionToggleSpin: {
mChart.spin(1000, mChart.getRotationAngle(), mChart.getRotationAngle() + 360, Easing.EasingOption.EaseInCubic);
break;
}
}
return true;
}
Expand Down

0 comments on commit 1b9b3da

Please sign in to comment.