私はviewFlipperを持っています。これは多くのtextViewsの間を反転します。 何らかの理由で、ビューがoutAnimationにスタックします。 「アニメーション」を実行している人と「アウト・アニメーション」を実行している人の代わりに、「アニメーション」と「アニメーション」を実行していた以前のすべてのビューを持っている人がいます。アニメーション?ここでViewFlipperは 'outAnimation'の子ビューをスタックします
はフリッパーの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>
そしてここでは、アニメーションXMLSです:アニメーションで
:アニマアウト
<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"/>
ン:
<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"/>
は私のアニメーションは左から右へのテキストを翻訳気づく、これは私が間違いなく、必要なものです。 何か助けが大いに評価されるでしょう!前もって感謝します!
設定したアニメーションを使用する場合は、閉じるタグが必要です。しかし、アニメーションを1つしかやっていないので、セットタグは必要ありません。 – blessenm
あなたが意味するものなら、タグがあります。そうでなければ、私はそれをコンパイルさせません。とにかく、私はoutAnimationで私のビューを積み重ねた理由を手がかりを持っていますか?私はclearDisappearingChildren()を試してみましたが、それは助けになりませんでした... ...( – psidemus