안녕하세요! ListView 스크롤하면 로딩되기...를 하기 위해 코딩을 하고 있습니다.


사실 대충 나름 짜봤는데요, 이상하게 아예 아이템들이 하나도 안뜨길래 차근차근 해봤더니,


========아래는 소스의 일부입니다 ==========


private void fillData(Cursor c) {

arrClassic.clear();

while (c.moveToNext()) {

String strtitle = c.getString(0);

String strdate = c.getString(2);

String strimg = c.getString(5);

String strplace = c.getString(3);

//DB이용해서 채우는 것

ClassicInfo stationInfo = new ClassicInfo(strtitle,

strdate,strimg,strplace);

arrClassic.add(stationInfo);

}

totalListNum = arrClassic.size();

if(totalListNum>10) {

for(itemNum=0;itemNum<10;itemNum++){

willShow.add(arrClassic.get(itemNum));

}

} else {

for(itemNum=0;itemNum<totalListNum;itemNum++){

willShow.add(arrClassic.get(itemNum));

}

}

// 어댑터를 생성합니다.

listView = (ListView) findViewById(android.R.id.list);

mAdapter = new StationAdapter(this, R.layout.row, arrClassic);

setListAdapter(mAdapter);

mListId = IConstant.LIST_FAVORITE;


c.close();

}


저 위의 진한 부분이 없으면 예상한대로 동작하고, 없으면 아무 아이템도 출력되지 않네요 ㅠㅠ

사실 get 함수에 문제가 있나싶어서 복사도 해보고 array로 만들어 옮겨도 보았지만 안되네요 ㅠㅠ

고수님들~ 힌트좀 주세요!!