Lines Matching defs:itemView
93 void onAdapterFavoriteChanged(MessageListItem itemView, boolean newFavorite);
95 void onAdapterSelectedChanged(MessageListItem itemView, boolean newSelected,
183 public boolean isSelected(MessageListItem itemView) {
184 return getSelectedSet().contains(itemView.mMessageId);
190 MessageListItem itemView = (MessageListItem) view;
191 itemView.bindViewInit(this, mLayout);
197 itemView.mMessageId = cursor.getLong(COLUMN_ID);
198 itemView.mMailboxId = cursor.getLong(COLUMN_MAILBOX_KEY);
200 itemView.mAccountId = accountId;
203 boolean readChanged = isRead != itemView.mRead;
204 itemView.mRead = isRead;
205 itemView.mIsFavorite = cursor.getInt(COLUMN_FAVORITE) != 0;
207 itemView.mHasInvite = (flags & Message.FLAG_INCOMING_MEETING_INVITE) != 0;
208 itemView.mHasBeenRepliedTo = (flags & Message.FLAG_REPLIED_TO) != 0;
209 itemView.mHasBeenForwarded = (flags & Message.FLAG_FORWARDED) != 0;
210 itemView.mHasAttachment = cursor.getInt(COLUMN_ATTACHMENTS) != 0;
211 itemView.setTimestamp(cursor.getLong(COLUMN_DATE));
212 itemView.mSender = cursor.getString(COLUMN_DISPLAY_NAME);
213 itemView.setText(
215 itemView.mColorChipPaint =
218 if (mQuery != null && itemView.mSnippet != null) {
219 itemView.mSnippet =
231 public void toggleSelected(MessageListItem itemView) {
232 updateSelected(itemView, !isSelected(itemView));
240 * @param itemView the item being changed
243 private void updateSelected(MessageListItem itemView, boolean newSelected) {
245 mSelectedSet.add(itemView.mMessageId);
247 mSelectedSet.remove(itemView.mMessageId);
250 mCallback.onAdapterSelectedChanged(itemView, newSelected, mSelectedSet.size());
259 * @param itemView the item being changed
262 public void updateFavorite(MessageListItem itemView, boolean newFavorite) {
263 changeFavoriteIcon(itemView, newFavorite);
265 mCallback.onAdapterFavoriteChanged(itemView, newFavorite);