Some cool switching effects based on Viewpager

Source: Internet
Author: User

1, Viewpager can be used to achieve similar banner functions, I have used in the "Time Supermarket" project. But how to achieve some of the cool effect of switching on this basis? Today carefully read the relevant blog of the Great God, finally learned how to customize the transition effect.

See blog post: Use Viewpager to create different ad carousel transitions

2, for Viewpager switch has a very famous library called Jazzviewpager (click to visit GitHub), have time to study.

3, in the "Android Ultra-high imitation QQ near the people search show " article, found Sparsearray this Android class, and read the "Android Application performance optimization using Sparsearray alternative HashMap" article, This paper refers to Sparsearray with sparse array, to achieve hashmap function, compared to HashMap to save storage space, but the efficiency of the lookup is lower than HashMap, because Sparsearray with a binary lookup, its search efficiency is O (N/2), The search efficiency of HashMap is O (1).

Some cool switching effects based on Viewpager

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.