列表中的视频查看重复,但视频ID不同,它在Lazy列表视图中,任何人都可以帮助我..
public View getView(final int position, View convertView, ViewGroup parent) {
final ViewHolder holder;
if(convertView == null){
convertView = layoutInflater.inflate(R.layout.video_gallery, null);
holder = new ViewHolder(convertView);
convertView.setTag(holder);
}else{
holder = (ViewHolder)convertView.getTag();
}
final Catalog catalog = new Catalog("foCLf2tP83a1qOnG8QYuEZzbqUyOoQ00ihFh1EIVeFVmux7iJgPB9w..");
holder.video.stopPlayback();
memoryCache.clear();
String video_id = myVideo.get(position).getMedia_id();
catalog.findVideoByID(video_id, new VideoListener() {
@Override
public void onError(String error) {
// TODO Auto-generated method stub
throw new RuntimeException(error);
}
@Override
public void onVideo(Video video) {
holder.video.add(video);
}
});
请以任何方式帮助我..