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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:31:16+00:00 2026-06-17T19:31:16+00:00

I have a transition from one activity to another that I am using in

  • 0

I have a transition from one activity to another that I am using in overridePendingTransition. Unfortunately all overridePendingTransition uses is the resource id of the file, so I am having trouble about how to edit this file so my transitions are proper.

Basically what I need to do is make changes to the R.anim.flip_in_scale_in so that I can change the value of the transitions fromX/toX so that it is set based on the user’s screen size.

overridePendingTransition(R.anim.flip_in_scale_in, R.anim.stationary_item); 

How do I update the R.anim.flip_in_scale_in file before use in the overridePendingTransition?

  • 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-17T19:31:17+00:00Added an answer on June 17, 2026 at 7:31 pm

    There isn’t a way you can alter the animation from the resource file in the way you want.

    However, you CAN create the animation to use percentages rather than dp values. When the animation is applied to the Activity‘s View, it will animate entirely on the view’s size (which in most cases is the screen size).

    This for example:

    <set xmlns:android="http://schemas.android.com/apk/res/android">
        <translate
            android:fromXDelta="100%"
            android:toXDelta="0%"
            android:duration="500"
            />
    </set>
    

    Will slide in the view from the right side to the screen within half-a-second.

    <set xmlns:android="http://schemas.android.com/apk/res/android">
        <scale
            android:interpolator="@android:anim/accelerate_decelerate_interpolator"
            android:fromXScale="1.0"
            android:toXScale="1.4"
            android:fromYScale="1.0"
            android:toYScale="1.4"
            android:pivotX="50%"
            android:pivotY="50%"
            android:duration="1000" />
    </set>
    

    This will increase the view to 40% it’s current size over the span of one second. The pivot will be directly in the middle of the view regardless of the view’s size.

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

Sidebar

Related Questions

I have an app that uses a transition file to flip from page to
I want to test for transition from one state to another. I have defined
I have an XSD that's going through a transition from one set of elements
I have a CSS3 position transition that makes a dive slide from one side
I have an Activity that plays some audio from within a ListActivity . The
I want to apply an activities transition like the one that HTC phones have:
I have to transition the CornerRadius property of a Border from value 0,0,0,0 to
I have a slider that has a fade-in and fade-out transition. It basically cycles
I have a UIButton which fires a target action causing one view to transition
I have a UITabBarController based application and I want to pass data from one

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.