Skip to content

Instantly share code, notes, and snippets.

@shaobin0604
Created April 29, 2020 08:53
Show Gist options
  • Save shaobin0604/adc849a861ace066f0c4dbb77da7b9e6 to your computer and use it in GitHub Desktop.
Save shaobin0604/adc849a861ace066f0c4dbb77da7b9e6 to your computer and use it in GitHub Desktop.
游戏计次次数变化动画
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true"
android:fillBefore="true"
android:interpolator="@android:interpolator/linear"
android:shareInterpolator="true">
<alpha
android:duration="250"
android:fromAlpha="0.0"
android:startOffset="0"
android:toAlpha="1.0" />
<translate
android:duration="250"
android:fromXDelta="0"
android:fromYDelta="20%"
android:startOffset="0"
android:toXDelta="0"
android:toYDelta="0" />
<alpha
android:duration="250"
android:fromAlpha="1.0"
android:startOffset="250"
android:toAlpha="0.0" />
<translate
android:duration="250"
android:fromXDelta="0"
android:fromYDelta="0"
android:startOffset="250"
android:toXDelta="0"
android:toYDelta="-20%" />
</set>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment