我需要绘制一个水平的progressBar,但不是从左到右或从右到左填充,我需要从中心到侧面填充ir。
我已经阅读了我发现的所有内容,并找到了允许我这样做的任何图书馆,但我还没有找到任何东西。 我可以画直角,但我需要做一些计算以保持尺寸等等......
有人可以帮帮我吗?
非常感谢,事先。
I need to draw a horizontal progressBar, but instead of fill from left to right or from Right to left, I need that ir can be filled from center to sides.
I've read all I've found and find out any library that allow me to do this, But I haven't found anything. I can do it drawing rectagles, but I'll need to do some calculations to keep dimensions and so on...
Anyone can help me?
Thanks a lot beforehand.
最满意答案
通过组合2个进度条,您可以轻松地自己完成此操作。
左边是1,左边是右边,右边是1,左边是右边。 然后在它们两个上设置相同的进度,它们之间没有任何空间。 这将产生一个从中间和外部增长的进度条的错觉。
如果你真的想要一个库,这个库可以为你做到: https://github.com/castorflex/SmoothProgressBar
You could quite easily do this by yourself, by combining 2 progressbars.
1 to the left, that goes right-to-left, and 1 to the right, that goes left-to-right. Then just set the same progress on both of them, without any space in between them. This would create the illusion of 1 progress bar that grows from the middle and outward.
If you really do want a library, this library could do it for you: https://github.com/castorflex/SmoothProgressBar
更多推荐
发布评论