【问题标题】:Circular progress bar thickness that's thicker the head and thinner on the tail头部粗尾部细的圆形进度条粗细
【发布时间】:2020-03-27 05:52:07
【问题描述】:

我怎样才能创建这种厚度的进度条,即头部较粗,尾部较细?我也希望它是不确定的

【问题讨论】:

    标签: android android-custom-view android-progressbar


    【解决方案1】:

    你可以试试这个 git 库,它会帮助你并提供更多的自定义 https://github.com/castorflex/SmoothProgressBar...

    mProgressBar.setIndeterminateDrawable(new SmoothProgressDrawable.Builder(context)
    .strokeWidth(8f)            //You should use Resources#getDimension
    .build());
    

    您可以在此处指定任何笔画宽度。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-07-26
    • 1970-01-01
    • 1970-01-01
    • 2021-10-25
    • 1970-01-01
    • 2020-08-23
    • 2011-01-17
    • 1970-01-01
    相关资源
    最近更新 更多