nostra13 / Android-Universal-Image-Loader

Powerful and flexible library for loading, caching and displaying images on Android.
Apache License 2.0
16.78k stars 6.1k forks source link

Split displayer #832

Open 2dxgujun opened 9 years ago

2dxgujun commented 9 years ago

Hi. I need to display both round corner bitmap and fade-in animation.#617 Something comes to my mind:

I think it can split in two things:

  1. displayer
  2. animator

I think can set the image drawable in displayer and animte the view in animator.

And the usage may be like:

DisplayImageOptions options= new DisplayImageOptions.Builder()
            ...
            .displayer(new RoundedBitmapDisplayer(10))
            .animator(new FadeInBitmapAnimator(500))
            .build();

Consider a LinkedDisplayer?

nostra13 commented 9 years ago

What about Decorator pattern? Or Composite?