Skip to content

Commit a912c46

Browse files
committed
using defstyle
1 parent 39d3bcd commit a912c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/me/imid/swipebacklayout/lib/SwipeBackLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public SwipeBackLayout(Context context, AttributeSet attrs, int defStyle) {
124124
super(context, attrs);
125125
mDragHelper = ViewDragHelper.create(this, new ViewDragCallback());
126126

127-
TypedArray a = context.obtainStyledAttributes(attrs,R.styleable.SwipeBackLayout,defStyle,0);
127+
TypedArray a = context.obtainStyledAttributes(attrs,R.styleable.SwipeBackLayout,defStyle,R.style.SwipeBackLayout);
128128

129129
int edgeSize = a.getDimensionPixelSize(R.styleable.SwipeBackLayout_edge_size, -1);
130130
if(edgeSize >0 )

0 commit comments

Comments
 (0)