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 7402815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:53:26+00:00 2026-05-29T04:53:26+00:00

I am currently working on an Android app and I am having some issues

  • 0

I am currently working on an Android app and I am having some issues with my splash activity. I want my main activity to fade in from my splash activity, not from a black screen. Both my splash and main activities use the same background image so if I do a fade_in/fade_out combo, it looks weird as the background kind of fades a bit during the transition.

The idea here is I have to versions of my logo: normal and glowing. I want my main activity to fade in so my glowing logo over takes my normal logo causing a neat little “turn on” effect. The following code fades in from a black screen, which is not ideal.

/**
 * Pause Activity
 */
@Override
protected void onPause()
{
    super.onPause();
    finish();
    overridePendingTransition(android.R.anim.fade_in, 0);
}

EDIT:

Creating my own fade_out animation to retain the 1.0 alpha level (from 1.0 to 1.0) and adding android:fillAfter="true" to my splash animation set fixed the issue.

  • 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-05-29T04:53:26+00:00Added an answer on May 29, 2026 at 4:53 am

    It is about the order of things. Here is an example which fades into next activity after 3 seconds:

    new Handler().postDelayed(new Runnable() {
      @Override
      public void run() {
    
        //Create an intent that will start the main activity.
        Intent mainIntent = new Intent(SplashActivity.this, MainMenuActivity.class);
        SplashActivity.this.startActivity(mainIntent);
    
        //Finish splash activity so user cant go back to it.
        SplashActivity.this.finish();
    
        //Apply splash exit (fade out) and main entry (fade in) animation transitions.
        overridePendingTransition(R.anim.mainfadein, R.anim.splashfadeout);
      }
    }, 3000);
    

    Note that here there a two animations fade in and fade out.

    mainfadein.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="0.0" 
            android:toAlpha="1.0" 
            android:duration="700" />
    

    splashfadeout.xml

    <?xml version="1.0" encoding="utf-8"?>
    <alpha xmlns:android="http://schemas.android.com/apk/res/android" 
            android:interpolator="@android:anim/decelerate_interpolator"
            android:zAdjustment="top" 
            android:fromAlpha="1.0" 
            android:toAlpha="0.0" 
            android:duration="700" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on my fist app for android phones and I want to
I'm currently working on an app for the Android OS that displays some data.
I'm currently learning android and java, and I am having some issues with importing
I am currently working on an android app that is causing me some trouble.
I am currently working on an Android app and I am trying to connect
I'm currently working on an XMPP app' on Android and I'm pondering about the
I'm working on an Android app which has an activity and a widget. This
I'm working on an Android app having an always visible tabbar. However, each tab
I'm working on adding a YouTube channel to my Android App and I'm having
I'm currently working on an Android app that automatically changes the phones state based

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.