내 응용 프로그램에서 지연로드 기술. this tutorial을 참조했습니다. 에뮬레이터 (안드로이드 2.1)에서 이미지가로드되지만 장치 (안드로이드 2.3.4)에서 이미지가로드되지 않습니다. 안드로이드 아이콘이로드 중입니다.장치의 비트 맵로드
내의 getView 코드 :
if (convertView == null) {
//this should only ever run if you do not get a view back
LayoutInflater inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = inflater.inflate(R.layout.homelistrow, null);
holder = new ViewHolder();
image = (ImageView) convertView.findViewById(R.id.icon);
holder.text = (TextView) convertView.findViewById(R.id.name_label);
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
}
//
imageLoader.DisplayImage(kickerimage[position], image);
// holder.image.setImageBitmap(bitmap);
////// items=itemsarray[position];
holder.text.setText(itemsarray[position]);
나는이이 문제를 해결하기 위해 device.Help에서 일어나는 이유를 완전히 혼란 스러워요. 로드 이미지 이전
Thanks Pramod J George .. 이것은 트릭을 만들었습니다. 문제가 해결되었습니다. –
Subburaj