android / views-widgets-samples

Multiple samples showing the best practices in views-widgets on Android.
Apache License 2.0
5.06k stars 3.01k forks source link

KeyAttribute motionProgress Doesn't work #182

Open Jiang00 opened 4 years ago

Jiang00 commented 4 years ago
    <KeyFrameSet>

        <KeyAttribute
            android:alpha="1"
            android:translationY="0dp"
            app:framePosition="50"

            app:motionTarget="@+id/view_his_bg" />
        <KeyAttribute
            android:alpha="0"
            app:framePosition="50"
            app:motionTarget="@+id/tv_ceshi" />
        <KeyAttribute
            app:framePosition="10"
            app:motionProgress="1.0"
            app:motionTarget="@id/cl_view" >
        </KeyAttribute>

When the framePosition is 10, setting the animation progress to 1 does not work