完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/QuickContactBadge.html
QuickContactBadge
public class QuickContactBadge
extends ImageView
implements View.OnClickListener
java.lang.Object | |||
↳ | android.view.View | ||
↳ | android.widget.ImageView | ||
↳ | android.widget.QuickContactBadge |
Widget used to show an image with the standard QuickContact badge and on-click behavior.
此Widget用于显示标准的QuickContact标记的图标,并处理on-click的行为。
摘要
继承XML属性 | |
---|---|
![]() android.widget.ImageView
| |
![]() android.view.View
|
继承常量 |
---|
![]() android.view.View
|
字段 | |
---|---|
protected String[] | mExcludeMimes |
继承字段 |
---|
![]() android.view.View
|
Public构造方法 | |
---|---|
QuickContactBadge(Context context) | |
QuickContactBadge(Context context, AttributeSet attrs) | |
QuickContactBadge(Context context, AttributeSet attrs, int defStyleAttr) | |
QuickContactBadge(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) |
Public方法 | |
---|---|
void | assignContactFromEmail(String emailAddress, boolean lazyLookup, Bundle extras) Assign a contact based on an email address. |
void | assignContactFromEmail(String emailAddress, boolean lazyLookup) Assign a contact based on an email address. |
void | assignContactFromPhone(String phoneNumber, boolean lazyLookup) Assign a contact based on a phone number. |
void | assignContactFromPhone(String phoneNumber, boolean lazyLookup, Bundle extras) Assign a contact based on a phone number. |
void | assignContactUri(Uri contactUri) Assign the contact uri that this QuickContactBadge should be associated with. |
void | drawableHotspotChanged(float x, float y) This function is called whenever the view hotspot changes and needs to be propagated to drawables or child views managed by the view. |
CharSequence | getAccessibilityClassName() Return the class name of this object to be used for accessibility purposes. |
void | onClick(View v) Called when a view has been clicked. |
void | setExcludeMimes(String[] excludeMimes) Set a list of specific MIME-types to exclude and not display. |
void | setImageToDefault() Resets the contact photo to the default state. |
void | setMode(int size) This call has no effect anymore, as there is only one QuickContact mode |
void | setOverlay(Drawable overlay) Assigns the drawable that is to be drawn on top of the assigned contact photo. |
void | setPrioritizedMimeType(String prioritizedMimeType) Set which mimetype should be prioritized in the QuickContacts UI. |