I know this is not a new question but I didn't find any proper solution yet. How can I make a progress bar like the photo using native android xml layouts and no 3rd party libraries?
You need to create your custom View
. Then in onDraw()
method just draw on canvas
whatever you want. There is canvas.drawArc()
function.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.