fresco icon indicating copy to clipboard operation
fresco copied to clipboard

please make pressedStateOverlayImage support ripple effect

Open lizhiqiang-unnoo opened this issue 11 years ago • 6 comments

In fresco 0.5.2, set fresco:pressedStateOverlayImage to a ripple drawable does not work. Currently I have to extend SimpleDraweeView like ForegroundLinearLayout.

Wish fresco support it. Thanks!

lizhiqiang-unnoo avatar Jun 24 '15 02:06 lizhiqiang-unnoo

@lizhiqiang-unnoo I tried extending SimpleDraweeView and adding ripple selector to it by refering to ForegroundLinearLayout, but its no working for me. If possible can you please share the work around you did for adding ripple on SimpleDraweeView.

I am able to add ripple effect on top SimpleDraweeView by using its "overlayImage" attribute. But hotspot is showing from center which I want from the touch position. I have created a issue #912 for it.

sagartrehan avatar Jan 15 '16 13:01 sagartrehan

@sagartrehan Hope this helps :)

ForegroundDraweeView.java

boxcounter avatar Jan 18 '16 00:01 boxcounter

Thanks, I will test it and let you know.

sagartrehan avatar Jan 18 '16 05:01 sagartrehan

Thanks boxcounter. It is working fine. :)

sagartrehan avatar Jan 18 '16 06:01 sagartrehan

Glad to hear that :P

boxcounter avatar Jan 19 '16 01:01 boxcounter

I think there is an easy fix to this. Let's track this in #912.

plamenko avatar Jan 20 '16 15:01 plamenko