Android Piechart是空的

时间:2014-02-03 22:52:40

标签: android view graph

如果aChartengine饼图为空,如何显示自定义TextView?我注意到你不能做ListView,你有什么建议吗?

我在LinearLayout中显示图表:

chartContainer = (LinearLayout)view.findViewById(R.id.chart_container);

// Getting PieChartView to add to the custom layout 
mChartView = ChartFactory.getPieChartView(getActivity(),distributionSeries, defaultRenderer); 
// Adding the pie chart to the custom layout 
chartContainer.addView(mChartView);

0 个答案:

没有答案