Bruno Kongawi
08/13/2020, 10:38 PMZach Klippenstein (he/him) [MOD]
08/13/2020, 11:07 PMZach Klippenstein (he/him) [MOD]
08/13/2020, 11:09 PMRay Ryan
08/13/2020, 11:23 PMRay Ryan
08/13/2020, 11:24 PMBackStackContainer
has push and pop animations built in, and decides which one to run based on the difference based on the last stack the workflow wanted displayed, and the next one.Ray Ryan
08/13/2020, 11:24 PMRay Ryan
08/13/2020, 11:25 PMRay Ryan
08/13/2020, 11:25 PMRay Ryan
08/13/2020, 11:25 PMRay Ryan
08/13/2020, 11:25 PMRay Ryan
08/13/2020, 11:26 PMRay Ryan
08/13/2020, 11:27 PMrender()
is something like BackStackScreen(renderingOfScreenA, renderingOfScreenB)
Ray Ryan
08/13/2020, 11:28 PMRay Ryan
08/13/2020, 11:29 PMBackStackScreen(renderingOfScreenA)
Ray Ryan
08/13/2020, 11:29 PMBruno Kongawi
08/13/2020, 11:48 PMBackStackScreen
. Extracting view code (from the workflow) makes sense. And yeah, that's more or less what I was asking. I have been playing around with a playground project, where I have a parent workflow which would be aware of the navigation between its children, but additionally, I want the emissions/result of one (this could be data related to an element item in a recyclerview for example) to be used as a basis to create a transition animation to the new rendering (B
). Much like what you see below. Of course, this could all be one rendering (but I'd rather separate them). I wanted an opinion (if any at all) on this approach, or whether Square's Android team approaches this in the same manner. Thanks again.Bruno Kongawi
08/13/2020, 11:49 PMRay Ryan
08/13/2020, 11:53 PMRay Ryan
08/13/2020, 11:56 PMBruno Kongawi
08/14/2020, 12:02 AMRay Ryan
08/14/2020, 12:20 AMclass BrunoGrid(
val cells: List<BrunoGridCell>
)
class BrunoGridCell(
val id: String,
val photoUrl: String
// etc.
)
class BrunoFrame(
val id: String
val wrapped: Any
)
Ray Ryan
08/14/2020, 12:21 AMRay Ryan
08/14/2020, 12:22 AMRay Ryan
08/14/2020, 12:24 AMRay Ryan
08/14/2020, 12:25 AMBruno Kongawi
08/14/2020, 12:27 AMRay Ryan
08/14/2020, 12:27 AMRay Ryan
08/14/2020, 12:28 AMRay Ryan
08/14/2020, 12:30 AMRay Ryan
08/14/2020, 12:31 AMRay Ryan
08/14/2020, 12:32 AMRay Ryan
08/14/2020, 12:32 AMBruno Kongawi
08/14/2020, 12:36 AM