<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/test1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="test1" />
<TextView android:id="@+id/test2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="test2" android:layout_toLeftOf="@id/test1"/>
</RelativeLayout>
这是布局,我通过android:layout_toLeftOf把test2放到了test1左边,然后在test1上应用动画translate ,改变了坐标,但是test2没有一直跟着test1,android:layout_toLeftOf在动画上面没有效果?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货