2012-11-03 50 views
2

我有一个ScrollView其中我有布局作为它的child.What我加载ScrollView内的每个布局使用android:layoutAnimation="@anim/layout"一个接一个,其中布局是anim文件。 这里是动画文件ScrollView Animation

<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android" 
    android:delay="200%" 
    android:animation="@anim/slide_in_up" /> 

slide_in_up这里是文件::

<translate 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:fromYDelta="100%p" 
    android:toYDelta="0" 
    android:duration="@android:integer/config_longAnimTime" /> 

现在的问题是,我想在滚动情况适用相同的。 作为用户滚动所有的布局应该来一个接一个。我遇到了Scroller类,但我没有它的例子。是否有无论如何实现它?

回答