Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added SwipeEnabled Interface for logical implementation of allow/disallow swipe in RecyclerView and ListView and upgrade for support in Android Studio #346

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

harsu-ag
Copy link

Added an interface SwipeEnabled. It can be used to enable or disable swipe.
I have kept the previoussetSwipeEnabled(boolean ...) although if SwipeEnabled is set, the result in setSwipeEnabled(boolean ...) is ignored.

Added an implementation of how to use this interface in RecyclerViewAdapter

Apart from that I have also added a few upgrades to Gradle to run the project in latest Android Studio.

Not changed anything else.

@joaolisboa
Copy link

joaolisboa commented May 18, 2017

Any chance on getting this merged? I could really use this but I'm not sure about having to maintain a version just for this even though the changes don't seem too big.

edit: nevermind, I added a SwipeLayout.setSwipeEnabled in fillValues so when changes occur it'll check if swipeEnabled is true or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants