@@ -0,0 +1,2276 @@
+package com.parse.anypic;%0A%0Aimport android.content.Context;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ImageView;%0Aimport android.widget.TextView;%0A%0Aimport com.parse.ParseQuery;%0Aimport com.parse.ParseQueryAdapter;%0Aimport com.parse.ParseUser;%0Aimport com.parse.anypic.model.Activity;%0Aimport com.parse.anypic.model.ParseColumn;%0Aimport com.parse.anypic.model.Photo;%0Aimport com.squareup.picasso.Picasso;%0A%0Apublic class CommentListAdapter extends ParseQueryAdapter%3CActivity%3E %7B%0A%0A    public CommentListAdapter(Context context, final Photo photo) %7B%0A        super(context, new ParseQueryAdapter.QueryFactory%3CActivity%3E() %7B%0A            public ParseQuery%3CActivity%3E create() %7B%0A%0A                ParseQuery%3CActivity%3E photoCommentQuery = new ParseQuery%3CActivity%3E(Activity.class.getSimpleName());%0A                photoCommentQuery.whereEqualTo(Activity.PHOTO, photo);%0A                photoCommentQuery.whereEqualTo(Activity.TYPE, Activity.TYPE_COMMENT);%0A                photoCommentQuery.whereExists(Activity.CONTENT);%0A%0A                photoCommentQuery.include(Activity.FROM_USER);%0A                photoCommentQuery.orderByAscending(ParseColumn.CREATED_AT);%0A%0A                return photoCommentQuery;%0A            %7D%0A        %7D);%0A    %7D%0A%0A    @Override%0A    public View getItemView(Activity activity, View v, ViewGroup parent) %7B%0A%0A        if (v == null) %7B%0A            v = View.inflate(getContext(), R.layout.comment_list_item, null);%0A        %7D%0A%0A        super.getItemView(activity, v, parent);%0A%0A        ImageView fbPhotoView = (ImageView) v.findViewById(R.id.user_thumbnail);%0A        TextView usernameView = (TextView) v.findViewById(R.id.user_name);%0A        TextView commentMessage = (TextView) v.findViewById(R.id.comment_msg);%0A        TextView commentTime = (TextView) v.findViewById(R.id.datetime);%0A%0A        ParseUser user = activity.getFromUser();%0A        Picasso.with(getContext())%0A            .load(%22https://graph.facebook.com/%22 + user.getString(ParseColumn.USER_FACEBOOK_ID) + %22/picture?type=square%22)%0A            .into(fbPhotoView);%0A%0A        usernameView.setText((String) user.get(ParseColumn.USER_DISPLAY_NAME));%0A        commentMessage.setText(activity.getContent());%0A        commentTime.setText(activity.getCreatedAt().toString());%0A%0A        return v;%0A    %7D%0A%0A%7D

Add Add CommentListAdapter