我正在尝试将一个QuickContactBadge添加到列表视图中,它工作得很好,并且可以点击,但目前没有显示任何图像,我确信有一种方法可以让它显示联系人的图像,但我不确定如何操作。有人能帮上忙吗?
我的代码是:
<QuickContactBadge android:id="@+id/contact"
android:layout_width="54dp" android:layout_height="54dp"></QuickContactBadge>和
QuickContactBadge badgeSmall = (QuickContactBadge)messageView.findViewById(R.id.contact);
badgeSmall.assignContactFromEmail(message1.geteMail(), true);
badgeSmall.setMode(ContactsContract.QuickContact.MODE_SMALL);发布于 2011-10-22 01:46:33
检出此tutorial。我认为您需要确保您的光标包含PHOTO_ID列。
https://stackoverflow.com/questions/7853174
复制相似问题