如何在Android Studio中以ZIP格式导出项目?
我一直在使用具有此功能的Eclipse.
我正在使用MPAndroidChart库发行版v2.我正在尝试显示3个条形图,数据来自数据库.不幸的是,不是看到3个条形数据,而是用相同的结果查看它们.查看截图.谢谢你的帮助.
int [] x = {1,2,3};
Cursor c = db.rawQuery(sql, null);
int count = c.getCount();
float value1 ;
float value2 ;
float value3 ;
String[] mesi = new String[count];
for(int n=0; n<count; n++) {
c.moveToNext();
mesi[n]= c.getString(0);
value1 = c.getFloat(1);
value2 = c.getFloat(2);
value3 = c.getFloat(3);
ArrayList<String> xVals = new ArrayList<String>();
for (int i = 0; i <x.length; i++) {
xVals.add(x.length + " " + mChart.getUnit());
}
ArrayList<BarEntry> yVals1 = new ArrayList<BarEntry>();
ArrayList<BarEntry> yVals2 = new ArrayList<BarEntry>();
ArrayList<BarEntry> …Run Code Online (Sandbox Code Playgroud)