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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:39:24+00:00 2026-06-09T19:39:24+00:00

I have 2 views with the same animation, during this animation these views should

  • 0

I have 2 views with the same animation, during this animation these views should change your Z Orders for example The View A is over the View B during the animation I change this order, I’m getting this with viewA or viewB .bringToFront(); but the but the update is not immediate and I need this Z order changed at an exact point.

Thanks.

  • 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-09T19:39:26+00:00Added an answer on June 9, 2026 at 7:39 pm

    I solve this as follows:

    first in animation you set the custom interpolator, your class needs implements the ICustomInterpolator

    animation.setInterpolator(new CustomInterpolator(this));
    a.startAnimation(animation);
    b.startAnimation(animation);
    

    after

    public void currentProgress(float p, float time) {
        if(time == yourTime){
            a.bringToFront();
            a.invalidate();
            b.invalidate();
            a.requestLayout();
            b.requestLayout();
        }
    }
    

    the currentProgress is a Inteface method of a custom interpolator:

    public interface ICustomInterpolator {
        public void currentProgress(float p, float time);
    }
    

    in customInterpolator:

    public class CustomInterpolator extends
        AccelerateDecelerateInterpolator {
    
        private ICustomInterpolator delegate;
    
        public <T extends ICustomInterpolator> CustomInterpolator(T delegate) {
            super();
            this.delegate = delegate;
        }
    
        @Override
        public float getInterpolation(float input) {
            delegate.currentProgress(input);
            return super.getInterpolation(input);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application with several windows/views that show the same object. For example
I have 3 image view in which i started same animation (translate) I have
I have the same animation code applied to various views in my object, so
Is it considered bad practice to have multiple views for same URL in MVC,
In the asp.net mvc 3 application I have two views which have the same
I have two tabbar items(views) that use the same data, whats the best solution
I have three view on the same place. I need to show them like
Have deployed numerous report parts which reference the same view however one of them
I'm trying to have 2 pickerviews in the same view. It works except for
I have a view that I am showing. The view appears on the same

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.