Add favorites
This commit is contained in:
1 parent
d4cbaabefe
commit
162f627052
18 files changed
+468
-30
No files matched your search
@@ -35,6 +35,11 @@ public class IndicatingScrollView extends ScrollView {
|
||||
private final Paint mPaint = new Paint();
|
||||
private final Rect mTemp = new Rect();
|
||||
|
||||
public IndicatingScrollView(Context context) {
|
||||
super(context);
|
||||
init(context, null);
|
||||
}
|
||||
|
||||
public IndicatingScrollView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
init(context, attrs);
|
||||
@@ -46,9 +51,9 @@ public class IndicatingScrollView extends ScrollView {
|
||||
}
|
||||
|
||||
private void init(Context context, AttributeSet attrs) {
|
||||
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.IndicatingScrollView);
|
||||
mIndicatorHeight = a.getDimensionPixelOffset(R.styleable.IndicatingScrollView_indicatorHeight, 1);
|
||||
mPaint.setColor(a.getColor(R.styleable.IndicatingScrollView_indicatorColor, Color.BLACK));
|
||||
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.Indicating);
|
||||
mIndicatorHeight = a.getDimensionPixelOffset(R.styleable.Indicating_indicatorHeight, 1);
|
||||
mPaint.setColor(a.getColor(R.styleable.Indicating_indicatorColor, Color.BLACK));
|
||||
mPaint.setStyle(Paint.Style.FILL);
|
||||
a.recycle();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user