From 1b9b3da3deaea37114e1fe9423445dac4a97c2a5 Mon Sep 17 00:00:00 2001 From: Philipp Jahoda Date: Sat, 28 May 2016 15:52:56 +0200 Subject: [PATCH] Add spin animation to pie example --- .../com/xxmassdeveloper/mpchartexample/PieChartActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MPChartExample/src/com/xxmassdeveloper/mpchartexample/PieChartActivity.java b/MPChartExample/src/com/xxmassdeveloper/mpchartexample/PieChartActivity.java index bab7dcb525..a7350e9cac 100644 --- a/MPChartExample/src/com/xxmassdeveloper/mpchartexample/PieChartActivity.java +++ b/MPChartExample/src/com/xxmassdeveloper/mpchartexample/PieChartActivity.java @@ -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; }