Closed katie-cb closed 5 years ago
This would not even work...
This is live code in my project, its been tested and working.
Did you test it?
Yes I checkout the code and tested it. Did you forget tu push something else? If duplicatedTarget is passed to Builder it will crash, as the given View already has a parent.
You need to create a new view that doesn't have a parent attached, instead of reusing the view. Maybe I can add some documentations.
For example
if (imageUrl.endsWith(".gif")) {
val duplicate = MyImageView(itemView.context)
// load gif
duplicate.loadImage(imageUrl)
builder.setTargetDuplicate(duplicate)
}
Please update the MR with an example.
Allow dev define the view to be used for zooming. This will allow gif support as well as complex layout zoom support.