android中进度条和二级进度条简单的增加减少
1.UI代码
代码如下(示例):
<ProgressBar
android:id="@+id/pb_increment"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="100"
android:progress="40"
android:secondaryProgress="60" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<Button
android:id="@+id/btn_progress_add"
android:layout_width=