0

I'm looking for a way to produce a button with progress functionality (the button is pressed at the end of the progress...) like in Waze, here in an example (the "Go now" button):

enter image description here

I found this solution:

Create rectangle border progress bar in android

And here is the result of the implementation made there:

enter image description here

But unfortunately this is not good enough (I can't changes the button corner radius to something round and the side progresses moving in a different speed the the top and the bottom progress).

From a check I made the Waze app creates the progress using a canvas and by painting paths on it. Does anyone have implemented something similar and could push me in the right direction on how it done?

Thanks in advance for any help you can provide.

Emil Adz
  • 39,787
  • 36
  • 133
  • 182
  • Does this answer your question? [How to draw a partial round rect on a android canvas?](https://stackoverflow.com/questions/38276424/how-to-draw-a-partial-round-rect-on-a-android-canvas) – Henry Twist Jun 21 '21 at 14:32
  • @HenryTwist no, it does not. It explains how to draw a rect in Android, not how to created the requested progress animation in this question. – Emil Adz Jun 29 '21 at 06:25
  • The solution would be to use that plus an animator. I can add an answer to clarify if you'd like? – Henry Twist Jun 29 '21 at 11:04
  • @HenryTwist I'm still trying to manage and create the button as specified in the answer you provided, but for now without success. But any answer that you can provided and will help solve this question would be a good a needed addition. Thanks. – Emil Adz Jun 29 '21 at 19:59

0 Answers0