Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MasayukiSuda committed Jan 23, 2016
1 parent 67e10e8 commit df8038d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ Gradle
```groovy
dependencies {
// jCenter
compile 'com.daasuu:FPSAnimator:0.1.0'
compile 'com.daasuu:FPSAnimator:0.1.1'
}
```
Include the FPSTextureView widget in your layout.
Include the FPSTextureView widget in your layout. Set FPS by attribute.
Default FPS is 30.
```xml
<com.daasuu.library.FPSTextureView
android:id="@+id/animation_texture_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
app:FPSAnimator_fps="24"
/>
```
In your onCreate method (or onCreateView for a fragment), bind the widget.
```JAVA
Expand Down Expand Up @@ -51,7 +54,6 @@ Create an instance of the DisplayObject, please add it to the FPSTextureView.
.end();

mFPSTextureView
.setFps(24)
.addChild(bitmapDisplay)
.tickStart();
```
Expand Down

0 comments on commit df8038d

Please sign in to comment.