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

A herbivore like this actually went around gnawing on bones?

What do you think it's doing? Image credit: W...

Dragon Boat Festival Marketing Activities Guide!

Holidays have always been important marketing nod...

How should operations use data?

How should operations use data? This question ste...

How to design a complete operation plan?

This article hopes to help entry-level product ma...

Salted duck eggs will "ooze oil", where does this oil come from?

Salted duck eggs, as the name suggests, are a kin...

iOS understands multithreading from a practical perspective

Preface I believe that many developers have more ...