/* * Copyright (C) 2014 pengjianbo(pengjianbosoft@gmail.com), Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.gilelibrary.utils; import android.content.Context; import android.widget.ImageView; import java.io.Serializable; /** * Desction:imageloader抽象类,外部需要实现这个类去加载图片, GalleryFinal尽力减少对第三方库的依赖,所以这么干了 * Author:pengjianbo * Date:15/10/10 下午5:27 */ public interface ImageLoader extends Serializable { void displayImage(Context activity, String path, ImageView imageView); void displayImage(Context activity, String path, ImageView imageView, int defaultRes, int width, int height); void displayImage(Context activity, String path, ImageView imageView, int defaultRes,int defaultError, int width, int height); void clearDiskCache(Context context); void clearMemoryCache(); }