Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 1.63 KB

File metadata and controls

59 lines (45 loc) · 1.63 KB

BorderProgressButton

license

Support DataBinding, Border style, Progress animation, Android button.

gif

Dependency

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    implementation 'com.github.davistsin:BorderProgressButton:{latest version}'
}

Guideline

<com.davistsin.widget.BorderProgressButton
    android:layout_marginTop="64dp"
    android:id="@+id/progress_button"
    android:layout_width="150dp"
    android:layout_height="50dp"
    app:bpbAnimationDuration="200"
    app:bpbBorderRadius="50dp"
    app:bpbBorderWidth="2dp"
    app:bpbProgress="@{viewModel.progress}"
    app:bpbText="@{viewModel.progressText}"
    app:bpbTextSize="22sp" />

attributes

attr unit description
bpbProgress int
bpbProgressColor HEX
bpbMax int
bpbText string
bpbTextColor HEX
bpbTextCoverColor HEX
bpbTextSize sp
bpbBorderRadius dp
bpbBorderColor HEX
bpbBorderWidth dp
bpbBackgroundColor HEX
bpbAnimationDuration int