Reputation: 356
I am working on widget in which there is a progressbar and a textview below progressbar. This textview shows the current progress. But the position of textview changes according to value of progress in progressbar.Like in this image. Can anyone help me out in this Or guide me in the right direction. I would like to mention that the OS i am working on is 2.3 (10) Thanks
Upvotes: 1
Views: 764
Reputation: 2563
You could dynamically apply X coordinates based on the progress with a 0 length animation. https://developer.android.com/reference/android/view/ViewPropertyAnimator.html
Upvotes: 1