seosh817 / CircularSeekBar

🌈 CircularSeekBar is a circular progress bar/seek bar android library that supports animations, dashes and gradients.
Apache License 2.0
19 stars 2 forks source link

Not able to add textviews #2

Open senkanishka23 opened 6 months ago

senkanishka23 commented 6 months ago

If I need to add the textview in the gap indicating the progress. What is the process for achieving this? Here is the below reference image

seosh817 commented 6 months ago

Hi, @senkanishka23! Thank you for reporting the issue!

In my opinion, adding a TextView to the starting or ending point of each dashWidth, or adding it to the middle point of dashGap and providing the value using angleToProgress, seems like a potential solution.

Alternatively, another approach could involve accepting a List of Integers as a parameter representing the desired angles. Then, you could add a TextView containing the Progress value obtained using angleToProgress to the corresponding positions.

Furthermore, since TextViews have been added, it might be necessary to slightly decrease the radius to accommodate the TextView size.

senkanishka23 commented 6 months ago

Have you please push the code for the enhancement?