https://kotlinlang.org logo
a

Alf_

12/16/2020, 1:30 PM
Hello guys, I have a slide button like amazon app and I'm trying to transform the text inside to white when the trail layout is over it and turn it black when I swipe out back. Do you know guys if this is possible? I tried using another text overlapped in the middle but its moving with the trail and not keeping in the middle of the button.
stackoverflow 1
google 1
m

Matt Lien

12/16/2020, 4:39 PM
I recently had to do something similar. I didn't have a lot of time to do it so chose the easiest/simplest path. I created it as a seek bar and then created the desired color schemes in in the progress drawable. The one caveat is I had to create the text as an svg. My app is currently English only so this was an "acceptable" solution.
❤️ 1
Realized I mistyped one thing. I meant seek bar (not progress bar). I edited that in the above post.
h

Hitender Pannu

03/03/2021, 8:33 AM
did you try out the motion layout for this?
6 Views