Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8390773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:05:33+00:00 2026-06-09T19:05:33+00:00

Fadein.xml file: <?xml version=1.0 encoding=utf-8?> <alpha xmlns:android=http://schemas.android.com/apk/res/android android:interpolator=@android:anim/accelerate_interpolator android:fromAlpha=0.0 android:toAlpha=1.0 android:duration=500 /> Fadeout.xml <?xml

  • 0

Fadein.xml file:

<?xml version="1.0" encoding="utf-8"?>
    <alpha xmlns:android="http://schemas.android.com/apk/res/android"
       android:interpolator="@android:anim/accelerate_interpolator"
       android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="500" />

Fadeout.xml

<?xml version="1.0" encoding="utf-8"?>
    <alpha xmlns:android="http://schemas.android.com/apk/res/android"
       android:interpolator="@android:anim/accelerate_interpolator"
       android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="500" />

Main activity class starts new activity when button is pressed:

Intent myIntent = new Intent(this, OtherActivity.class);
this.startActivity(myIntent);

In OtherActivity class:

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    overridePendingTransition(R.anim.fadein, R.anim.fadeout);
    setContentView(R.layout.view);    
}

It doesn’t work – activities doesn’t slide, it just opens instantly. What’s wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:05:35+00:00Added an answer on June 9, 2026 at 7:05 pm

    There can be two possibilities if the activity just opens instantly… 1) is either the animations are disabled from settings on the device or emulator on which you running/testing your app or 2) is that the time of animation is also small/less means 500 Milli seconds so may be thats why fading effect is seeming like just opening effect
    but i think the 1st point is your main problem.

    Yes That is also the point as Alex Mentioned in his answer that

    overridePendingTransition() method should be called after startActivity() from within the same activity mostly adjacent to startActivity() Method and not from the destination activity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got this working to an 'almost ready' state: http://jsbin.com/icuvit Can someone show me
I'm not able to get html from a very simple XML file as below.
I have the following JQuery code that parse an XML file just they way
How to a create a fadein and fadeout effect on this http://jsfiddle.net/b3FgY/
FadeIn is not working when I upload it to my server, yet it is
I'm trying to fadeIn and fadeOut a transparent png using JQuery. Of course, it
I tried the jQuery fadeIn animation in all browsers and it work good, but
I use Jquery fadeIn effect, but it does not work well in Chrome (neither
I have the JavaScript code to fadein.fadeout the menu, when ever user hovers it.
I have gone through the fadein/fadeout tutorial that is on this page: For the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.