You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: