Android details: the default switch effect of the disabled activity system, androidactivity

Source: Internet
Author: User

Android details: the default switch effect of the disabled activity system, androidactivity

There are many ways to disable the default effect of the system on the Internet. Here is the simplest method I think.


OverridePendingTransition (Animation. INFINITE, Animation. INFINITE );

This sentence is generally used to replace our own custom activity effect.

Use infinity in the Animation class.

The abrupt switch effect of the system is invisible.

Now, let's start playing happily.


Switching between two android activity types has a flying effect. How can this effect be removed?

The animation between two activity switches can be customized. You only need to add overridePendingTransition (enterAnim, exitAnim) to the activity and then OK. enterAnim is the animation added to the current activity, exitAnim is output. The page's flying effect cannot be removed. This is the default effect of the system. If you want to achieve the effect without animation, you can only use addView and removeView in another global layout.

Switching between android development activities

Yes. The Animation effect parameter can help you. As mentioned in the document, I have not carefully read the specific method. I only know this method.

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.