ContentLoadingProgressBar


注意必須設置style:

1 <android.support.v4.widget.ContentLoadingProgressBar
2         android:id="@+id/progressBar"
3         android:layout_width="16dp"
4         android:layout_height="16dp"
5         android:layout_marginTop="10dp"
6         android:layout_marginEnd="30dp"
7         kongqw:layout_constraintEnd_toEndOf="parent"
8         kongqw:layout_constraintTop_toBottomOf="@+id/switch1"
9         style="@style/Base.Widget.AppCompat.ProgressBar" />

設置進度條顏色:

1 //設置掃描進度條的顏色
2         mProgressBar.getIndeterminateDrawable().setColorFilter(ContextCompat.getColor(this,R.color.bt_progressBar), PorterDuff.Mode.MULTIPLY);

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM