-1
不工作ParseQuery不救
CategoryModel構造是ItemCount中= 0不工作
ParseObject parseObjectCategory = Categorylist.get(i);
ParseQuery<ParseObject> query = ParseQuery.getQuery("List");
query.whereEqualTo("parent", parseObjectCategory);
query.findInBackground(new FindCallback<ParseObject>() {
public void done(List<ParseObject> scoreList, ParseException e) {
if (e == null) {
itemCount = scoreList.size();
Log.e("ItemCountGENERAL",""+itemCount);
} else {
Log.e("Aldaa","---------------------------------------------------------------");
}
itemCount = scoreList.size();
}
});
Log.e("ItemCount",""+itemCount);
if(name.equals("Inbox")){
categoryMode1= new CategoryModel(itemData,name,R.drawable.ic_inbox, itemCount);
}else if(name.equals("Stared")){
categoryMode1= new CategoryModel(itemData,name,R.drawable.ic_stars, itemCount);
}else{
categoryMode1= new CategoryModel(itemData,name,R.drawable.ic_inbox, itemCount);
}
mainData.add(categoryMode1);
mainAdapter.notifyDataSetChanged();
}`
ItemCount中現場我的圖片:
歡迎使用堆棧溢出!請查看我們的[SO問題清單](http://meta.stackoverflow.com/questions/260648/stack-overflow-question-checklist)來幫助你提出一個好問題,從而得到一個很好的答案。 –