ParallaxScrollView - Parallax scrolling

ParallaxScrollView - Parallax scrolling

introduce

Implement a scroll view with parallax scrolling effect. The so-called parallax scrolling means that the screen has two layers of scrolling views, and the scrolling speeds of the two layers of scrolling views are different. Generally speaking, the scrolling speed of the front scrolling view is faster than the scrolling speed of the bottom scrolling view, thus creating a three-dimensional scrolling effect. You can adjust the parallax scrolling parameters. The smaller the parameter, the greater the difference in the scrolling speeds of the two layers, and the more obvious the parallax scrolling effect.

Test environment

Compilation test, test environment: Eclipse 4.2, Android 3.0 and above.

Rendering

Source code link: http://download..com/data/1968676

<<:  AndroidSlidingUpPanel

>>:  MultiChoiceAdapter—Easy to make ListView support multiple selections

Recommend

How to design an excellent website navigation?

Website navigation (also known as internal linkin...

Awesome copywriting, every sentence is a golden sentence

A copywriting that can touch people's hearts ...

Xiaohongshu monetization guide!

Perhaps many people come to Xiaohongshu with the ...

Tencent QQ Android beta version 8.8.35 has been upgraded to 64-bit version

On October 15, according to netizens' feedbac...

My Life in the Underworld VIP

Himalaya's premium audiobook "My Life in ...

Can a person really develop bones of steel by crushing rocks on his chest?

Breaking stones with the chest is a street perfor...

18 most classic user growth operation cases on the Internet

Part 1: Growth Hacking and Related Concepts 1. Gr...

Are the colorful fish meant to attract natural enemies to eat them?

In daily life, we often see some colorful fish. F...