Skip to content

Android custom view for showing animationdrawable

Notifications You must be signed in to change notification settings

eltld/AnimImageView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnimImageView

Android custom view for showing animationdrawable

Quick Start

Add the AnimImageView in the layout.xml like this:

<com.jackoder.widget.AnimImageView
	xmlns:aiv="http://schemas.android.com/apk/res-auto"
	android:id="@+id/aiv_loading"
	android:layout_width="wrap_content"
	android:layout_height="wrap_content"
	android:src="@drawable/empty_loading"
	aiv:aiv_auto="false"/>

Tips: The aiv_auto is to configure whether the animation will start by itself. The default is true.

##Maybe Useful AnimImageView also provides some method for manual control:

//restart is false
void startAnimation()

void startAnimation(boolean restart)

void stopAnimation()

I'm glad to have your good ideas for this. My email is jackoder@qq.com :)

About

Android custom view for showing animationdrawable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 100.0%