Android 向下滑动动画

Android 向下滑动动画,android,animation,xamarin.android,Android,Animation,Xamarin.android,我正在尝试设置TextView从ImageView后面向下滑动的动画。我有以下布局: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/description"

我正在尝试设置
TextView
ImageView
后面向下滑动的动画。我有以下布局:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content">
  <TextView
    android:id="@+id/description"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:padding="16dp"
    android:layout_margin="16dp"
    android:layout_marginTop="-10dp"
    android:background="@drawable/image_background"
    android:visibility="invisible" 
    android:layout_below="@id/image"
    />
  <ImageView
    android:id="@+id/image"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/image_background"
    android:adjustViewBounds="true"
    android:layout_margin="6dp"
    android:layout_below="@id/question"
  />
</RelativeLayout>
…并使用

descriptionView.Visibility = ViewStates.Visible;
Animation a = AnimationUtils.LoadAnimation(this, Resource.Animation.push_down);
descriptionView.StartAnimation(a);
然而,这是曲折的,并不是从我认为它会开始的地方开始,诺尔做缩放工作。我读过布局动画,当可见性改变时,动画可以自动触发,但我不知道如何触发


我如何让动画工作,还有更简单的解决方案吗?

在Android上,动画通常不是很流畅,如果你的目标是Android 3.0+版本,你可以启用硬件加速,你希望动画从哪里开始?您正在将Y delta设置为-100%p,这将启动动画up descriptionView。从其起始位置开始的像素高度。在Android上,动画通常不是很平滑,如果您的目标版本是Android 3.0+上,您可以启用硬件加速。您希望动画从何处开始?您正在将Y增量设置为-100%p,这将启动动画up descriptionView。高度距其起始位置的像素量。
descriptionView.Visibility = ViewStates.Visible;
Animation a = AnimationUtils.LoadAnimation(this, Resource.Animation.push_down);
descriptionView.StartAnimation(a);