Fixing animations

This commit is contained in:
Hemanth S 2020-12-04 18:17:14 +05:30
parent b944ef5de6
commit 85d8d5cba9
3 changed files with 5 additions and 5 deletions

View file

@ -114,7 +114,7 @@ class AlbumsFragment : AbsRecyclerViewCustomGridSizeFragment<AlbumAdapter, GridL
} }
override fun onAlbumClick(albumId: Long, view: View) { override fun onAlbumClick(albumId: Long, view: View) {
exitTransition = MaterialElevationScale(false).apply { exitTransition = MaterialElevationScale(true).apply {
duration = 300L duration = 300L
} }
reenterTransition = MaterialElevationScale(false).apply { reenterTransition = MaterialElevationScale(false).apply {

View file

@ -115,10 +115,10 @@ class ArtistsFragment : AbsRecyclerViewCustomGridSizeFragment<ArtistAdapter, Gri
} }
override fun onArtist(artistId: Long, view: View) { override fun onArtist(artistId: Long, view: View) {
exitTransition = MaterialElevationScale(false).apply { exitTransition = MaterialElevationScale(true).apply {
duration = 300L duration = 300L
} }
reenterTransition = MaterialElevationScale(true).apply { reenterTransition = MaterialElevationScale(false).apply {
duration = 300L duration = 300L
} }
findNavController().navigate( findNavController().navigate(

View file

@ -1,13 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { buildscript {
ext.kotlin_version = '1.4.10' ext.kotlin_version = '1.4.20'
repositories { repositories {
jcenter() jcenter()
google() google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:4.1.0' classpath 'com.android.tools.build:gradle:4.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
def nav_version = "2.3.0" def nav_version = "2.3.0"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"