https://kotlinlang.org logo
Title
a

Akram Bensalem

06/29/2022, 9:51 AM
Is it possible to make the same with Jetpack compose ?
:yes: 3
😱 2
s

ste

06/29/2022, 10:04 AM
yes, but... good luck 😂
😂 7
c

Csaba Szugyiczki

06/29/2022, 10:12 AM
I guess yes, but you really really should not! This is not what a Floating Action Button was ever meant to be. It is really confusing…
😯 1
2
☝️ 1
It might be a great way to learn animations but please do not ever release it as a library 😄
❤️ 2
f

Filip Wiesner

06/29/2022, 10:36 AM
I guess so but not every app needs to use the “Material” design language. This can be used in design where there is no concept of “floating action button”. I would welcome this as a cool library for those that can make use of it in their design language or at least as a cool example of Compose animations
c

Csaba Szugyiczki

06/29/2022, 10:39 AM
Okay, but then it should not look anything like a FAB. Otherwise it is not a new design language, but a misused existing design language
☝️ 1
f

Filip Wiesner

06/29/2022, 10:41 AM
“FAB” is just a round button with shadow. It’s not that hard to accidentally look like FAB. I understand your argument (edit: and agree with it) but I still think that “_please do not ever release it as a library_” is a bit harsh
c

Csaba Szugyiczki

06/29/2022, 10:45 AM
Sorry, I did not mean to be rude. What my intention was, to prevent this from getting traction and end up as a misused pattern. These concepts are quite opinionated and when they are used in ways they should not be, they create confusion, instead of making UIs more predictable and uniform
f

Filip Wiesner

06/29/2022, 10:47 AM
👍 Agreed
o

Oleksandr Balan

06/29/2022, 10:57 AM
Actually I have implemented something similar for Week 1 of AndroidDevChallenge, you can find the
WaveComposable
useful: https://github.com/oleksandrbalan/android-dev-challenge-compose/blob/main/app/src/[…]java/com/example/androiddevchallenge/overview/WaveComposable.kt It was inspired by this Dribble: https://dribbble.com/shots/5967252-Tab-Bar-Animation
a

andrew

06/29/2022, 3:07 PM
Very possible
d

dewildte

06/29/2022, 4:38 PM
Yes it is.
c

Csaba Szugyiczki

06/30/2022, 7:01 AM
Guess I was late with the “prevent this from getting traction” part 🙂