Share: Use the workspace in launcher to complete 3D screen conversion on the desktop (with source code)

Source: Internet
Author: User

(Http://www.eoeandroid.com/viewthread.php? Tid = 27079 & extra = & page = 1) it is too difficult for everyone to copy and study. I want to upload the attachment. It has already been uploaded. The changes in the attachment are large and the annotations are not so detailed,

For the sake of high efficiency, multithreading is not used. All the problems mentioned below have been solved. Any suggestions should be raised for discussion.

 

 Workspace.rar(11.97 KB)
/*
This workspace can be seen as a whole. The X coordinate range is 0-960.
It has three pages, each of which is a child, and each child contains many cells, which can be placed in the cut,
Active folder and widget, which occupy different cells vertically.
You can use scrollto (INT, INT) to move the entire workspace to display different pages.
For example:
Scrollto (0, 0) is the first page
Scrollto () is the second page
Scrollto (640,0) is the third page
If more pages exist
Scrollto (, 0) is the fourth page
Scrollto (960,0) is the fifth page
.
.
.
In fact, after components are added to the page, we cannot see these components,
However, you can click some invisible "empty positions" to enter.
For example, we add a short message cut in the upper left corner of the middle page.
Drawchild (canvas, getchildat (1), drawingtime) or
You cannot see this icon, but you can click the upper left corner of the screen to enter the text message.
Process:
1. Get the bitmap of three pages, and get the bitmap again when there is a change on the page.
2. When the screen is dragged, the screen does not slide or change pages in the original mode.
Two bitmap transformation operations to achieve 3D effect (no GL, this can be more efficient)
3. Determine whether to change pages by dragging the start and end coordinates. How should I change pages?
4. Because drawchild () is used to draw an icon on a page, when two bitmap transformations are performed to achieve 3D effect
The image appears from the stack, so it is not used. Instead, it is used to post the corresponding bitmap to the canvas. drawbitmap ()
On the corresponding page, we can know where the screen has an application icon.
The background is not ready yet. You are ready to create a full black background. The background of the three bitmaps is converted into a desktop background.
It can also be changed. The 3D effect is available, but it needs to be improved.

I hope you can share your research achievements and learn and make progress together.

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.