use of com.volokh.danylo.videolist.video_list_demo.adapter.items.BaseVideoItem in project VideoPlayerManager by danylovolokh.
the class VideoRecyclerViewAdapter method onBindViewHolder.
@Override
public void onBindViewHolder(VideoViewHolder viewHolder, int position) {
BaseVideoItem videoItem = mList.get(position);
videoItem.update(position, viewHolder, mVideoPlayerManager);
}
use of com.volokh.danylo.videolist.video_list_demo.adapter.items.BaseVideoItem in project VideoPlayerManager by danylovolokh.
the class VideoListViewAdapter method getView.
@Override
public View getView(int position, View convertView, ViewGroup parent) {
BaseVideoItem videoItem = mList.get(position);
View resultView;
if (convertView == null) {
resultView = videoItem.createView(parent, mContext.getResources().getDisplayMetrics().widthPixels);
} else {
resultView = convertView;
}
videoItem.update(position, (VideoViewHolder) resultView.getTag(), mVideoPlayerManager);
return resultView;
}
use of com.volokh.danylo.videolist.video_list_demo.adapter.items.BaseVideoItem in project VideoPlayerManager by danylovolokh.
the class VideoRecyclerViewAdapter method onCreateViewHolder.
@Override
public VideoViewHolder onCreateViewHolder(ViewGroup viewGroup, int position) {
BaseVideoItem videoItem = mList.get(position);
View resultView = videoItem.createView(viewGroup, mContext.getResources().getDisplayMetrics().widthPixels);
return new VideoViewHolder(resultView);
}
Aggregations