florent37 / ShapeOfView

Give a custom shape to any android view, Material Design 2 ready
Apache License 2.0
3.12k stars 400 forks source link

Star Shape Added to Create N-Pointed Stars & Sample App Updated #4

Closed Akhunzaada closed 6 years ago

Akhunzaada commented 6 years ago

StarView.java: Star shape added which can draw n-pointed star. Minimum points are 3 and default points are 5. star_noOfPoints attribute added to set number of points from xml. README file updated with StarView shape and preview added.

Package name fixed for sample app. From: florent37.github.com.triangleview To: com.github.florent37.shapeofview.sample

PS: I noticed another pull request containing Star shape. I have reviewed that pull request and what is different is that mine allows to create a n-pointed star with a symmetric shape, no matter what the width and height are, the shape will not distort.

florent37 commented 6 years ago

thanks for the StarView, In the other PR it does not allows a variable number of point, so I prefer this one ;)

florent37 commented 6 years ago

I pushed it on 1.0.2 👍