Android UI [Android iPhone-like folder splitting effect]

Source: Internet
Author: User

Although I don't know how the iPhone achieves this split effect. However, I made a mistake using my own ideas, which can be used in general. First

Let's talk about the ideas.

Friends who have worked as launcher may know that android launcher also has folders. However, the effect is far from that of the iPhone. Previous idea diagram (side diagram ):

4 is actually the view displayed in the launcher's workplace. After I click the folder, the view in the 3 folder is displayed. My approach is to add the view of the Mask Layer 1 and 2.

Action process: process the folder Click Event, and set the mask layer before 3 (folder) is displayed.
1 and 2 are displayed in the touch display folder. Of course, 1 and 2 are special. You need to cut the current background image into 1 and 2. Let the user see that the images 1 and 2 are spliced together, just like the images without clicking the folder. Set the displacement and scroll for 1 and 2. Of course, the direction is different. They are separated up and down to give a split effect. This is basically the case. There are still many details that need to be processed slowly.

This humble hacker is a small interpreter, looking at the Tall Man.

Source code: http://download.csdn.net/detail/lnb333666/4511632 hope to post friends can respect the results of workers, please indicate the source, thank you.

Related Article

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: info-contact@alibabacloud.com 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.