QuickContactBadge--------------关联联系人-----------------------
生活随笔
收集整理的這篇文章主要介紹了
QuickContactBadge--------------关联联系人-----------------------
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?
?
xml--------------布局-----------------------
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<QuickContactBadge
android:id="@+id/badge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/tx"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="16dp"
android:text="我的偶像"/>
</LinearLayout>
MainActivity--------------------調(diào)用------------------------ QuickContactBadge badge;
@Override
public void onCreate(Bundle saveInstanceState){
super.onCreate(saveInstanceState);
setContentView(R.layout.quickcontactbadge);
badge=(QuickContactBadge) findViewById(R.id.badge);
badge.assignContactFromPhone("001-888888",false);
}
轉(zhuǎn)載于:https://www.cnblogs.com/ZeroMurder/p/5929976.html
總結(jié)
以上是生活随笔為你收集整理的QuickContactBadge--------------关联联系人-----------------------的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Spring MVC的web.xml配置
- 下一篇: Atitit 《控制论原理与概论atti