标签:
import java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy; import com.nostra13.universalimageloader.core.DisplayImageOptions; import com.nostra13.universalimageloader.core.ImageLoader; import com.nostra13.universalimageloader.core.ImageLoaderConfiguration; import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer; import android.app.Application; public class My extends Application { @Override public void onCreate() { // TODO Auto-generated method stub ImageLoaderConfiguration img = new ImageLoaderConfiguration.Builder( this).defaultDisplayImageOptions(null).build(); ImageLoader.getInstance().init(img); } public static DisplayImageOptions getOptions() { DisplayImageOptions op = new DisplayImageOptions.Builder().displayer( new RoundedBitmapDisplayer(50)).build(); return op; } }
标签:
原文地址:http://www.cnblogs.com/zhang117/p/5138263.html