Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PicasoLoadImage extends Application {
- public static String loadImagePicaso(String id, Context ctx, ImageView template) {
- String URL_PROFILE = null;
- Picasso.with( ctx )
- .load( URL_PROFILE )
- .networkPolicy( NetworkPolicy.OFFLINE )
- .placeholder( R.drawable.no_profile )
- .into( template, new Callback() {
- @Override
- public void onSuccess() {
- }
- @Override
- public void onError() {
- }
- } );
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement