안녕하세요.

코드좀 봐주세요 ^^;;

 

-------------------------------------------------------------------------------------------

oProfile.add(new CameraItem(R.drawable.addcam_dummy));

 

CameraListAdapter adapter = new CameraListAdapter(
    this,
    R.layout.camera_list_item,
    oProfile);
  
  mDSVListView.setAdapter(adapter);

-------------------------------------------------------------------------------------------

public CameraListAdapter(Context context, int layout, ArrayList<CameraItem> profiles)
    {  
     _inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);//= LayoutInflater.from(context);
        _profiles = profiles;  
        _layout = layout;

       System.out.println("test!!");
    }  

 

public View getView(int pos, View convertView, ViewGroup parent)
    {  
        if(convertView == null) {
            convertView = _inflater.inflate(_layout, parent, false);
        }
        System.out.println("pos : " + pos + " len : " + getCount());

     }

--------------------------------------------------------------------------------------------

 

문제점:

test!!

pos : 0 len :1

pos : 0 len :1

pos : 0 len :1

 

원하는 출력:

test!!

pos : 0 len : 1

 

이렇게 호출된다는 것입니다...ㅠ 왜 아무것도 안했는데 .. getview가 왜 3번이 호출될까요??

아시는 분 있으시면 답변좀 부탁드릴께요 ^^