material motion compose:Jetpack Compose的Material Motion 源码

qqtriangle89388 19 0 ZIP 2021-04-08 16:04:08

Jetpack Compose的Material Motion Jetpack Compose库,用于在Android的Material Components中实现。 用法 该库提供了对“材料”规范中定义的支持。 共享轴 val (screen, onScreenChanged) = remember { mutableStateOf( .. .) } SharedAxis ( targetState = screen, axis = Axis . X , forward = true , slideDistance = 30 .dp // (optional) ) { newScreen -> // composable according to screen } // or MaterialMotion ( targetState =

用户评论
请输入评论内容
评分:
暂无评论