EverythingMe / overscroll-decor

Android: iOS-like over-scrolling effect applicable over almost all scrollable Android views.
BSD 2-Clause "Simplified" License
2.85k stars 400 forks source link

Cannot resolve method attach() #48

Open gkermo opened 7 years ago

gkermo commented 7 years ago

Hi there,

I'm defining an HorizontalOverScrollBounceEffectDecorator that way:

HorizontalOverScrollBounceEffectDecorator decor = new HorizontalOverScrollBounceEffectDecorator(new RecyclerViewOverScrollDecorAdapter(mRecyclerView), 2.5f, 5f, HorizontalOverScrollBounceEffectDecorator.DEFAULT_DECELERATE_FACTOR);

When I try to run

decor.attach();

I got a compiler error:

Cannot resolved method attach()

I can do decor.detach(); though.

ben-p-commits commented 5 years ago

I am having the same issue- it's protected whereas detach is public. What's up? It's described as if it were public in the ReadMe.

Love the repo though, excellent quality. 👍

ranbena commented 5 years ago

@rotemmiz wdyt?