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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:30:32+00:00 2026-05-26T10:30:32+00:00

I have a viewFlipper which flips between many textViews. For some reason the views

  • 0

I have a viewFlipper which flips between many textViews.
For some reason the views stack on outAnimation. instead of just one performing ‘in animation’ and one performing ‘out animation’ I got one performing ‘in animation’ and all previous views performing ‘out animation’, Can somebody help me achieve a state where views dont stack upon each other on out animation?

Here is the flipper xml:

<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content"
        android:id="@+id/viewFlipper1"      
        android:background="#60000000"
        android:inAnimation="@anim/flipper_transition_in"
        android:outAnimation="@anim/flipper_transition_out"
        android:autoStart="true"
        android:flipInterval="5000">

        <TextView  android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:textSize="20sp"
            android:text="אין דבר העומד בפני הרצון"
            android:textStyle="bold"
            android:gravity="center"
            android:textColor="#00ff00"
            android:singleLine="true"
            >
            </TextView> 

        <TextView  android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:textSize="20sp"
            android:text="קשה – זאת אומרת אפשר"
            android:textStyle="bold"
            android:gravity="center"
            android:textColor="#00ff00"
            android:singleLine="true"
            >
            </TextView>
        <TextView  android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:textSize="20sp"
            android:text="מי שלא מעז – לא מצליח"
            android:textStyle="bold"
            android:gravity="center"
            android:textColor="#00ff00"
            android:singleLine="true"
            >
            </TextView>
        <TextView  android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:textSize="20sp"
            android:text="אל תצפה לזה - תעבוד בשביל זה"
            android:textStyle="bold"
            android:gravity="center"
            android:textColor="#00ff00"
            android:singleLine="true"
            >
            </TextView>
        <TextView  android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:textSize="20sp"
            android:text="אל תוותר על מה שאתה רוצה"
            android:textStyle="bold"
            android:gravity="center"
            android:textColor="#00ff00"
            android:singleLine="true"
            >
            </TextView>
        <TextView  android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:textSize="20sp"
            android:text="דברים גדולים דורשים זמן"
            android:textStyle="bold"
            android:gravity="center"
            android:textColor="#00ff00"
            android:singleLine="true"
            >
            </TextView>     
        <TextView  android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:textSize="20sp"
            android:text="כשתגיע לשם תצחק על כולם"
            android:textStyle="bold"
            android:gravity="center"
            android:textColor="#00ff00"
            android:singleLine="true"
            >
            </TextView>

And here are the animation xmls:

in animation:

 <set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator"
>
 <translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="5000"/> 

out animation:

 <set xmlns:android="http://schemas.android.com/apk/res/android"
    android:interpolator="@android:anim/linear_interpolator"
    >
 <translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="5000"/>

notice my animation translates the text from left to right, this is what i need, not a mistake.
any help would be greatly appreciated!!! thanks in advance!

  • 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-05-26T10:30:33+00:00Added an answer on May 26, 2026 at 10:30 am

    Hey your code seems to work. I did make a small change in the viewflipper tag.

    <ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:id="@+id/viewFlipper1" android:background="#60000000"
        android:inAnimation="@android:anim/slide_in_left" 
        android:outAnimation="@android:anim/slide_out_right"
        android:autoStart="true" android:flipInterval="5000">
    

    Instead of using the animation code you wrote, I used the animation in the android sdk.
    Btw your code doesn’t have an end viewflipper tag. And instead of using
    use . You are not enclosing anything so the end tag isn’t really necessary.

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

Sidebar

Related Questions

I have a ViewFlipper where one of the views is a ListView. To move
I have a ViewFlipper in which I want to add Views (Relative Layout with
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have a ViewFlipper which contains a few linear layouts. I need to allow
I have a ViewFlipper with many images. I add images to ViewFlipper like this
I would like to switch to certain views in a ViewFlipper. Currently, I have
I have a ViewFlipper loaded with ImageViews (about 24) which are screenshots for the
I need some help. In my android app I have a ViewFlipper that contains
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

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.