Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stroke cap feature #59

Merged
merged 8 commits into from
Oct 13, 2020
Merged

Add stroke cap feature #59

merged 8 commits into from
Oct 13, 2020

Conversation

SumeraMartin
Copy link
Member

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

@futured-bot
Copy link

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

@@ -2,6 +2,7 @@
<resources>
<declare-styleable name="DonutProgressView">
<attr name="donut_strokeWidth" format="dimension"/>
<attr name="donut_strokeCap" format="string"/>
Copy link
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
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
3 participants