CircleList (arc-shaped ListView)

CircleList (arc-shaped ListView)

Source code introduction

The arc-shaped ListView is adapted from a foreign open source control.
Source code running screenshot

Source code snippet

  1. private   float calculateAngel( int top, int h) {
  2. float result = 0f;
  3. if (top < h / 2f) {
  4. result = (top - (h / 2f)) / (h / 2f) * fullAngelFactor;
  5. } else   if (top > h / 2f) {
  6. result = (top - (h / 2f)) / (h / 2f) * fullAngelFactor;
  7. }
  8. return result;
  9. }

Source code link: http://download..com/data/1983067

<<:  Context-Menu.Android

>>:  Status bar prompts with various effects

Recommend

Xiaohongshu Comprehensive Promotion and Traffic Guide

The four words "promotion and traffic genera...

How to use titles reasonably to get more clicks?

For experienced netizens, they can almost see thr...

Did you know that you can play with the map under the mini program in this way?

The rapid development of the mini program ecosyst...

How to build a good reputation for a product during its introduction period?

Today let’s talk about a not very interesting que...

Tips on advertising materials and copywriting at Station B!

"Suddenly, as if overnight, a spring breeze ...

Special: Mountains and rivers are wallpapers everywhere

All images in this article By 40 photographers Sh...