public void setimg(final Context ctx, final String postimag) {
final ImageView postimage = (ImageView)view.findViewById(R.id.postimage);
Picasso.with(ctx).load(postimag).networkPolicy(NetworkPolicy.OFFLINE).into(postimage, new Callback() {
@Override
public void onSuccess() {
}
@Override
public void onError() {
Picasso.with(ctx).load(postimag).into(postimage);
}
});
}
java类com.squareup.picasso.Callback的实例源码
Announcements.java 文件源码
项目:SVNITChapters
阅读 25
收藏 0
点赞 0
评论 0
ACM.java 文件源码
项目:SVNITChapters
阅读 21
收藏 0
点赞 0
评论 0
public void setimg(final Context ctx, final String postimag)
{
final ImageView postimage = (ImageView)view.findViewById(R.id.postimage);
Picasso.with(ctx).load(postimag).networkPolicy(NetworkPolicy.OFFLINE).into(postimage, new Callback() {
@Override
public void onSuccess() {
}
@Override
public void onError() {
Picasso.with(ctx).load(postimag).into(postimage);
}
});
}
SAE.java 文件源码
项目:SVNITChapters
阅读 19
收藏 0
点赞 0
评论 0
public void setimg(final Context ctx, final String postimag)
{
final ImageView postimage = (ImageView)view.findViewById(R.id.postimage);
Picasso.with(ctx).load(postimag).networkPolicy(NetworkPolicy.OFFLINE).into(postimage, new Callback() {
@Override
public void onSuccess() {
}
@Override
public void onError() {
Picasso.with(ctx).load(postimag).into(postimage);
}
});
}
GDG.java 文件源码
项目:SVNITChapters
阅读 23
收藏 0
点赞 0
评论 0
public void setimg(final Context ctx, final String postimag)
{
final ImageView postimage = (ImageView)view.findViewById(R.id.postimage);
Picasso.with(ctx).load(postimag).networkPolicy(NetworkPolicy.OFFLINE).into(postimage, new Callback() {
@Override
public void onSuccess() {
}
@Override
public void onError() {
Picasso.with(ctx).load(postimag).into(postimage);
}
});
}
LAC.java 文件源码
项目:SVNITChapters
阅读 20
收藏 0
点赞 0
评论 0
public void setimg(final Context ctx, final String postimag)
{
final ImageView postimage = (ImageView)view.findViewById(R.id.postimage);
Picasso.with(ctx).load(postimag).networkPolicy(NetworkPolicy.OFFLINE).into(postimage, new Callback() {
@Override
public void onSuccess() {
}
@Override
public void onError() {
Picasso.with(ctx).load(postimag).into(postimage);
}
});
}
Announcement.java 文件源码
项目:SVNITChapters
阅读 23
收藏 0
点赞 0
评论 0
public void setimg(final Context ctx, final String postimag)
{
final ImageView postimage = (ImageView)view.findViewById(R.id.postimage);
Picasso.with(ctx).load(postimag).networkPolicy(NetworkPolicy.OFFLINE).into(postimage, new Callback() {
@Override
public void onSuccess() {
}
@Override
public void onError() {
Picasso.with(ctx).load(postimag).into(postimage);
}
});
}
CHRD.java 文件源码
项目:SVNITChapters
阅读 21
收藏 0
点赞 0
评论 0
public void setimg(final Context ctx, final String postimag)
{
final ImageView postimage = (ImageView)view.findViewById(R.id.postimage);
Picasso.with(ctx).load(postimag).networkPolicy(NetworkPolicy.OFFLINE).into(postimage, new Callback() {
@Override
public void onSuccess() {
}
@Override
public void onError() {
Picasso.with(ctx).load(postimag).into(postimage);
}
});
}
UserProfileAdapter.java 文件源码
项目:FirebasePost
阅读 20
收藏 0
点赞 0
评论 0
private void bindPhoto(final PhotoViewHolder holder, int position) {
Picasso.with(context)
.load(photos.get(position))
.resize(cellSize, cellSize)
.centerCrop()
.into(holder.ivPhoto, new Callback() {
@Override
public void onSuccess() {
animatePhoto(holder);
}
@Override
public void onError() {
}
});
if (lastAnimatedItem < position) lastAnimatedItem = position;
}
PublishActivity.java 文件源码
项目:FirebasePost
阅读 27
收藏 0
点赞 0
评论 0
private void loadThumbnailPhoto() {
ivPhoto.setScaleX(0);
ivPhoto.setScaleY(0);
Picasso.with(this)
.load(photoUri)
.centerCrop()
.resize(photoSize, photoSize)
.into(ivPhoto, new Callback() {
@Override
public void onSuccess() {
ivPhoto.animate()
.scaleX(1.f).scaleY(1.f)
.setInterpolator(new OvershootInterpolator())
.setDuration(400)
.setStartDelay(200)
.start();
}
@Override
public void onError() {
Toast.makeText(getApplicationContext(), "error", Toast.LENGTH_LONG).show();
}
});
}
AudioPlayerActivity.java 文件源码
项目:pineapple
阅读 40
收藏 0
点赞 0
评论 0
@NeedsPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)
public void loadArtworkView(final EMPlaylistManager.PlaylistItem currentItem) {
picasso.load(currentItem.getArtworkUrl()).transform(new BlurTransformer(currentItem.getArtworkUrl())).into(artworkView, new Callback() {
@Override
public void onSuccess() {
RotateAnimation ra = new RotateAnimation(0, 360, RotateAnimation.RELATIVE_TO_SELF, 0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f);
ra.setRepeatMode(Animation.INFINITE);
ra.setRepeatCount(Animation.INFINITE);
ra.setDuration(12000l);
ra.setInterpolator(new LinearInterpolator());
artworkView.startAnimation(ra);
}
@Override
public void onError() {
}
});
}