Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Apr 24, 2015
1 parent 726f7e9 commit 791b872
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Android-DrawableAnimationSeries
# MultiStateAnimation

Android library to create complex multi-state animations.

Expand Down Expand Up @@ -85,15 +85,15 @@ because the Android JSON parser is used in this project,

### Java API

From your Android code, create an instance of `DrawableAnimationSeries`. You
From your Android code, create an instance of `MultiStateAnimation`. You
will typically use the constructor function `fromJSONResource` . you can use
`queueTransition` and `transitionNow` from the GUI thread to start playing the
animations.

| Method | Description |
|--------|-------------|
| `int currentSectionDuration()` | Calculates the total duration of the current animation section, including the transition if applicable. |
| `static DrawableAnimationSeries fromJsonResource(Context context, View view, int resid)` | Creates a new DrawableAnimationSeries object from a json string. This constructor function takes a `Context`, a `View` that will have it's background set to the playing animations, and the resource ID of the JSON file defining the animation. |
| `static MultiStateAnimation fromJsonResource(Context context, View view, int resid)` | Creates a new MultiStateAnimation object from a json string. This constructor function takes a `Context`, a `View` that will have it's background set to the playing animations, and the resource ID of the JSON file defining the animation. |
| `void queueTransition(String id)` | Queues a section to start as soon as the current animation finishes. If no animation is currently playing, the queued transition will start immediately. |
| `void transitionNow(String id)` | Starts a specific section without waiting for the current animation to finish. |
| `AnimationDrawable getCurrentDrawable()` | Returns the currently playing animation, or null if no animation has ever played. |
Expand Down

0 comments on commit 791b872

Please sign in to comment.