Skip to content

Dreamer206602/RoundProgressBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<com.sum.roundprogressbar.RoundProgressBar
        android:id="@+id/progress1"
        android:layout_width="100dp"
        android:layout_height="100dp"
        custom:max="100"
        custom:roundColor="#F9DA80"
        custom:roundProgressColor="#FF9933"
        custom:roundProgressWidth="10dp"
        custom:roundWidth="10dp"
        custom:textSize="16sp"
        custom:style="STROKE"
        custom:textIsDisplayable="true"
        />

<com.sum.roundprogressbar.RoundProgressBar
        android:id="@+id/progress2"
        android:layout_width="100dp"
        android:layout_height="100dp"
        custom:max="100"
        custom:roundColor="#F9DA80"
        custom:roundProgressColor="#FF9933"
        custom:roundProgressWidth="10dp"
        custom:roundWidth="10dp"
        custom:textSize="16sp"
        custom:style="HORIZONTAL"
        custom:textIsDisplayable="true"
        />

<com.sum.roundprogressbar.RoundProgressBar
        android:id="@+id/progress3"
        android:layout_width="100dp"
        android:layout_height="100dp"
        custom:max="100"
        custom:roundColor="#F9DA80"
        custom:roundProgressColor="#FF9933"
        custom:roundProgressWidth="10dp"
        custom:roundWidth="10dp"
        custom:textSize="16sp"
        custom:style="FILL"
        custom:textIsDisplayable="true"
        />

styleable

        <attr name="roundColor" format="color"/>
        <attr name="roundProgressColor" format="color"/>
        <attr name="roundWidth" format="dimension"></attr>
        <attr name="roundProgressWidth" format="dimension"></attr>
        <attr name="textColor" format="color" />
        <attr name="textSize" format="dimension" />
        <attr name="max" format="integer"></attr>
        <attr name="textIsDisplayable" format="boolean"></attr>
        <attr name="style">
            <enum name="STROKE" value="0"></enum>
            <enum name="FILL" value="1"></enum>
            <enum name="FILL_AND_STROKE" value="2"></enum>
            <enum name="HORIZONTAL" value="3"></enum>
        </attr>

About

常用的进度VIEW

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages