Fixing default direction
This commit is contained in:
parent
4ab9c29b8c
commit
046caa4a10
|
|
@ -87,7 +87,7 @@ public class SwipeLayout extends FrameLayout
|
|||
mDragHelper = ViewDragHelper.create(this, mDragHelperCallback);
|
||||
|
||||
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SwipeLayout);
|
||||
int dragEdgeChoices = a.getInt(R.styleable.SwipeLayout_drag_edge, DragEdge.Right.ordinal());
|
||||
int dragEdgeChoices = a.getInt(R.styleable.SwipeLayout_drag_edge, DRAG_RIGHT);
|
||||
mLeftEdgeSwipeOffset = a.getDimension(R.styleable.SwipeLayout_leftEdgeSwipeOffset, 0);
|
||||
mRightEdgeSwipeOffset = a.getDimension(R.styleable.SwipeLayout_rightEdgeSwipeOffset, 0);
|
||||
mTopEdgeSwipeOffset = a.getDimension(R.styleable.SwipeLayout_topEdgeSwipeOffset, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue