diff --git a/README.md b/README.md index 875bd66..a187e97 100644 --- a/README.md +++ b/README.md @@ -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 + android:layout_height="match_parent" + app:FPSAnimator_fps="24" + /> ``` In your onCreate method (or onCreateView for a fragment), bind the widget. ```JAVA @@ -51,7 +54,6 @@ Create an instance of the DisplayObject, please add it to the FPSTextureView. .end(); mFPSTextureView - .setFps(24) .addChild(bitmapDisplay) .tickStart(); ```