How do I display a contact#39;s photo from the contact#39;s id?(如何从联系人的 id 显示联系人的照片?)
问题描述
此代码(在我的 CustomAdapter 类中)仅根据向我发送短信的人显示联系人 ID,并将其放入 ArrayList,然后显示列表.
This code (within my CustomAdapter class) displays only the contact id based on the who sent me text messages and puts them into an ArrayList, then displays the list.
我在每个联系人 ID 旁边都有一个名为 holder.photo
的 ImageView.如何在 ImageView 中显示联系人的照片?
I have a ImageView called holder.photo
next to each contact id. How would I go about displaying the contact's photo in the in the ImageView?
目前,我的列表视图显示如下:
Currently, my listview displays this:
- android_icon-----John Doe
- android_icon-----简·史密斯
- android_icon-----富巴尔
推荐答案
试试这个..
获取位图图像
这篇关于如何从联系人的 id 显示联系人的照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!