// Path: glidesample/src/main/java/example/com/glidesample/model/Url.java
// public interface Url {
//     String IMAGE_URL_TROCHILIDAE = "http://o9xuvf3m3.bkt.clouddn.com/trochilidae.jpg";
//     String IMAGE_URL_NEW_YORK = "http://o9xuvf3m3.bkt.clouddn.com/new_york.jpg";
//     String IMAGE_URL_PERU = "http://o9xuvf3m3.bkt.clouddn.com/peru.jpg";
//     String IMAGE_URL_FRANCE_1 = "http://o9xuvf3m3.bkt.clouddn.com/france-217.jpg";
//     String IMAGE_URL_FRANCE_2 = "http://o9xuvf3m3.bkt.clouddn.com/france-220.jpg";
//     String IMAGE_URL_FRANCE_3 = "http://o9xuvf3m3.bkt.clouddn.com/france-216.jpg";
//     String IMAGE_URL_FRANCE_4 = "http://o9xuvf3m3.bkt.clouddn.com/france-221.jpg";
// 
// }


import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ProgressBar;
import com.bumptech.glide.DrawableRequestBuilder;
import com.bumptech.glide.Glide;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable;
import com.bumptech.glide.request.RequestListener;
import com.bumptech.glide.request.animation.GlideAnimation;
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.target.Target;
import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import example.com.glidesample.R;
import example.com.glidesample.model.Url;
    @Bind(R.id.btnFade)
    Button mBtnFade;
    @Bind(R.id.btnLeft)
    Button mBtnLeft;
    @Bind(R.id.btnScale)
    Button mBtnScale;
    @Bind(R.id.btnAllAnimate)
    Button mBtnAllAnimate;
    @Bind(R.id.btnPriority)
    Button mBtnPriority;
    @Bind(R.id.btnDownLoad)
    Button mBtnDownLoad;
    @Bind(R.id.btnBackground)
    Button mBtnBackground;
    @Bind(R.id.ivTonLeft)
    ImageView mIvTonLeft;
    @Bind(R.id.ivTonyRight)
    ImageView mIvTonyRight;
    private Context mContext;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_simple);
        ButterKnife.bind(this);
        mContext = this;
    }

    private DrawableRequestBuilder getCommGlide() {
        return Glide.with(mContext)
// Path: glidesample/src/main/java/example/com/glidesample/model/Url.java
// public interface Url {
//     String IMAGE_URL_TROCHILIDAE = "http://o9xuvf3m3.bkt.clouddn.com/trochilidae.jpg";
//     String IMAGE_URL_NEW_YORK = "http://o9xuvf3m3.bkt.clouddn.com/new_york.jpg";
//     String IMAGE_URL_PERU = "http://o9xuvf3m3.bkt.clouddn.com/peru.jpg";
//     String IMAGE_URL_FRANCE_1 = "http://o9xuvf3m3.bkt.clouddn.com/france-217.jpg";
//     String IMAGE_URL_FRANCE_2 = "http://o9xuvf3m3.bkt.clouddn.com/france-220.jpg";
//     String IMAGE_URL_FRANCE_3 = "http://o9xuvf3m3.bkt.clouddn.com/france-216.jpg";
//     String IMAGE_URL_FRANCE_4 = "http://o9xuvf3m3.bkt.clouddn.com/france-221.jpg";
// 
// }


// Path: glidesample/src/main/java/example/com/glidesample/ui/SimpleActivity.java
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ProgressBar;
import com.bumptech.glide.DrawableRequestBuilder;
import com.bumptech.glide.Glide;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable;
import com.bumptech.glide.request.RequestListener;
import com.bumptech.glide.request.animation.GlideAnimation;
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.target.Target;
import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import example.com.glidesample.R;
import example.com.glidesample.model.Url;

    @Bind(R.id.btnFade)
    Button mBtnFade;
    @Bind(R.id.btnLeft)
    Button mBtnLeft;
    @Bind(R.id.btnScale)
    Button mBtnScale;
    @Bind(R.id.btnAllAnimate)
    Button mBtnAllAnimate;
    @Bind(R.id.btnPriority)
    Button mBtnPriority;
    @Bind(R.id.btnDownLoad)
    Button mBtnDownLoad;
    @Bind(R.id.btnBackground)
    Button mBtnBackground;
    @Bind(R.id.ivTonLeft)
    ImageView mIvTonLeft;
    @Bind(R.id.ivTonyRight)
    ImageView mIvTonyRight;
    private Context mContext;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_simple);
        ButterKnife.bind(this);
        mContext = this;
    }

    private DrawableRequestBuilder getCommGlide() {
        return Glide.with(mContext)
                .load(Url.IMAGE_URL_PERU)