많은 textViews 사이에서 전환되는 viewFlipper가 있습니다. 어떤 이유로 outAnimation에서 뷰가 스택됩니다. 단지 하나의 '애니메이션'을 수행하는 것과 하나의 '아웃 애니메이션'을 수행하는 대신 '애니메이션'을 수행하고 이전의 모든 뷰는 '애니메이션을 수행'합니다. 누군가가 뷰를 서로 위에 쌓아 두지 않는 상태를 얻을 수있게 도와 줄 수 있습니까? 생기?ViewFlipper가 'outAnimation'에 자식 뷰를 스택합니다.
애니메이션 : 아니마 밖으로
<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"/>
<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 있습니다 : 여기
는 플리퍼 XML이다 기는 :<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"/>
내 애니메이션이 왼쪽에서 오른쪽으로 텍스트를 변환
통지이 내가 아닌 실수를해야 할 것입니다. 도움을 주시면 대단히 감사하겠습니다 !!! 미리 감사드립니다!
설정된 애니메이션을 사용하려면 닫기 태그가 있어야합니다. 그러나 하나의 애니메이션 만하고 있기 때문에 세트 태그가 필요 없습니다. – blessenm
그게 무슨 뜻인지 그게 있다면 태그가 ... 그렇지 않으면 내가 그것을 컴파일하자면 일식 wouldnt. 어쨌든, 왜 당신은 나가 outAnimation에서 겹쳐 쌓인 내 견해를 가지고 있다는 단서가 있습니까? 나는 clearDisappearingChildren()을 시도했지만 도움이 안된다 : ... ( – psidemus