Skip to content

Circular-Reveal animation for going back and forth between Android Activities.

License

Notifications You must be signed in to change notification settings

YazdanZ/AndroidCircularReveal-Library

Repository files navigation

Android-CircularReveal

Circular Reveal Animation to go back and forth between android Activities.


Preview

How to use

  1. Add the line bellow to the repositories of your root build.gradle file:
    maven { url 'https://jitpack.io' }
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

  1. Add the following dependency in your app’s build.gradle file:
    implementation 'com.github.Unixado:AndroidCircularReveal-Library:Tag'
dependencies {
    implementation 'com.github.Unixado:AndroidCircularReveal-Library:Tag'
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'androidx.appcompat:appcompat:1.2.0'
}
  1. Use the library
    The opening animation should be run once the layout has been created. This could be done using the ViewTreeObserver.
    An example of usage has been created here.

Additional tips

You might face are the following problem when the default white or black android transition screen is being shown instead of the previous activity during the animation.

To solve that problem add this following lines to your styles.xml default Appstyle:

<item name="android:windowDisablePreview">true</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>