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

What are the dangers of ethylene glycol explosion?

Recently, everyone must have seen the news of a f...

3 practical live streaming sales techniques!

Some people say that sales is a script, and all y...

If your product has no unique features, how can you attract users’ attention?

Among a bunch of products with similar selling po...

How to quickly start a product promotion IP on Zhihu?

​ I have been operating the Zhihu live streaming p...

100 days, 1000 meters, a new starting point

Today marks the 13th month that Tianwen-1 has bee...

Don't criticize Baidu, no one is innocent

[[162080]] Recently, the Baidu selling forum even...

Xiaohongshu is an effective marketing strategy!

Brands want every budget to bring good results. M...