有没有办法解决setDrawSliceText已弃用我没有找到任何解决方案.怎么做到这一点
pieChart.setDrawSliceText(假);
解决方法:
它已被弃用,但在其javadoc中它声明:
/**
* Set this to true to draw the entry labels into the pie slices (Provided by the getLabel() method of the PieEntry class).
* Deprecated -> use setDrawEntryLabels(...) instead.
*
* @param enabled
*/
所以请改用setDrawEntryLabels