jiangzehui / polygonsview

https://github.com/jiangzehui/polygonsview

Java
模仿掌上英雄联盟能力分析效果



polygonsview

Android Arsenal Twitter Travis

模仿掌上英雄联盟能力分析效果
正在学习自定义View的同学,可以看看源码,希望对你们有帮助!!!
如果你觉得还不错,可以给个star,支持下,谢谢了!

原始图效果

这里写图片描述)

模仿效果


gif

gif

png

这里写图片描述

流程

  1. 绘制中心线,用于计算外层多边形各点的坐标
  2. 绘制最外层多边形
  3. 分析原型图算出每个多边形之间的间距
  4. 绘制里三层多边形
  5. 绘制字体
  6. 根据进度值绘制等级进度


难点

关键在于坐标的计算(三角函数的运用,哈哈),与旋转角度的掌控。


Doc

http://blog.csdn.net/as7210636/article/details/52692102

About me

An android little developer in HeBei.
If you have any suggestions, let me know.
email:383001264@qq.com


License

Copyright 2016 jiangzehui

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Ещё не оценен

Последние записи

Архив

2018
2017
2016
2015
2014

Категории

Авторы

Ленты

RSS / Atom