@Override
public Object instantiateItem(ViewGroup container, int position) {
final View itemView = mLayoutInflater.inflate(R.layout.layout_image_slider_item, container, false);
ImageView imageView = (ImageView) itemView.findViewById(R.id.img_pager_slider);
Picasso.with(App.getContext()).
load(getUrl(position)).
error(R.drawable.ic_broken_image).
memoryPolicy(MemoryPolicy.NO_CACHE).
into(imageView, new Callback() {
@Override
public void onSuccess() {
itemView.findViewById(R.id.pb_fullscreen_loading).setVisibility(View.GONE);
}
@Override
public void onError() {
}
});
container.addView(itemView);
return itemView;
}
ImageSliderAdapter.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:onliner_old
作者:
评论列表
文章目录