开发者

Round corners in a progress bar Android

开发者 https://www.devze.com 2023-03-27 19:14 出处:网络
I\'m following that tip for change the color of a progress bar. The problem is that using that snipplet the corners of the progressbar turns squared. How can I keep the original corner开发者_开发知识库

I'm following that tip for change the color of a progress bar. The problem is that using that snipplet the corners of the progressbar turns squared. How can I keep the original corner开发者_开发知识库s look and change the colors? Thanks in advance


Try to assign each corner separately and put pixels instead of DIP, some manufacturers don't implement this feature correctly:

android:topLeftRadius="5px"
android:topRightRadius="5px"
android:bottomLeftRadius="5px"
android:bottomRightRadius="5px"
0

精彩评论

暂无评论...
验证码 换一张
取 消