先看看效果图:
首先是布局文件
<FrameLayout android:layout_width=match_parent
android:layout_marginLeft=10dp
android:layout_marginRight=10dp
android:layout_height=wrap_content>
<ProgressBar
android:id=@+id/pb_process
style=@style/ProgressStyle
android:layout_width=match_parent
android