imablanco / Zoomy

Zoomy is an easy to use pinch-to-zoom Android library
918 stars 120 forks source link

Could not apply zoomy inside an adapter #28

Closed ghost closed 5 years ago

ghost commented 5 years ago

I tried implementing zoomy using the documentation and for some reason, I can't implement it inside an adapter, am I doing some error here?

 Zoomy.Builder builder = new Zoomy.Builder(AdvancedItemListAdapter.this)
                    .target(holder.mItemImg);
            builder.register();
ghost commented 5 years ago

Getting that I can't resolve constructor

imablanco commented 5 years ago

You need to pass a valid window container (Activity, Dialog...) to Builder constructor. Seems you are passing just the adapter instance.