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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:36:18+00:00 2026-06-09T22:36:18+00:00

I have a ViewFlipper which runs a view animation when showPrevious is called. The

  • 0

I have a ViewFlipper which runs a view animation when showPrevious is called. The animation works out fine. But the problem is it starts with a delay of over 1 seconds. Now this doesn’t seem like much but it seriously delays usage of the app.

My animations look like this;

Animation inFromLeft = new TranslateAnimation(
    Animation.RELATIVE_TO_PARENT, -1.0f,
    Animation.RELATIVE_TO_PARENT, 0.0f,
    Animation.RELATIVE_TO_PARENT, 0.0f,
    Animation.RELATIVE_TO_PARENT, 0.0f);
inFromLeft.setDuration(350);
inFromLeft.setInterpolator(new LinearInterpolator());   

Animation outtoRight = new TranslateAnimation(
    Animation.RELATIVE_TO_PARENT, 0.0f,
    Animation.RELATIVE_TO_PARENT, +1.0f,
    Animation.RELATIVE_TO_PARENT, 0.0f,
    Animation.RELATIVE_TO_PARENT, 0.0f);
outtoRight.setDuration(350);
outtoRight.setInterpolator(new LinearInterpolator());

I set the animations using setInAnimation and setOutAnimation;

setInAnimation(inFromLeft);
setOutAnimation(outtoRight);

And then I just launch the animation using showPrevious

Is there any reason why the animations starts with a delay of over 1 seconds, the startTime for the animations is -1 and the startOffset is 0.

  • 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-09T22:36:19+00:00Added an answer on June 9, 2026 at 10:36 pm

    Two suggestions. First, if possible, change over to using ViewPager. Second, if the first is not possible, then use XML-based animations. Pushing stuff out of code and into resources is usually a win.

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

Sidebar

Related Questions

I have a project which works as a presentation of ImageViews with animation of
Have deployed numerous report parts which reference the same view however one of them
I have a ViewFlipper which contains a few linear layouts. I need to allow
I have a ViewFlipper in my Activity that is used as a footer view
I have a ViewFlipper loaded with ImageViews (about 24) which are screenshots for the
I have implemented a ViewFlipper with 8 child view in my application as follows.
I'm making an Android app and have a strange problem. I need a ViewFlipper
I have a ViewFlipper which holds a single ImageView. i want to be able
I have add a ViewFlipper in which has 2 linearlayout,and I have made an
i have a ViewFlipper , which contains only on ListView .The flipper uses SwipeDetection

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.