progressbar原始效果

Posted lichl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了progressbar原始效果相关的知识,希望对你有一定的参考价值。

<?xml version="1.0" encoding="utf-8"?>
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromDegrees="0"
    android:pivotX="50%"
    android:pivotY="50%"
    android:toDegrees="360">
    <shape
        android:innerRadiusRatio="3"
        android:shape="ring"
        android:thicknessRatio="8"
        android:useLevel="false">
        <gradient
            android:centerColor="#B26BD3FF"
            android:centerY="0.50"
            android:endColor="#FF6BD3FF"
            android:startColor="#006BD3FF"
            android:type="sweep"
            android:useLevel="false" />
    </shape>
</animated-rotate>

效果xml

  <ProgressBar
        android:id="@+id/pb_progress"
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:indeterminateDrawable="@drawable/easy_recycler_footer_progress" />

 

以上是关于progressbar原始效果的主要内容,如果未能解决你的问题,请参考以下文章

ANDROID_MARS学习笔记_S01原始版_005_ProgressBar

花样ProgressBar

第一次进入片段ListView时AsyncTask更新progressBar的进度失败,滚动ListView后就ok了

winformprogressbar只显示灰色

android使用progressBar的时候,使用子线程修改进度的时候没有效果啊 代码如下 望高手解答 谢谢

android自己定义之 5.0 风格progressBar