Improved transition3d flip fix in Android apidemos

Source: Internet
Author: User

Let's briefly describe how to import apidemos. It is very simple to use Juno and later versions of eclipse. Click new -- Other and select the android sample project under android.

Reprinted please specify reference address: http://blog.csdn.net/ethan_xue/article/details/8022471

I believe that you can use a 3D Rotation demo in the notebook, but the rotated view is the opposite. This tutorial will solve this problem.

Let's take a look at the effects in the original demo.

Then let's take a look at the effect after using this

Right. After the flip, the view becomes reversed. This does not meet our requirements.Code, Main modification part

Applyrotation (-1,360,270); // It was originally applyrotation (-1,180, 90 );

// It turns out to be rotation = new rotate3danimation (90,180, centerx, centery, 310.0f, false); rotation = new rotate3danimation (270,360, centerx, centery, 310.0f, false );

Effect after modification

Add the project code

Http://download.csdn.net/detail/ethan_xue/4601160

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.