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

Alibaba front-end - sharing of three interview experiences

I hurriedly found a referral from a certain guy, ...

Going out to pick wild vegetables? Don't pick this, it's highly poisonous!

In the season of rebirth, I heard that everyone w...

Short video operation: 8 tips for cover selection!

When writing, we all understand that "well b...

PitchBook: Artificial Intelligence and Machine Learning Report, Q2 2024

On June 11, Mistral AI received US$640 million in...

AGI Magic Box, will it release Pluto or Astro Boy?

Human-machine symbiosis is an eternal theme in sc...

How do Tencent designers optimize designs? This case study is so vivid!

Usually the designs I make are relatively simple ...