假设我有一个 View 将它说成 image1 之类的,
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<ImageView
android:id="@+id/image1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ImageView
android:id="@+id/image2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<ImageView
android:id="@+id/image3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ImageView
android:id="@+id/image4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
所以现在,我正在使用 android 动画翻译,可以将 image4 翻译到 image3 的位置,因为它们在同一个父级中,但我想将 image3/image4 翻译到 image1/image2 的位置是在不同的 parent ......我已经尝试了每一个布局......
最佳答案
布局属性 clipChildren="false"对我来说很好....
关于android - 在android Translate-Animation中如何在另一个view2上方翻译view1,两个 View 以不同的布局退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28319866/