创建一个圆形背景的圆形进度条

create a Circular progressbar with circular background

see this Image

我想创建一个新的向下滑动刷新进度条。一个圆圈和一个在里面旋转的箭头,就像 Gmail 应用程序一样。示例图像如上所示。

这叫做向下滑动刷新,要实现这个你必须使用android.support。v4.widget.SwipeRefreshLayout .

我们需要做的第一件事是将支持库添加到我们应用程序的 build.gradle 文件中。

compile 'com.android.support:support-v4:21.0.+'

然后我们必须创建一个这样的布局。

<android.support.v4.widget.SwipeRefreshLayout
        android:id="@+id/activity_main_swipe_refresh_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ListView
            android:id="@+id/activity_main_listview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            >
        </ListView>

    </android.support.v4.widget.SwipeRefreshLayout>

您可以通过代码找到很棒的教程 here