Hello guys, I have a slide button like amazon app ...
# android
a
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
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
did you try out the motion layout for this?