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

Dressing and Matching Training Camp

Dressing and Matching Training Camp Quick Match T...

Google finally compromises, native app store takes back Chinese market

[[147857]] On September 5, according to The Infor...

Fission Guide: What is traffic pool thinking?

The core idea of ​​" traffic pool thinking&q...

"Super Microscope" - China Spallation Neutron Source

Produced by: Science Popularization China Author:...

How to use the media to create internet celebrity products?

Every company wants to build its own internet cel...