赞
踩
XML:
<com.github.mikephil.charting.charts.PieChart android:id="@+id/mPieChart" android:layout_width="match_parent" android:layout_height="250dp" android:layout_below="@id/toolbar2" android:layout_marginTop="10dp" android:layout_weight="1" android:text="Hello World!" android:visibility="visible"> </com.github.mikephil.charting.charts.PieChart>
填写数据后才有饼状图显示!
JAVA:
private void initPieChart() { //mChart.setVisibility(View.VISIBLE); ArrayList <Entry> yVals =
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。