|
2 | 2 | package com.github.mikephil.charting.charts; |
3 | 3 |
|
4 | 4 | import android.annotation.SuppressLint; |
| 5 | +import android.annotation.TargetApi; |
5 | 6 | import android.content.Context; |
6 | 7 | import android.graphics.Canvas; |
7 | 8 | import android.graphics.Color; |
@@ -734,6 +735,7 @@ public void zoom(float scaleX, float scaleY, float xValue, float yValue, AxisDep |
734 | 735 | * @param axis |
735 | 736 | * @param duration |
736 | 737 | */ |
| 738 | + @TargetApi(11) |
737 | 739 | public void zoomAndCenterAnimated(float scaleX, float scaleY, float xValue, float yValue, AxisDependency axis, long duration) { |
738 | 740 |
|
739 | 741 | if (android.os.Build.VERSION.SDK_INT >= 11) { |
@@ -886,6 +888,7 @@ public void moveViewTo(float xIndex, float yValue, AxisDependency axis) { |
886 | 888 | * @param axis |
887 | 889 | * @param duration the duration of the animation in milliseconds |
888 | 890 | */ |
| 891 | + @TargetApi(11) |
889 | 892 | public void moveViewToAnimated(float xIndex, float yValue, AxisDependency axis, long duration) { |
890 | 893 |
|
891 | 894 | if (android.os.Build.VERSION.SDK_INT >= 11) { |
@@ -933,6 +936,7 @@ public void centerViewTo(float xIndex, float yValue, AxisDependency axis) { |
933 | 936 | * @param axis |
934 | 937 | * @param duration the duration of the animation in milliseconds |
935 | 938 | */ |
| 939 | + @TargetApi(11) |
936 | 940 | public void centerViewToAnimated(float xIndex, float yValue, AxisDependency axis, long duration) { |
937 | 941 |
|
938 | 942 | if (android.os.Build.VERSION.SDK_INT >= 11) { |
|
0 commit comments