这是我的代码:
public View getView(int position, View convertView, ViewGroup parent) {
View rowView = convertView;
rowView = inflater.inflate(R.layout.adapter_movie_trailers, parent, false);
final Trailer trailer = this.getTrailer(position);
ImageView imageView = (ImageView) rowView
.findViewById(R.id.adapter_movie_trailer_thumb);
UrlImageViewHelper.setUrlDrawable(imageView, trailer.thumb,
R.drawable.without_poster);
TextView trailerTitle = (TextView) rowView
.findViewById(R.id.adapter_movie_trailer_title);
trailerTitle.setText(trailer.title);
TextView trailerDuration = (TextView) rowView
.findViewById(R.id.adapter_movie_trailer_duration);
trailerDuration.setText(trailer.duration);
notifyDataSetChanged();
return rowView;
}
我的应用程序在尝试为 rowView 充气时似乎处于无限循环中。为什么?