簡體   English   中英

圓形進度條粗細,頭部較厚,尾部較細

[英]Circular progress bar thickness that's thicker the head and thinner on the tail

如何創建具有這種厚度的進度條,即頭部較厚,尾部較薄? 我也希望它是不確定的

在此處輸入圖片說明

你可以試試這個 git 庫,它會幫助你並提供更多的自定義https://github.com/castorflex/SmoothProgressBar ...

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

您可以在此處指定任何筆划寬度。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM