When one opens YouTube on Android and it's loading...
# compose-android
a
When one opens YouTube on Android and it's loading content, one will see the shapes of the to be displayed content, as placeholders. How can I achieve the same in Jetpack Compose? Is it because of older development platforms that YouTube uses? Or am I missing some composable that provides this behavior? Is this the recommended way to go forward for providing content?
c
You mean something like this? https://google.github.io/accompanist/placeholder/ It deprecated but easily adjustable.
thank you color 2
Btw, there was never a native api for this. It’s all just libraries. For xml layouts, Facebook had a library called shimmer https://github.com/facebookarchive/shimmer-android
👍 2
e
I ported the accompanist placeholder library https://github.com/eygraber/compose-placeholder
thank you color 1