03 ProgressBar 进度条

    >
     style="?android:attr/progressBarStyleSmall" 样式
       
        android:progress="40"   第一进度
        android:secondaryProgress="50"  第二进度
<span style="font-size:18px;"><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#000000"
    android:orientation="vertical" >

      <EditText
        android:textColor="#ffffff"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="?android:attr/progressBarStyleHorizontal 水平条进度样式" />
    <!--
    android:progress="100"设置当前进度
     android:max="100"最大进度
     style="?android:attr/progressBarStyleHorizontal"水平条进度样式
     android:secondaryProgress="10"设置第二进度条(副进度条)进度 max和主进度一样
     -->
    <ProgressBar
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:progress="100"
        android:max="100"
        style="?android:attr/progressBarStyleHorizontal"
        android:secondaryProgress="10"
         />
    
      
    <EditText
        android:textColor="#ffffff"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="?android:attr/progressBarStyleLarge 大圆样式" />

    <ProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        style="?android:attr/progressBarStyleLarge"
        />
    
    <EditText
        android:textColor="#ffffff"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="默认样式" />

    <ProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
    <EditText
        android:textColor="#ffffff"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="?android:attr/progressBarStyleSmall小圆样式" />

    <ProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        style="?android:attr/progressBarStyleSmall"
        />

</LinearLayout></span>


原文地址:https://www.cnblogs.com/muyuge/p/6152307.html