-
Notifications
You must be signed in to change notification settings - Fork 1
ProgressView
Sieun Ju edited this page Feb 1, 2022
·
3 revisions
- SurfaceView κΈ°λ°μΌλ‘ λ§λ LineProgressBar μ λλ€.
-
Linear Type (Horizontal, Vertical)
-
Attribute
progressType (horizontal, vertical)
-
-
Background Color
-
Attribute
progressBgColor (format: color)
-
-
Background Corner Raidus
-
Attribute
progressRadius (format: dimension)
-
-
Progress Color Gradient (Start, Center, End)
-
Attribute
progressStartColor (format: color)
progressCenterColor (format: color)
progressEndColor (format: color)
-
-
Progress Color Gradient Location XY
-
Attribute
progressCenterXY (format: float)
-
-
Progress Max Value
-
Attribute
progressMax (format: integer)
-
-
Progress Start Default Value
-
Attribute
progressMin (format: integer)
-
- xml μμμ μμ± κ°μ μ ν ν©λλ€.
<hmju.widget.progress.ProgressView
android:id="@+id/progressView"
android:layout_width="match_parent"
android:layout_height="30dp"
app:progressBgColor="@color/white"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
app:progressRadius="15dp"
app:progressEndColor="#29359C"
app:progressMax="100"
app:progressStartColor="#29359C"
app:progressType="horizontal" />- currentProgress
- μ λ ₯ν μμΉμ λ°λΌ μ§νλ₯ μ νμνλ ν¨μ
- incrementProgressBy
- Function Parameter
- diff
- νμ¬ μ§νλ₯ (currentProgress) += diff ν κ°μ νμνλ ν¨μ
- Function Parameter
