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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:02:50+00:00 2026-06-12T10:02:50+00:00

Is it possible to override Android’s LayoutAnimationController in such a way that only certain

  • 0

Is it possible to override Android’s LayoutAnimationController in such a way that only certain child Views that I specify inside a ViewGroup will animate? My goal is to choose an arbitrary set of the child views based on the current state of the Activity and animate them with the same animation at exactly the same time, then at a later time choose a different arbitrary set of child views and do the same thing. I would like to be able to do this continually until the Activity is finished running.

So far I have looked at and dismissed a couple of options:

  1. Calling startAnimation(Animation) the specific child views
    individually, however there is not a guarantee that they will all
    start and end at exactly the same time, especially if the number of
    views in the arbitrary set is large.
  2. Overriding LayoutAnimationController.getAnimationForView() seemed
    like it would be the easiest way, but the method is final and cannot
    be overridden.

I have been scratching my head for some time on this and figured I would give Stack Overflow a shot.

  • 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-12T10:02:51+00:00Added an answer on June 12, 2026 at 10:02 am

    I wasn’t able to find a way to change Android’s LayoutAnimationController, but did come up with a simple solution that does what I want. I created a View subclass that can selectively ignore calls to run an animation if I so choose.

    public class AnimationAverseView extends View {
    
        private boolean mIsAnimatable = true;
    
        public void setAnimatible(boolean isAnimatable) {
            if (!isAnimatable) {
                clearAnimation();
            }
            mIsAnimatable = isAnimatable;
        }
    
        @Override
        public void startAnimation(Animation animation) {
            if (mIsAnimatable) {
                super.startAnimation(animation);
            }
        }
    }
    

    I did not worry about any other possible animation-related methods, since I only animate the Views via a LayoutAnimationController.

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

Sidebar

Related Questions

Is it possible to override the standard layouts that are provided with Android? Is
Possible Duplicate: Android : CalledFromWrongThreadException;: Only the original thread that created a view hierarchy
Is it possible to override the functionality of the android power button ? I
Possible Duplicate: Android App high cpu-usage I am programming a app that has to
Possible Duplicate: Double Tap -> Zoom on Android MapView? I have an Activity that
Possible Duplicate: android - exit application code I am finding the way to exit
Possible Duplicate: @Override annotation error (android prefs) I have imported a project into my
Possible Duplicate: Android HttpClient : NetworkOnMainThreadException I am working on an application that is
Is it possible to override the GetHashCode method for a string, int, int32 etc..
Is it possible to override reflection functionality ?

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.