All Projects → jiangzehui → Polygonsview

jiangzehui / Polygonsview

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

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Polygonsview

Laravel Blade Javascript
A Blade directive to export variables to JavaScript
Stars: ✭ 485 (-25.61%)
Mutual labels:  view
Zloading
[Android] 这是一个自定义Loading View库。暂停更新
Stars: ✭ 552 (-15.34%)
Mutual labels:  view
Chips Input Layout
A customizable Android ViewGroup for displaying Chips (specified in the Material Design Guide).
Stars: ✭ 591 (-9.36%)
Mutual labels:  view
Happybubble
💭BubbleLayout随意变化的气泡布局、消息对话框,可定制颜色,背景、弧度、尖角弧度、边框等等。BubbleDialog气泡弹窗根据点击View的位置定位它的弹窗位置,BubbleDialog可定制方向等!(BubbleLayout changes freely,BubbleDialog click on the location of View positioning its location,BubbleDialog can be customized directions.)
Stars: ✭ 487 (-25.31%)
Mutual labels:  view
Kotlinpleaseanimate
Kotlin, please, can you animate my views ?
Stars: ✭ 541 (-17.02%)
Mutual labels:  view
Nestedtouchscrollinglayout
🎱处理子 View,父 View 嵌套滚动,成本比 support v4 NestedScrolling 低,放心食用~
Stars: ✭ 557 (-14.57%)
Mutual labels:  view
Waitview
显示等待加载状态的View
Stars: ✭ 465 (-28.68%)
Mutual labels:  view
Financialcustomerview
各种金融类的自定义View,基金走势图、分时图、蜡烛图、各种指标等,一步一步构建庞大的基金自定View...
Stars: ✭ 642 (-1.53%)
Mutual labels:  view
Blade
🔪 A standalone version of Laravel's Blade templating engine for use outside of Laravel.
Stars: ✭ 542 (-16.87%)
Mutual labels:  view
Circleprogress
Android自定义圆形进度条
Stars: ✭ 585 (-10.28%)
Mutual labels:  view
Scrollbear
A modern tool that maintains scroll position when images loaded
Stars: ✭ 523 (-19.79%)
Mutual labels:  view
Laravel Blade X
Use custom HTML components in your Blade views
Stars: ✭ 538 (-17.48%)
Mutual labels:  view
Longshadow
Add a long shadow on any Android View
Stars: ✭ 562 (-13.8%)
Mutual labels:  view
Popview Android
Pop animation with circular dust effect for any view updation
Stars: ✭ 487 (-25.31%)
Mutual labels:  view
Discretescrollview
A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.
Stars: ✭ 5,533 (+748.62%)
Mutual labels:  view
Stacklabel
🔥空祖家的堆叠标签(以下碎念:一开始起名字“StackLabel”没想太多结果被人吐槽Stack是整齐堆叠的意思...........好吧这是我的锅不过现在要改也来不及了,好用就行了...吧?
Stars: ✭ 471 (-27.76%)
Mutual labels:  view
Android Ratethisapp
Android library to show "Rate this app" dialog
Stars: ✭ 553 (-15.18%)
Mutual labels:  view
Roundedletterview
RoundedLetterView like the one in Android 5.0 Contacts app
Stars: ✭ 651 (-0.15%)
Mutual labels:  view
Easysignseekbar
本库主要提供一个漂亮而强大的自定义SeekBar,进度变化由提示牌 (sign)展示,具有强大的属性设置,支持设置section(节点)、mark(标记)、track(轨迹)、thumb(拖动块)、progress(进度)、sign(提示框)等功能
Stars: ✭ 629 (-3.53%)
Mutual labels:  view
Recyclerview Fastscroller
A fully customizable Fast Scroller for the RecyclerView in Android, written in Kotlin
Stars: ✭ 585 (-10.28%)
Mutual labels:  view

polygonsview

Android Arsenal Travis Twitter Travis

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

原始图效果

这里写图片描述

模仿效果


gif

gif


png

这里写图片描述



流程

  1. 绘制中心线,用于计算外层多边形各点的坐标

  2. 绘制最外层多边形

  3. 分析原型图算出每个多边形之间的间距

  4. 绘制里三层多边形

  5. 绘制字体

  6. 根据进度值绘制等级进度


难点

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


Attributes

name format description
setStr String[] 设置提示字体(长度必须为7位,从中上开始顺时针方向)
setStrColor color 设置字体颜色
setOneColor color 设置最外层正多形颜色
setTwoColor color 设置第二层正多形颜色
setThreeColor color 设置第三层多边形颜色
setFourColor color 设置最内层多边形颜色
setCenterColor color 设置中心线颜色
setRankColor color 设置rank线颜色
setValue1 float(0~4) 设置rank值1 (从中上开始顺时针方向)
setValue2 float(0~4) 设置rank值2
setValue3 float(0~4) 设置rank值3
setValue4 float(0~4) 设置rank值4
setValue5 float(0~4) 设置rank值5
setValue6 float(0~4) 设置rank值6
setValue7 float(0~4) 设置rank值7

Doc

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

阅读推荐

1.开源一个自己去年写的基于Xmpp协议的即时通讯社交软件 (客户端+服务端)
https://github.com/jiangzehui/xmpp

2.此项目基于Retrotfit2.1+Material Design+ijkplayer开发的一个APP。目前已有的功能是 新闻,gif动图,视频播放
https://github.com/jiangzehui/MD

About me

An android little developer in HeBei.
If you have any suggestions, let me know.
email:[email protected]


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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].