Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.koushikdutta.ion.builder;
 
 import  android.graphics.Bitmap;
 import  android.graphics.drawable.Drawable;
 import  android.view.animation.Animation;

Created by koush on 5/30/13.
 
Set a placeholder on the ImageView while the request is loading

Parameters:
bitmap
Returns:
    public IonImageViewRequestBuilder placeholder(Bitmap bitmap);

    
Set a placeholder on the ImageView while the request is loading

Parameters:
drawable
Returns:
    public IonImageViewRequestBuilder placeholder(Drawable drawable);

    
Set a placeholder on the ImageView while the request is loading

Parameters:
resourceId
Returns:
    public IonImageViewRequestBuilder placeholder(int resourceId);

    
Set an error image on the ImageView if the request fails to load

Parameters:
bitmap
Returns:
    public IonImageViewRequestBuilder error(Bitmap bitmap);

    
Set an error image on the ImageView if the request fails to load

Parameters:
drawable
Returns:
    public IonImageViewRequestBuilder error(Drawable drawable);

    
Set an error image on the ImageView if the request fails to load

Parameters:
resourceId
Returns:
    public IonImageViewRequestBuilder error(int resourceId);

    
If an ImageView is loaded successfully from a remote source or file storage, animate it in using the given Animation. The default animation is to fade in.

Parameters:
in Animation to apply to the ImageView after the request has loaded and the Bitmap has been retrieved.
Returns:
    public IonImageViewRequestBuilder animateIn(Animation in);

    
If the ImageView needs to load from a remote source or file storage, the given Animation will be used while it is loading.

Parameters:
load Animation to apply to the imageView while the request is loading.
Returns:
    public IonImageViewRequestBuilder animateLoad(Animation load);
New to GrepCode? Check out our FAQ X