使用活动+片段cardview过渡片段、cardview

2023-09-07 00:14:21 作者:伸手摘星星

我这么苦苦很难找到如何拿出的设计和实施显示cardview的,这样当用户点击一个cardview以detailActivity那么必须有一个[转型] [1]。下面是动画的链接。请帮帮我https://m.xsw88.com/allimgs/daicuo/20230907/3873.png.gif

I am so struggling hard to find how to come up with the design and implementation of showing cardview so that when a user click a cardview to detailActivity then there must be a [transition][1]. below is the link of the animation. Please help me https://m.xsw88.com/allimgs/daicuo/20230907/3873.png.gif

推荐答案

您可以在其的LayoutManager GridLayoutManager 和那些类型转换的棒棒糖和Android的新版本。如果你想在pre-棒棒糖设备的过渡也可以使用这个库 https://开头github.com/takahirom/$p$pLollipopTransition

you can use cardviews in recyclerview with its LayoutManageras GridLayoutManager and those type of transitions are available in Lollipop and newer versions of android. if you want those transitions in pre-lollipop devices too,you can use this library https://github.com/takahirom/PreLollipopTransition