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

9 angles to help you write hit articles!

I will tell you how everyone can write a hit arti...

5 tips to help you effectively increase APP downloads!

When it comes to the number of APP downloads, tho...

Milk cartons are 100% recyclable and the recycling method is unexpected

I'm sure you are all familiar with milk. Do y...

How to make your "promotional activities" a big hit?

Everyone should have had this feeling: when you a...

Cook hints at new iWatch feature: voice control

Apple CEO Cook has hinted many times that they wil...

Turkish President blasts iPhone 6 for weird reasons

Turkish President Recep Tayyip Erdogan, known for...

How to plan a low-cost and efficient fan-increasing activity?

If a WeChat public account wants to quickly incre...

Dyson abandons £2.5bn electric car project as commercially unviable

Recently, according to foreign media reports, the...

Come, let’s explain in simple terms what CPA and OCPC are.

Ever since Toutiao launched the CPA and OCPC mode...

618 headline traffic forecast and advertising suggestions!

618 headline traffic estimation & delivery su...