File tree Expand file tree Collapse file tree
multiprogressbar/src/main
java/com/genius/multiprogressbar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ dependencies {
3232 implementation(" com.google.android.material:material:1.5.0" )
3333
3434 testImplementation(" junit:junit:4.13.2" )
35- testImplementation(" org.mockito:mockito-core:4.3.1 " )
35+ testImplementation(" org.mockito:mockito-core:4.4.0 " )
3636 testImplementation(" androidx.test:core:1.4.0" )
3737 androidTestImplementation(" androidx.test.ext:junit:1.1.3" )
3838 androidTestImplementation(" androidx.test:runner:1.4.0" )
Original file line number Diff line number Diff line change 1818 android : layout_width =" match_parent"
1919 android : layout_height =" wrap_content"
2020 android : layout_centerInParent =" true"
21- app : lineColor =" @color/warm_grey"
21+ app : progressLineColor =" @color/warm_grey"
2222 app : progressColor =" @color/colorAccent"
2323 app : progressSteps =" 9"
24- app : singleDisplayedTime =" 5.0" />
24+ app : progressSingleDisplayedTime =" 5.0" />
2525
2626 <LinearLayout
2727 android : id =" @+id/ll_start_pause"
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ android.nonTransitiveRClass=true
2424
2525GROUP =io.github.geniusrus
2626POM_ARTIFACT_ID =multiprogressbar
27- VERSION_NAME =1.3.2
27+ VERSION_NAME =1.4.0
2828
2929POM_NAME =MultiProgressBar
3030POM_DESCRIPTION =Android library for multiple displays of progress like Instagram Stories
Original file line number Diff line number Diff line change @@ -107,15 +107,15 @@ class MultiProgressBar @JvmOverloads constructor(
107107
108108 init {
109109 val typedArray = context.obtainStyledAttributes(attributeSet, R .styleable.MultiProgressBar )
110- lineColor = typedArray.getColor(R .styleable.MultiProgressBar_lineColor , Color .GRAY )
110+ lineColor = typedArray.getColor(R .styleable.MultiProgressBar_progressLineColor , Color .GRAY )
111111 progressColor = typedArray.getColor(R .styleable.MultiProgressBar_progressColor , Color .WHITE )
112112 progressPadding = typedArray.getDimension(R .styleable.MultiProgressBar_progressPadding , MIN_PADDING .toPx)
113113 countOfProgressSteps = typedArray.getInt(R .styleable.MultiProgressBar_progressSteps , 1 )
114114 progressWidth = typedArray.getDimension(R .styleable.MultiProgressBar_progressWidth , DEFAULT_WIDTH .toPx)
115115 progressPercents = typedArray.getInt(R .styleable.MultiProgressBar_progressPercents , 100 )
116- isNeedRestoreProgressAfterRecreate = typedArray.getBoolean(R .styleable.MultiProgressBar_isNeedRestoreProgress , true )
117- singleDisplayedTime = typedArray.getFloat(R .styleable.MultiProgressBar_singleDisplayedTime , 1F ).coerceAtLeast(0.1F )
118- orientation = typedArray.getInt(R .styleable.MultiProgressBar_orientation , Orientation .TO_RIGHT )
116+ isNeedRestoreProgressAfterRecreate = typedArray.getBoolean(R .styleable.MultiProgressBar_progressIsNeedRestoreProgress , true )
117+ singleDisplayedTime = typedArray.getFloat(R .styleable.MultiProgressBar_progressSingleDisplayedTime , 1F ).coerceAtLeast(0.1F )
118+ orientation = typedArray.getInt(R .styleable.MultiProgressBar_progressOrientation , Orientation .TO_RIGHT )
119119 typedArray.recycle()
120120
121121 if (isInEditMode) {
Original file line number Diff line number Diff line change 22<resources >
33 <declare-styleable name =" MultiProgressBar" >
44 <!-- Color of progress background line. By default is Color.GRAY -->
5- <attr name =" lineColor " format =" color" />
5+ <attr name =" progressLineColor " format =" color" />
66 <!-- Color of progress foreground line. By default is Color.WHITE -->
77 <attr name =" progressColor" format =" color" />
88 <!-- Count of progress steps. By default is 1 step -->
1313 <attr name =" progressWidth" format =" dimension" />
1414 <attr name =" progressPercents" format =" integer" />
1515 <!-- Restoring progress after view recreate. By default is true -->
16- <attr name =" isNeedRestoreProgress " format =" boolean" />
16+ <attr name =" progressIsNeedRestoreProgress " format =" boolean" />
1717 <!-- Time to display single cell of progress. By default is 1 second -->
18- <attr name =" singleDisplayedTime " format =" float" />
18+ <attr name =" progressSingleDisplayedTime " format =" float" />
1919 <!-- Orientation of progress. By default is to_right -->
20- <attr name =" orientation " >
20+ <attr name =" progressOrientation " >
2121 <enum name =" to_top" value =" 0" />
2222 <enum name =" to_right" value =" 1" />
2323 <enum name =" to_bottom" value =" 2" />
You can’t perform that action at this time.
0 commit comments