What the Heck Is a Surface In Jetpack Compose?!

preview_player
Показать описание
Follow for more Android & Kotlin tips 🙌
Рекомендации по теме
Комментарии
Автор

man's now reading documentation out loud on code background

serpenheir
Автор

Something I didn't realise - on a Surface, the origin (0, 0) is the middle of the screen, not the top left. So surfaces can mess with you if you're trying to do absolute positioning, depending on how you think about your screen coordinates.

trejkaz
Автор

Thank you!
It must be said that I didn't find any other way to choose elevation except using Surface(). So it looks like it is not its benefit but the only way.

alexnovikov
Автор

It doesn't accept the given size constraints. It always take Correct???? If not, please correct me

irsathkareem
Автор

What is that color scheme! I gotta have it.

danyos