ImageProgressView

Additional

Language
Kotlin
Version
N/A
Created
Oct 26, 2018
Updated
Nov 5, 2018
Owner
Alessandro Persiano (appersiano)
Contributor
Alessandro Persiano (appersiano)
1
Activity
Badge
Generate
Download
Source code

Advertising

ImageProgressView

Stop using boring standard progress bar...use images!

Example

Installing

Add this to your build.gradle file

implementation 'com.github.appersiano:imageprogressview:-SNAPSHOT'

Usage

Inside your layout.xml

<com.appersiano.progressimage.ProgressImage
       android:id="@+id/vlImage"
       android:layout_width="0dp"
       app:imageShadowColor="#FF0000"
       app:srcImage="@drawable/tree"
       android:layout_height="200dp"
       android:layout_marginBottom="8dp"
       app:layout_constraintBottom_toBottomOf="parent"
       app:layout_constraintEnd_toEndOf="parent"
       app:layout_constraintStart_toStartOf="parent"
       android:layout_marginTop="8dp"
       app:layout_constraintTop_toBottomOf="@+id/btnAnimate"/>

and in your Activity/Fragment

btnAnimate.setOnClickListener {
            vlImage.setProgress(tvValue.text.toString().toInt(), true)
        }

Contribute

Feel free to fork and add other functionalities! Don't forget to make a pull request!

Author