简体   繁体   中英

How can I create arc progress bar using xml layouts in android without extra libraries?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM