源码简介
圆弧形的ListView,根据国外开源控件改编。
源码运行截图
源码片段
- private float calculateAngel(int top, int h) {
- float result = 0f;
- if (top < h / 2f) {
- result = (top - (h / 2f)) / (h / 2f) * fullAngelFactor;
- } else if (top > h / 2f) {
- result = (top - (h / 2f)) / (h / 2f) * fullAngelFactor;
- }
- return result;
- }
源码链接:http://down.51cto.com/data/1983067