// Path: glidesample/src/main/java/example/com/glidesample/model/CustomImageSizeModel.java
// public interface CustomImageSizeModel {
//     String requestCustomSizeUrl(int width, int height);
// 
//     String getBaseUrl();
// }


import android.content.Context;
import android.util.Log;
import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.module.GlideModule;
import java.io.InputStream;
import example.com.glidesample.model.CustomImageSizeModel;
package example.com.glidesample.glide;





/**
 * Created by Administrator on 2016/7/7.
 */
public class CustomImageSizeGlideModule implements GlideModule {
    @Override
    public void applyOptions(Context context, GlideBuilder builder) {
    }

    @Override
    public void registerComponents(Context context, Glide glide) {
// Path: glidesample/src/main/java/example/com/glidesample/model/CustomImageSizeModel.java
// public interface CustomImageSizeModel {
//     String requestCustomSizeUrl(int width, int height);
// 
//     String getBaseUrl();
// }


// Path: glidesample/src/main/java/example/com/glidesample/glide/CustomImageSizeGlideModule.java
import android.content.Context;
import android.util.Log;
import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.module.GlideModule;
import java.io.InputStream;
import example.com.glidesample.model.CustomImageSizeModel;

package example.com.glidesample.glide;





/**
 * Created by Administrator on 2016/7/7.
 */
public class CustomImageSizeGlideModule implements GlideModule {
    @Override
    public void applyOptions(Context context, GlideBuilder builder) {
    }

    @Override
    public void registerComponents(Context context, Glide glide) {
        glide.register(CustomImageSizeModel.class, InputStream.class, new CustomImageSizeModelFactory());