Animation example on Android
Posted: Tue Nov 13, 2012 12:27 pm
Hello,
I am trying to get animation working on my Android charts. I just need a simple grow animation on bar charts, but I cant find any example or tutorial on that.
This is what I came up with, but it doesnt do anything:
I am trying to get animation working on my Android charts. I just need a simple grow animation on bar charts, but I cant find any example or tutorial on that.
This is what I came up with, but it doesnt do anything:
Code: Select all
SeriesAnimation seriesAnimation = new SeriesAnimation();
seriesAnimation.setActive(true);
seriesAnimation.setStartAtMin(false);
seriesAnimation.setSteps(500);
seriesAnimation.setStartValue(0);
seriesAnimation.setSeries(chart.getSeries(0));
chart.getTools().add(seriesAnimation);
try {
seriesAnimation.execute();
} catch (Exception e) {
e.printStackTrace();
}