项目里面做的一个五边形能力分数值的View,稍微弄了一下,有什么问题可以提下issues方便改进。
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ywp0919:PentagonView:v1.1.0'
}
pentagonView.mRingPliesCount = 5
pentagonView.mTextOffsetRing = 20
pentagonView.mTextSize = 50f
pentagonView.mTextColor = Color.BLACK
pentagonView.mAngleText = arrayOf("打野", "治疗量", "伤害量", "参团率", "承受")
pentagonView.mScoreLineStrokeWidth = 5f
pentagonView.mScoreLineColor = Color.parseColor("#53A616")
pentagonView.mScoreFillColor = Color.parseColor("#8967FF5A")
pentagonView.mRingLineColor = Color.BLACK
pentagonView.mRingFillColors = intArrayOf(Color.YELLOW, Color.RED)
pentagonView.mMaxScore = 1000
pentagonView.mAnimatorTime = 1000