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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:23:04+00:00 2026-06-06T13:23:04+00:00

I am building an android app, and I want to be able to have

  • 0

I am building an android app, and I want to be able to have a custom transition from one of the activities to another. when I press a button on the first activity I want it to reduce its size and go to the one of the corners of the screen until it disappears, and the second activity is called. Of course, during the resizing and moving the first activity, the second activity will begin to show itself (what I want to say is, during this time, I don’t want to have a black screen underneath). Does someone have experience with this kind of stuff? I also want to note that I am building my app for API 3.0+ so it is ok to use newer functions and methods. Thx!

  • 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-06T13:23:07+00:00Added an answer on June 6, 2026 at 1:23 pm

    You should be able to use a simple scale animation for this. In the second activity you can do something like:

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    
        overridePendingTransition(R.anim.scale_from_corner, R.anim.scale_to_corner);
    }
    

    For the animations it’d be:

    scale_to_corner.xml

    <set xmlns:android="http://schemas.android.com/apk/res/android">
        <scale android:fromYScale="1.0" android:toYScale="0"
            android:fromXScale="1.0" android:toXScale="0" 
            android:duration="500"/>
    </set>
    

    and scale_from_corner.xml

    <set xmlns:android="http://schemas.android.com/apk/res/android">
        <scale android:fromYScale="0" android:toYScale="1.0"
            android:fromXScale="0" android:toXScale="1.0" 
            android:duration="500" android:pivotX="100%"
            android:pivotY="100%" />
    </set>
    

    This will make your first activity shrink into the top left corner while your second activity grows from the bottom right corner. If you want to change the point in which they grow from or shrink to, you can just change the pivotX and pivotY.

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

Sidebar

Related Questions

I'm building a zip code search page for my Android app so I want
I am building an Android app using phoneGap and I have successfully added the
I'm building an Android app and I need to have two different themes for
I am building an app for iPhone, android and Blackberry, and I have put
I'm building the Android scanning app using zxing library. I have built the zxing
I'm building an app that retrieve JSON from URL. At first, I used emulator,
I am building an Android app through which i want to instantly mail the
I'm building an Android app (so machines with limited resources) and I want to
i'm building an android app and i want to add a history function. I
I'm building a custom calendar view for my android app that allows you to

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.