We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c539c commit 49ca2adCopy full SHA for 49ca2ad
MPChartExample/src/com/xxmassdeveloper/mpchartexample/custom/MyEasingFunction.java
@@ -0,0 +1,20 @@
1
+
2
+package com.xxmassdeveloper.mpchartexample.custom;
3
4
+import com.github.mikephil.charting.animation.AnimationEasing.EasingFunction;
5
6
+/**
7
+ * Example of a custom made animation EasingFunction.
8
+ *
9
+ * @author Philipp Jahoda
10
+ */
11
+public class MyEasingFunction implements EasingFunction {
12
13
+ @Override
14
+ public float ease(long elapsed, long duration) {
15
16
+ // do awesome stuff here, this is just linear easing
17
+ return elapsed / (float) duration;
18
+ }
19
20
+}
0 commit comments