AndroidButtonProgress
This is a combination of button and progress bar. There are 4 states in this view first Idle, Indeterminate, Determinate and Finish. it makes you easy to manage download button state in your app ui.
In a download case you can use this as.
- 1st show download button to the user
- 2nd show indeterminate progress bar, it tells the user that the download is connecting.
- 3rd show determinate progress bar, which tells the user that the download is progressing
- 4th show finish button/icon
Demo
Usage
Use jitpack
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Gradle
dependencies {
compile 'com.github.abdularis:androidbuttonprogress:v0.1-alpha5'
}
Please always use same width and height for this button progress view
You can also
Use custom drawable for every state
Note: you can use DownloadButtonProgress as upload button too just replace the idle download icon with upload icon! :)
Click listener
attrs for DownloadButtonProgress