fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Supporting other widget?

Open MarkMjw opened this issue 11 years ago • 1 comments

The ImageView can be replaced by SimpleDraweeView in Fresco, but is Fresco supporting other widgets in Android, such as TextView or Layout,sometimes we need loading an image to the background of view?

MarkMjw avatar Mar 28 '15 00:03 MarkMjw

One way of achieving that is to subclass the view in question (E.g. TextView). In that subclass you can have a DraweeHolder and you can use its top-level-drawable as a regular drawable. You must be careful to forward attach/detach events properly to the holder. See: http://frescolib.org/docs/writing-custom-views.html#_

plamenko avatar Mar 28 '15 00:03 plamenko