본문 바로가기

Development/Android

[Android Library] Image download library~!

아주 잘만든 이미지 다운로드 라이브러리이다~! Image download가 필요한 서비스를 개발할때? 유용할듯하다~!

주소는 여기에~!



간단 사용방법

1. Application에서 다음과 같은 함수를 만든다.~~! 그리고 호출~!

private void initImageLoader () {

final DisplayImageOptions option = new DisplayImageOptions.Builder()

.showImageOnLoading(R.drawable.ic_launcher)

.cacheInMemory(true)

.resetViewBeforeLoading(false)

.build();

final ImageLoaderConfiguration configuration = new ImageLoaderConfiguration.Builder(this.getApplicationContext())

  .defaultDisplayImageOptions(option)

  .build();

ImageLoader.getInstance().init(configuration);

}//end initImageLoader Method


2. 이미지 다운로드~!


ImageLoader.getInstance().displayImage(uri, imageView);