在Android的翻译,动画如何翻译上面的另一个视图2厂景,在不同的版面同时查看退出 [英] In android Translate-Animation how to Translate view1 above the another view2, both view exits in different layout

查看:131
本文介绍了在Android的翻译,动画如何翻译上面的另一个视图2厂景,在不同的版面同时查看退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一种观点说,这为喜欢此搜索

Suppose i have one view say it as image1 like,

 <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>

所以,现在,我与机器人动画合作翻译,这是可以翻译为image4上的Image3的位置,因为他们是在同一个父,但我想在翻译的Image3 /图片4至image1的/图像2的位置,这在不同的父....我都想尽布局...

So now,i am working with android animation Translate and it is possible to Translate image4 on to the position of image3 because they are in same parent, but i want to Translate image3/image4 on to the position of image1/image2 which is in different parent.... i have tried every layout...

推荐答案

布局属性clipChildren =假对我来说工作得很好....

layout property clipChildren="false" works fine for me....

这篇关于在Android的翻译,动画如何翻译上面的另一个视图2厂景,在不同的版面同时查看退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆