public class

ContactListItemView

extends ViewGroup
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.android.contacts.ContactListItemView

Class Overview

A custom view for an item in the contact list.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ContactListItemView(Context context, AttributeSet attrs)
Public Methods
void dispatchDraw(Canvas canvas)
TextView getDataView()
Returns the text view for the data text, creating it if necessary.
TextView getLabelView()
Returns the text view for the data label, creating it if necessary.
TextView getNameTextView()
Returns the text view for the contact name, creating it if necessary.
ImageView getPhotoView()
Returns the photo view, creating it if necessary.
QuickContactBadge getQuickContact()
Returns the quick contact badge, creating it if necessary.
TextView getSnippetView()
Returns the text view for the search snippet, creating it if necessary.
void hideCallButton()
void setData(char[] text, int size)
Adds or updates a text view for the data element.
void setDividerVisible(boolean visible)
Sets the flag that determines whether a divider should drawn at the bottom of the view.
void setLabel(char[] text, int size)
Adds or updates a text view for the data label.
void setLabel(CharSequence text)
Adds or updates a text view for the data label.
void setOnCallButtonClickListener(View.OnClickListener callButtonClickListener)
Installs a call button listener.
void setPresence(Drawable icon)
Adds or updates the presence icon view.
void setSectionHeader(String title)
Sets section header or makes it invisible if the title is null.
void setSnippet(CharSequence text)
Adds or updates a text view for the search snippet.
void showCallButton(int id, int tag)
Adds a call button using the supplied arguments as an id and tag.
Protected Methods
void onLayout(boolean changed, int left, int top, int right, int bottom)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[Expand]
Inherited Methods
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public ContactListItemView (Context context, AttributeSet attrs)

Public Methods

public void dispatchDraw (Canvas canvas)

public TextView getDataView ()

Returns the text view for the data text, creating it if necessary.

public TextView getLabelView ()

Returns the text view for the data label, creating it if necessary.

public TextView getNameTextView ()

Returns the text view for the contact name, creating it if necessary.

public ImageView getPhotoView ()

Returns the photo view, creating it if necessary.

public QuickContactBadge getQuickContact ()

Returns the quick contact badge, creating it if necessary.

public TextView getSnippetView ()

Returns the text view for the search snippet, creating it if necessary.

public void hideCallButton ()

public void setData (char[] text, int size)

Adds or updates a text view for the data element.

public void setDividerVisible (boolean visible)

Sets the flag that determines whether a divider should drawn at the bottom of the view.

public void setLabel (char[] text, int size)

Adds or updates a text view for the data label.

public void setLabel (CharSequence text)

Adds or updates a text view for the data label.

public void setOnCallButtonClickListener (View.OnClickListener callButtonClickListener)

Installs a call button listener.

public void setPresence (Drawable icon)

Adds or updates the presence icon view.

public void setSectionHeader (String title)

Sets section header or makes it invisible if the title is null.

public void setSnippet (CharSequence text)

Adds or updates a text view for the search snippet.

public void showCallButton (int id, int tag)

Adds a call button using the supplied arguments as an id and tag.

Protected Methods

protected void onLayout (boolean changed, int left, int top, int right, int bottom)

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)