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.