Pulsator4Droid

Pulse animation for Android.

##Maven

<dependency> <groupId>pl.bclogic</groupId> <artifactId>pulsator4droid</artifactId> <version>1.0.3</version> <type>pom</type> </dependency>

##Gradle

compile 'pl.bclogic:pulsator4droid:1.0.3'

##Usage ###In layout

< pl .bclogic.pulsator4droid.library.PulsatorLayout android:id= " @+id/pulsator " android:layout_width= " match_parent " android:layout_height= " match_parent " app:pulse_count= " 4 " app:pulse_duration= " 7000 " app:pulse_repeat= " 0 " app:pulse_color= " @color/colorAccent " app:pulse_startFromScratch= " false " app:pulse_interpolator= " Linear " > </ pl .bclogic.pulsator4droid.library.PulsatorLayout>

Use following properties

pulse_count : Number of pulse circles

: Number of pulse circles pulse_duration : Duration in milliseconds of single pulse

: Duration in milliseconds of single pulse pulse_repeat : Number of pulse repeats. Zero means INFINITE

: Number of pulse repeats. Zero means pulse_color : ARGB pulse color

: ARGB pulse color pulse_startFromScratch : Set to true if animation should start from the beginning

: Set to true if animation should start from the beginning pulse_interpolator : Set interpolator type used for animation. Accepted values are "Linear", "Accelerate", "Decelerate", "AccelerateDecelerate"

###In activity

PulsatorLayout pulsator = ( PulsatorLayout ) findViewById( R . id . pulsator); pulsator . start();

##Demo

Try the demo app and change the count and duration parameters in real time.

##Author

Lukasz Majda (lukasz.majda@gmail.com)

Inspired by iOS Pulsator library by Shuichi Tsutsumi

##License