use of com.android.contacts.common.list.ContactListItemView in project packages_apps_Contacts by AOKP.
the class EmailAddressListAdapter method bindView.
@Override
protected void bindView(View itemView, int partition, Cursor cursor, int position) {
super.bindView(itemView, partition, cursor, position);
ContactListItemView view = (ContactListItemView) itemView;
bindSectionHeaderAndDivider(view, position);
bindName(view, cursor);
bindViewId(view, cursor, EmailQuery.EMAIL_ID);
bindPhoto(view, cursor);
bindEmailAddress(view, cursor);
}
use of com.android.contacts.common.list.ContactListItemView in project packages_apps_Contacts by AOKP.
the class HeaderEntryContactListAdapter method getView.
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if (position == 0 && getHeaderEntryCount() > 0) {
final ContactListItemView itemView;
if (convertView == null) {
// Pass the cursor down. Don't worry, it isn't used.
itemView = newView(getContext(), 0, getCursor(0), 0, parent);
} else {
itemView = (ContactListItemView) convertView;
}
itemView.setDrawableResource(R.drawable.ic_search_add_contact);
itemView.setDisplayName(getContext().getResources().getString(R.string.header_entry_contact_list_adapter_header_title));
return itemView;
}
return super.getView(position - getHeaderEntryCount(), convertView, parent);
}
use of com.android.contacts.common.list.ContactListItemView in project packages_apps_Contacts by AOKP.
the class LegacyContactListAdapter method bindView.
@Override
protected void bindView(View itemView, int partition, Cursor cursor, int position) {
super.bindView(itemView, partition, cursor, position);
ContactListItemView view = (ContactListItemView) itemView;
bindName(view, cursor);
bindViewId(view, cursor, PERSON_ID_COLUMN_INDEX);
bindPresence(view, cursor);
}
use of com.android.contacts.common.list.ContactListItemView in project packages_apps_Contacts by AOKP.
the class LegacyPhoneNumberListAdapter method newView.
@Override
protected ContactListItemView newView(Context context, int partition, Cursor cursor, int position, ViewGroup parent) {
final ContactListItemView view = super.newView(context, partition, cursor, position, parent);
view.setUnknownNameText(mUnknownNameText);
return view;
}
use of com.android.contacts.common.list.ContactListItemView in project packages_apps_Contacts by AOKP.
the class LegacyPhoneNumberListAdapter method bindView.
@Override
protected void bindView(View itemView, int partition, Cursor cursor, int position) {
super.bindView(itemView, partition, cursor, position);
ContactListItemView view = (ContactListItemView) itemView;
bindName(view, cursor);
bindViewId(view, cursor, PHONE_ID_COLUMN_INDEX);
bindPhoneNumber(view, cursor);
}
Aggregations