-
Notifications
You must be signed in to change notification settings - Fork 281
/
CircularProgressDrawable.java
31 lines (26 loc) · 955 Bytes
/
CircularProgressDrawable.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Copyright (c) 2017 Zhang Hai <[email protected]>
* All Rights Reserved.
*/
package me.zhanghai.android.materialprogressbar;
import android.content.Context;
import android.graphics.drawable.Drawable;
import androidx.annotation.NonNull;
/**
* A new {@code Drawable} for determinate circular {@code ProgressBar}.
*/
public class CircularProgressDrawable extends BaseProgressLayerDrawable<
SingleCircularProgressDrawable, CircularProgressBackgroundDrawable> {
/**
* Create a new {@code CircularProgressDrawable}.
*
* @param context the {@code Context} for retrieving style information.
*/
public CircularProgressDrawable(int style, @NonNull Context context) {
super(new Drawable[] {
new CircularProgressBackgroundDrawable(),
new SingleCircularProgressDrawable(style),
new SingleCircularProgressDrawable(style),
}, context);
}
}