-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from imashnake0/shared-element-re
Shared Element Transition -> HomeScreen to MediaPage (Part 3)
- Loading branch information
Showing
4 changed files
with
103 additions
and
26 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/imashnake/animite/dev/SharedContentKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.imashnake.animite.dev | ||
|
||
data class SharedContentKey( | ||
val id: Int? = null, | ||
val source: String? = null, | ||
val sharedComponents: Pair<Component, Component> | ||
) { | ||
enum class Component { | ||
Card, | ||
Page, | ||
Text, | ||
Image, | ||
} | ||
|
||
override fun toString() = "${sharedComponents.first}_${sharedComponents.second}_${id}_${source}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters