Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.content.Context;
import android.content.res.TypedArray;
import android.database.DataSetObserver;
import android.graphics.drawable.Drawable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util.AttributeSet;
import android.view.LayoutInflater;
Expand All @@ -28,7 +29,7 @@ public abstract class BaseSuperAbsListview extends FrameLayout implements AbsLis
protected ViewStub mEmpty;

protected float mDividerHeight;
protected int mDivider;
protected Drawable mDivider;
protected boolean mClipToPadding;
protected int mPadding;
protected int mPaddingTop;
Expand Down Expand Up @@ -78,7 +79,7 @@ protected void initAttrs(AttributeSet attrs) {
TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.superlistview);
try {
mClipToPadding = a.getBoolean(R.styleable.superlistview_superlv__listClipToPadding, false);
mDivider = a.getColor(R.styleable.superlistview_superlv__listDivider, 0);
mDivider = a.getDrawable(R.styleable.superlistview_superlv__listDivider);
mDividerHeight = a.getDimension(R.styleable.superlistview_superlv__listDividerHeight, 0.0f);
mPadding = (int) a.getDimension(R.styleable.superlistview_superlv__listPadding, -1.0f);
mPaddingTop = (int) a.getDimension(R.styleable.superlistview_superlv__listPaddingTop, 0.0f);
Expand Down