Skip to content

Add stroke cap feature#59

Merged
SumeraMartin merged 8 commits intomasterfrom
feature/stroke-cap-attribute
Oct 13, 2020
Merged

Add stroke cap feature#59
SumeraMartin merged 8 commits intomasterfrom
feature/stroke-cap-attribute

Conversation

@SumeraMartin
Copy link
Copy Markdown
Member

Add an option to change the stroke of the lines.
Resolves #54, #30

@futured-bot
Copy link
Copy Markdown

futured-bot commented Oct 9, 2020

1 Warning
⚠️ library/src/main/kotlin/app/futured/donut/DonutProgressView.kt#L22 - Class DonutProgressView is too large. Consider splitting it into smaller pieces.

Generated by 🚫 Danger

Comment thread library/src/main/res/values/attrs.xml Outdated
<resources>
<declare-styleable name="DonutProgressView">
<attr name="donut_strokeWidth" format="dimension"/>
<attr name="donut_strokeCap" format="string"/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think enum would be more appropriate format here. With enum, you get a nice autocomplete for available options in layout editor. Take a look at #58, it's implemented there.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that is a good idea. I will change it.

@matejsemancik matejsemancik linked an issue Oct 9, 2020 that may be closed by this pull request
…oke-cap-attribute

� Conflicts:
�	buildSrc/src/main/kotlin/Versions.kt
�	sample/src/main/kotlin/app/futured/donutsample/ui/playground/PlaygroundActivity.kt
�	sample/src/main/res/values/strings.xml
@SumeraMartin SumeraMartin merged commit 9827d4e into master Oct 13, 2020
@SumeraMartin SumeraMartin deleted the feature/stroke-cap-attribute branch October 13, 2020 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is there a way to change the tip of the progress to flat instead round? Add support for different progress line endings

3 participants