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

Real estate and furniture industry landing page construction guide

Nietzsche said: "Whatever does not destroy m...

New media marketing is not as good as you think, it may even be extremely bad!

Hello everyone, my name is Wang Daze, a typical p...

What is the difference between UCloud and other hybrid cloud companies?

A domestic IT media once held a small debate on t...

Why is it so difficult for short video creators to monetize?

Behind the spectacular rise of short videos are a...

What can Baidu Mini Programs do? What can mini programs do?

Q: What can Baidu Mini Programs do? What can mini...

6 basic elements of planning a complete event

Before sharing your content, please consider the ...

Taking a census of galaxies? China's sky survey helps resolve the Hubble crisis!

The English version of Science China Physics, Mec...

The secret method of selling goods on Douyin

When doing Internet business, you must follow the...

Business Week: How did Didi Chuxing squeeze Uber out of China?

Cheng Wei, founder and CEO of Didi Chuxing, recen...