Search in sources :

Example 6 with ContactListItemView

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);
}
Also used : ContactListItemView(com.android.contacts.common.list.ContactListItemView)

Example 7 with ContactListItemView

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);
}
Also used : ContactListItemView(com.android.contacts.common.list.ContactListItemView)

Example 8 with ContactListItemView

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);
}
Also used : ContactListItemView(com.android.contacts.common.list.ContactListItemView)

Example 9 with ContactListItemView

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;
}
Also used : ContactListItemView(com.android.contacts.common.list.ContactListItemView)

Example 10 with ContactListItemView

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);
}
Also used : ContactListItemView(com.android.contacts.common.list.ContactListItemView)

Aggregations

ContactListItemView (com.android.contacts.common.list.ContactListItemView)19 DuplicatesUtils (com.android.contacts.util.DuplicatesUtils)1 FilteredNumberAsyncQueryHandler (com.android.dialer.blocking.FilteredNumberAsyncQueryHandler)1 FilteredNumberAsyncQueryHandler (com.android.dialer.database.FilteredNumberAsyncQueryHandler)1