ここに私の問題があります:
次のような ViewAnimator があります。
<ViewAnimator
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/viewanimator">
<ViewStub
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/form_viewstub"
android:inflatedId="@+id/form_view"
android:layout="@layout/form_layout"/>
<ViewStub
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/history_viewstub"
android:inflatedId="@+id/history_view"
android:layout="@layout/history_layout"/>
<ViewStub
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/call_viewstub"
android:inflatedId="@+id/call_view"
android:layout="@layout/call_layout"/>
</ViewAnimator>
現在の後にあるビュータブをアニメーション化する場合、問題はありません。問題は、以前にビュータブをアニメーション化しようとすると、アニメーションが表示されないことです。具体的な例を次に示します。
id/history_viewstub
次のアニメーションでアニメーション化しようとするid/call_viewstub
と、現在表示されているレイアウトでは何も表示されません (アニメーションは現在のビューの背後で再生されていると思います)
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:interpolator="@android:anim/accelerate_interpolator"
android:fromXScale="0.0"
android:toXScale="1.0"
android:fromYScale="0.0"
android:toYScale="1.0"
android:pivotX="1.0"
android:pivotY="0.0"
android:fillAfter="true"
android:duration="600"/>
<translate
android:fromXDelta="100%"
android:toXDelta="0"
android:duration="600"/>
</set>
誰かがすでにこの問題に直面していますか?
z-index
Web 開発のようにビュータブにa を指定する方法はありますか?
編集
プロパティを使用してZAdjustment
も問題が解決しない