【开源】materialish-progress

materialish-progress

  •  https://github.com/pnikosis/materialish-progress

    介绍:

    一个material 风格的滚动式进度条(progress wheel),兼容2.3。系统自带的progress wheel在Lollipop上看起来很好看,在4.0上也还将就,但是在2.3版本上看起来就有点吓人了,而我们需要的是一个统一的视觉效果,因此制作了这个控件。

    运行效果:

  •  

    使用说明:

    首先:

    然后添加控件:

    1
    2
    3
    4
    5
    6
    7
    8
    <com.pnikosis.materialishprogress.ProgressWheel
            android:id="@+id/progress_wheel"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            wheel:barColor="#5588FF"
            wheel:progressIndeterminate="true" />

    或者用代码的方式添加:

    1
    2
    3
    ProgressWheel wheel = new ProgressWheel(context);
    wheel.setBarColor(Color.BLUE);
    ...

posted on 2015-03-30 11:14  wasdchenhao  阅读(970)  评论(0)    收藏  举报

导航