diff --git a/library/src/main/java/com/daimajia/swipe/SwipeLayout.java b/library/src/main/java/com/daimajia/swipe/SwipeLayout.java index 6703123c..fc4fcfbd 100644 --- a/library/src/main/java/com/daimajia/swipe/SwipeLayout.java +++ b/library/src/main/java/com/daimajia/swipe/SwipeLayout.java @@ -93,6 +93,7 @@ public SwipeLayout(Context context, AttributeSet attrs, int defStyle) { mEdgeSwipesOffset[DragEdge.Top.ordinal()] = a.getDimension(R.styleable.SwipeLayout_topEdgeSwipeOffset, 0); mEdgeSwipesOffset[DragEdge.Bottom.ordinal()] = a.getDimension(R.styleable.SwipeLayout_bottomEdgeSwipeOffset, 0); setClickToClose(a.getBoolean(R.styleable.SwipeLayout_clickToClose, mClickToClose)); + setSwipeEnabled(a.getBoolean(R.styleable.SwipeLayout_swipeEnable, mSwipeEnabled)); if ((dragEdgeChoices & DRAG_LEFT) == DRAG_LEFT) { mDragEdges.put(DragEdge.Left, null); diff --git a/library/src/main/res/values/attrs.xml b/library/src/main/res/values/attrs.xml index a671fc5f..665a6bbf 100644 --- a/library/src/main/res/values/attrs.xml +++ b/library/src/main/res/values/attrs.xml @@ -16,5 +16,6 @@ + \ No newline at end of file