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

  • Home
  • SEARCH
  • 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 8159829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:03:26+00:00 2026-06-06T18:03:26+00:00

I have an activity that appears as a dialog using the following custom theme:

  • 0

I have an activity that appears as a dialog using the following custom theme:

<style name="ThemeDialogNoAnimation">
    <item name="android:windowAnimationStyle">@null</item>
    <item name="android:windowEnterAnimation">@null</item>
    <item name="android:windowExitAnimation">@null</item>
    <item name="android:windowFrame">@null</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:background">@android:color/transparent</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:backgroundDimEnabled">true</item>
</style>

Notice I have no animations set, yet when the activity exists is still slides to the right. How do I stop it from animating?

  • 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-06T18:03:26+00:00Added an answer on June 6, 2026 at 6:03 pm

    The animations you’re seeing most likely come from the system but they’re easy to override.

    If you want no transition when the activity starts:

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    
        overridePendingTransition(0, 0);
    }
    

    If you want no transitions when the activity finishes:

    @Override
    public void finish() {
        super.finish();
    
        overridePendingTransition(0, 0);
    }
    

    Passing in 0 when overriding transitions signals to the system to use no transitions. In place of 0 you could also add in a custom transition of your own by passing in the resource identifier to an animation resource.

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

Sidebar

Related Questions

I have an activity that has the following set as theme: android:theme=@android:style/Theme.Dialog However, there
I have a simple Activity that uses a android:theme=@android:style/Theme.Dialog in the manifest. My activity
For some Activity I'm using @Theme/Dialog, but this appears like old UI 2.3. If
I have an android activity and a service implemented using aidl. Works like a
I have an app that appears to work fine on an android 2.3.5 phone,
I have a Custom Dialog that has an EditText at the bottom of the
I have the following in my Activity that I use to download a users
I have an activity that when users press share on a file it would
I have an Activity that should only get created once. That is, onCreate can
I have an activity that shows some TextView s and EditText s, as well

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.