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

disable card swipe on a certain condition #73

Open
pkl125 opened this issue Nov 13, 2017 · 1 comment
Open

disable card swipe on a certain condition #73

pkl125 opened this issue Nov 13, 2017 · 1 comment

Comments

@pkl125
Copy link

pkl125 commented Nov 13, 2017

I want to disable swiping card based on a condition but i am unable to do so.
This is part of my layout-
<com.daprlabs.aaron.swipedeck.layouts.SwipeFrameLayout
android:id="@+id/swipeLayout"
android:layout_width="match_parent"
android:layout_height="320dp"
android:layout_above="@+id/btn_layout"
android:layout_marginBottom="16dp"
android:orientation="vertical">
<com.daprlabs.aaron.swipedeck.SwipeDeck
android:id="@+id/swipe_deck"
android:layout_width="match_parent"
android:layout_height="320dp"
swipedeck:layout_anchorGravity="center_horizontal"
swipedeck:max_visible="3" />
</com.daprlabs.aaron.swipedeck.layouts.SwipeFrameLayout>

if i use cardStack.SWIPE_ENABLED = false; then it works fine but it never becomes true again enen after setting it to true. What if again i want to swipe my card after the condition is over?
@aaronbond

@devendroid
Copy link

if i use cardStack.SWIPE_ENABLED = false; then it works fine

@pkl125, I didn't found the constant SWIPE_ENABLED in SwipeDeck, how you set it to false ?
I need to disable swipe forever in my case, please let me know if you got it.

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

No branches or pull requests

2 participants