0
모든 연락처의 연락처 사진을로드하고 갤러리에 표시하려고합니다. 위젯 ... 쿼리를 생성합니까? 나는 단순히 People.loadcontactphoto를하려고했지만 오류가 발생했습니다 .... 쉬운 방법은 없나요?Android 프로그래밍 ... 연락처 사진을로드하여 앱에서 사용할 수 있도록하려면 어떻게해야하나요?
모든 연락처의 연락처 사진을로드하고 갤러리에 표시하려고합니다. 위젯 ... 쿼리를 생성합니까? 나는 단순히 People.loadcontactphoto를하려고했지만 오류가 발생했습니다 .... 쉬운 방법은 없나요?Android 프로그래밍 ... 연락처 사진을로드하여 앱에서 사용할 수 있도록하려면 어떻게해야하나요?
SpinnerAdapter
을 사용해 보셨습니까? getView
메서드에서 loadContactPhoto
을 사용하고 getDropDownView
을 getView
으로 호출 할 수 있습니다. 그러면 기본보기에 연락처의 이미지를로드하여 작업을 완료해야합니다.
public View getDropDownView(int position, View convertView, ViewGroup parent) {
return getView(position, convertView, parent);
}
public View getView(int position, View row, ViewGroup parent) {
//loadContactPhoto
//set the view image to be the contact photo
//...
//This is an over simplification of the method
//a custom layout may need to be inflated.
return row;
}