Skip to content

Instantly share code, notes, and snippets.

@vladborovtsov
Created June 25, 2017 07:14
Show Gist options
  • Save vladborovtsov/e6ff7bcc6050254f0387032bfb6e82d9 to your computer and use it in GitHub Desktop.
Save vladborovtsov/e6ff7bcc6050254f0387032bfb6e82d9 to your computer and use it in GitHub Desktop.
fade in/out using object animator
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" android:ordering="sequentially">
<objectAnimator android:propertyName="alpha"
android:duration="200"
android:valueFrom="1.0"
android:valueTo="0.0"
android:valueType="floatType" />
<objectAnimator android:propertyName="alpha"
android:duration="200"
android:valueFrom="0.0"
android:valueTo="1.0"
android:valueType="floatType" />
</set>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment