Code example for BitmapFactory.Options

Methods: requestCancelDecode

0
    } 
 
    @Override 
    public void onCancel() { 
        if (bitmapFactoryOpts != null) {
            bitmapFactoryOpts.requestCancelDecode();
        } 
    } 
 
    private void cancelPreviousJob() { 
        ImageView iv = wrImageView.get();
        if (iv != null) {
            Job job = (Job) iv.getTag();
            if (job != null) job.cancel();
            iv.setTag(null);
        } 
    } 
 
    private void setImageResource(int id) {
        ImageView iv = wrImageView.get();
        if (iv != null) iv.setImageResource(id);