Android7.0中文文档 (API)--- QuickContactBadge

完整内容,请查看: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属性

From class android.widget.ImageView
From class android.view.View

继承常量

From class android.view.View

字段

protected String[]mExcludeMimes

继承字段

From class 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方法

voidassignContactFromEmail(String emailAddress, boolean lazyLookup, Bundle extras)

Assign a contact based on an email address.
根据电子邮件地址加载一个联系人。

voidassignContactFromEmail(String emailAddress, boolean lazyLookup)

Assign a contact based on an email address.
根据电子邮件地址加载一个联系人。

voidassignContactFromPhone(String phoneNumber, boolean lazyLookup)

Assign a contact based on a phone number.
根据电话号码加载一个联系人。

voidassignContactFromPhone(String phoneNumber, boolean lazyLookup, Bundle extras)

Assign a contact based on a phone number.
根据电话号码加载一个联系人。

voidassignContactUri(Uri contactUri)

Assign the contact uri that this QuickContactBadge should be associated with.
加载联系人的uri,与此QuickContactBadge相关联。

voiddrawableHotspotChanged(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.
每当视图热点发生改变时,调用此方法,并需要传播到由视图管理的drawable或子视图。

CharSequencegetAccessibilityClassName()

Return the class name of this object to be used for accessibility purposes.
返回此对象的类名,用于辅助功能目的。

voidonClick(View v)

Called when a view has been clicked.
当一个视图被点击并保持时调用。(长按)

voidsetExcludeMimes(String[] excludeMimes)

Set a list of specific MIME-types to exclude and not display.
设置一个指定的mime类型的列表,以排除和不显示。

voidsetImageToDefault()

Resets the contact photo to the default state.
重置联系人的照片为默认状态。

voidsetMode(int size)

This call has no effect anymore, as there is only one QuickContact mode
这个调用没有任何效果,因为只有QuickContact模式。

voidsetOverlay(Drawable overlay)

Assigns the drawable that is to be drawn on top of the assigned contact photo.
设置drawable,它绘制相关联的联系人照片的顶层。

voidsetPrioritizedMimeType(String prioritizedMimeType)

Set which mimetype should be prioritized in the QuickContacts UI.
设置在QuickContacts UI中应该优先考虑的mime类型。

保护方法

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值