A simple Android Library for animation transition
Support from android api 16
No needed special permission in AndroidManifest
For several case, please add this if you are using android version >= 21 in the style.xml file in the values-v21
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:windowActivityTransitions">true</item>
</style>
Add repository in root build.gradle
repositories {
maven { url "https://jitpack.io" }
}
And add dependency to module build.gradle:
dependencies {
implementation 'com.github.alzaichsank:IntentAnimation:1.0.1'
}
Animation for can be work in Activity Transition so please place the code after intent or other activity transition event
startActivity(Intent(this,MenuActivity::class.java))
AnimIntent.Builder(this).performSlideToLeft()
override fun onBackPressed() {
super.onBackPressed()
AnimIntent.Builder(this).performSlideToRight()
}
- pahlevikun resource : https://github.com/pahlevikun/AcTrans