2010-08-04 5 views

답변

0

SpinnerAdapter을 사용해 보셨습니까? getView 메서드에서 loadContactPhoto을 사용하고 getDropDownViewgetView으로 호출 할 수 있습니다. 그러면 기본보기에 연락처의 이미지를로드하여 작업을 완료해야합니다.

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; 
} 
관련 문제