https://kotlinlang.org logo
#compose
Title
# compose
m

Micko Cabacungan

08/02/2022, 7:52 PM
is there a way to specifically not decompose a particular item inside of a
LazyColumn
s

Stylianos Gakis

08/02/2022, 9:37 PM
Sounds like relying on such behavior is non optimal. What are you trying to achieve, maybe there are better alternatives
m

Micko Cabacungan

08/02/2022, 9:39 PM
I have an item that plays a video (which is a logo), and I am trying to have that particular compose not be re-created everytime because it causes loading buffer and replays on the old position I’m using exoplayer under the hood, Ive tried remembering the player itself but I think creating the AndroidView to feed the video is the one thats actually constantly being recreated
Im not sure if remembering a view is a good idea either
c

Colton Idle

08/03/2022, 4:26 AM
i did come across this today which might help https://github.com/imherrera/compose-video-player
4 Views