DownloadProgress

Additional

Language
Kotlin
Version
N/A
Created
Jun 14, 2017
Updated
Jun 15, 2017 (Retired)
Owner
Alonso Sánchez (aloj22)
Contributor
Alonso Sánchez (aloj22)
1
Activity
Badge
Generate
Download
Source code

Advertisement

DownloadProgress

Telegram and whatsapp like download progress indicator

Usage

Add the library to your build.gradle

compile 'com.aloj.progress:download-progress:1.0'

Add support for vector drawable compat

android {
    defaultConfig { 
        vectorDrawables.useSupportLibrary = true
    }
}

Add DownloadProgressView to your xml

<com.aloj.progress.DownloadProgressView
        android:layout_width="45dp"
        android:layout_height="45dp"/>

Set progress

setProgress() //min 0, max 1

Developed By

Alonso Sanchez

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.