How to check the previous record in CursorAdapter - Android -
i have chat application , i'm looking way hide profile image of chat when there 2 or more consecutive chat same person, how can that? or may use different chat bubble facebook or other chat apps below sample of have, private static class chatcursoradapter extends cursoradapter { private chatcursor chatcursor; public chatcursoradapter(context context, commentscursor cursor) { super(context, cursor, 0); chatcursor = cursor; } @override public view newview(context context, cursor cursor, viewgroup parent) { layoutinflater inflater = (layoutinflater) context .getsystemservice(context.layout_inflater_service); return inflater.inflate(r.layout.chat_layout, parent, false); } @override public void bindview(view view, context context, cursor cursor) { imageview imgview = (imageview) view.findviewbyid(r.id.imageview1); chat chat = chatcursor.ge