本文整理汇总了Java中lecho.lib.hellocharts.animation.PieChartRotationAnimatorV8类的典型用法代码示例。如果您正苦于以下问题:Java PieChartRotationAnimatorV8类的具体用法?Java PieChartRotationAnimatorV8怎么用?Java PieChartRotationAnimatorV8使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PieChartRotationAnimatorV8类属于lecho.lib.hellocharts.animation包,在下文中一共展示了PieChartRotationAnimatorV8类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PieChartView
import lecho.lib.hellocharts.animation.PieChartRotationAnimatorV8; //导入依赖的package包/类
public PieChartView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
pieChartRenderer = new PieChartRenderer(context, this, this);
touchHandler = new PieChartTouchHandler(context, this);
setChartRenderer(pieChartRenderer);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
this.rotationAnimator = new PieChartRotationAnimatorV8(this);
} else {
this.rotationAnimator = new PieChartRotationAnimatorV14(this);
}
setPieChartData(PieChartData.generateDummyData());
}
示例2: PieChartView
import lecho.lib.hellocharts.animation.PieChartRotationAnimatorV8; //导入依赖的package包/类
public PieChartView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
this.onValueTouchListener = new DummyPieChartOnValueSelectListener();
this.pieChartRenderer = new PieChartRenderer(context, this, this);
this.touchHandler = new PieChartTouchHandler(context, this);
setChartRenderer(this.pieChartRenderer);
if (VERSION.SDK_INT < 14) {
this.rotationAnimator = new PieChartRotationAnimatorV8(this);
} else {
this.rotationAnimator = new PieChartRotationAnimatorV14(this);
}
setPieChartData(PieChartData.generateDummyData());
}