0

DisplayImageOptions take drawable resource id for these methods -

.showStubImage(R.drawable.default_grid_drawable)
.showImageForEmptyUri(R.drawable.default_grid_drawable)
.showImageOnFail(R.drawable.default_grid_drawable)

Can I use dynamically created GradientDrawable or ShapeDrawable instead of static resources.

Mihir
  • 2,064
  • 2
  • 21
  • 28

1 Answers1

1

No. You can try to use ImageLoadingListener.onLoadingStarted(...) to set you drawable.

nostra13
  • 12,377
  • 3
  • 33
  • 43
  • I modified the source is it ok with you? – Mihir Aug 14 '13 at 09:11
  • Now I can use static resource like `getResources().getDrawable(R.drawable.my_drawable)` or simply put dynamic `GradientDrawable` or `ShapeDrawable`. – Mihir Aug 14 '13 at 09:23
  • 1
    You are free to use/change UIL sources as you want (according copyright :) ). – nostra13 Aug 14 '13 at 12:47
  • @Mihir Im facing the same problem as you have. can you please post your code? – dasdasd Aug 29 '13 at 07:22
  • I modified the source code a little bit. Here is the [link](https://dl.dropboxusercontent.com/u/110577076/UniversalImageLoader.rar) for the modified library project. Its working absolutely fine. – Mihir Aug 29 '13 at 08:31