如何在Android中检查``for循环''何时完成

时间:2018-09-29 10:43:43

标签: java android loops for-loop

问题是我想在for循环结束时关闭进度对话框以及如何检查它。

ParseQuery<ParseObject> query = ParseQuery.getQuery("JhonaVerity");

        query.findInBackground(new FindCallback<ParseObject>() {
            @Override
            public void done(List<ParseObject> objects, ParseException e) {

                if ( e == null && objects != null){
                    for (final ParseObject object : objects){


                        Integer tag = object.getInt("Tag");
                        Boolean boolean5 = object.getBoolean("Visibility");

                        String VerityName = object.getString("VerityName");
                        String LifeCircle = object.getString("LifeCircle");
                        String Hight = object.getString("Hight");
                        String Weight = object.getString("Weight");
                        String Info = object.getString("Info");

                        Integer Like = object.getInt("Like");
                        Integer Dislike = object.getInt("Dislike");
                        Integer Comment = object.getInt("Comment");
                    }
                }
            }
        });

0 个答案:

没有答案