Skip to content

Commit de8bd14

Browse files
author
Ebrahim Karimi (Gashbeer)
committed
* fixed stroke width
1 parent 7d7790a commit de8bd14

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
app:suffix=" sec"
3232
app:progressText="Time Remaining..."
3333
app:maxValue="100"
34-
app:strokeWidthDimension="10dp"
34+
app:progressStrokeWidthDimension="10dp"
3535
app:startingPoint="bottom"
3636
app:progressTextColor="#eee"/>
3737

circulartimerview/src/main/java/com/uzairiqbal/circulartimerview/CircularTimerView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ private void initPaints(Context context, AttributeSet attrs) {
7171
backgroundColor = ta.getColor(R.styleable.CircularTimerView_backgroundColor, Color.GRAY);
7272
progressBackgroundColor = ta.getColor(R.styleable.CircularTimerView_progressBackgroundColor, Color.GRAY);
7373

74-
strokeWidth = ta.getFloat(R.styleable.CircularTimerView_strokeWidth, 10);
75-
strokeWidth = ta.getDimension(R.styleable.CircularTimerView_strokeWidthDimension, strokeWidth);
74+
strokeWidth = ta.getFloat(R.styleable.CircularTimerView_progressStrokeWidth, 10);
75+
strokeWidth = ta.getDimension(R.styleable.CircularTimerView_progressStrokeWidthDimension, strokeWidth);
7676
backgroundWidth = ta.getFloat(R.styleable.CircularTimerView_backgroundWidth, 10);
7777
roundedCorners = ta.getBoolean(R.styleable.CircularTimerView_roundedCorners, false);
7878
maxValue = ta.getFloat(R.styleable.CircularTimerView_maxValue, 100);

circulartimerview/src/main/res/values/attrs.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<attr name="progressColor" format="color"/>
55
<attr name="backgroundColor" format="color"/>
66
<attr name="progressBackgroundColor" format="color"/>
7-
<attr name="strokeWidthDimension" format="dimension"/>
8-
<attr name="strokeWidth" format="float"/>
7+
<attr name="progressStrokeWidthDimension" format="dimension"/>
8+
<attr name="progressStrokeWidth" format="float"/>
99
<attr name="backgroundWidth" format="float"/>
1010
<attr name="roundedCorners" format="boolean"/>
1111
<attr name="maxValue" format="float"/>

0 commit comments

Comments
 (0)