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

Summary of Android hot fix technology

Pluginization and hotfixing are relatively advanc...

Food is the most important thing for people. Are we eating right?

Author: Wang Fang, deputy director of the China R...

Website testing analysis report, how to write website experience report?

When a website needs to be built, revised or its ...

Samsung hits back at stress test: Who told you to use such high pressure?

Last Friday, SquareTrade, a third-party smartphon...

Mo Xiaoqi's constellation code mind reading

Mo Xiaoqi's Constellation Code Mind Reading R...