Circular Reveal Animation to go back and forth between android Activities.
- 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' }
}
}
- 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'
}
- 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.
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>