Open alexxkovalchuk opened 1 year ago
Hello @alexxkovalchuk ,
in default image loading plugin, error drawable has no special meaning, it is just a replacement for a failed image. So it goes through all the process - including the ImageSize
resolving. In your snippet 100% width is applied, so it is applied to both normal image and error image.
As a workaround, you can create a wrapper drawable that would consume all available bounds, but inside would position error drawable according to your logic
I am using the AbstractMarkwonPlugin to make an image full width, also I am using the ErrorHandler. It seems to me that they conflict with each other, because the error drawable is also displayed in full width. I want to note that this does not happen with the PlaceholderProvider.
With the PlaceholderProvider everything looks good.