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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:47:14+00:00 2026-06-19T03:47:14+00:00

It should be a pretty simple question that I cannot find through google or

  • 0

It should be a pretty simple question that I cannot find through google or the docs for the life of me. How do I change the transition style of my activity?

From what I’ve heard, there are the grow, left/right and up/down transitions for presenting and dismissing activities, but I don’t have a clue how to implement them.

  • 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-19T03:47:15+00:00Added an answer on June 19, 2026 at 3:47 am

    WHen you are doing:

    startActivity(intent);
    

    just put:

    startActivity(intent);
    overridePendingTransition(animIn, animOut);
    

    animIn and animOut are ints that you can just define in anim resources folder for example:

    slideInLeft.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <translate xmlns:android="http://schemas.android.com/apk/res/android"
        android:fromXDelta="100%p" android:toXDelta="0%p"
        android:duration="@android:integer/config_longAnimTime" />
    

    slideOutLeft.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <translate xmlns:android="http://schemas.android.com/apk/res/android"
        android:fromXDelta="0" android:toXDelta="-100%p"
        android:duration="@android:integer/config_longAnimTime" />
    

    And when you want to return to the first activity you need to do the same but in finish method of activity:

    finish();
    overridePendingTransition(animIn, animOut);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be a pretty simple regex question but I couldn't find any answers
I have a pretty simple Rails question regarding encoding that I can't find an
This question should be pretty simple. I have a php file in a directory
I'm racking my head over something that should be pretty simple to do. Its
I have a quick question that should be simple for most people here. On
All, This should be a pretty simple question, but I haven't found quite the
This should be pretty simple, still I can not see what/how something could be
This should be pretty simple, but I am new at LINQ. I have a
This feels like it should be pretty simple, but not much seems to be
This should be a pretty straightforward question. I have the following code, which forms

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.