@@ -18,8 +18,7 @@ Also, read how it was done in [our blog](https://yalantis.com/blog/)
1818
1919##Usage
2020
21- 1 . Wrap your fragment or activity main view in TilesFrameLayout:
22-
21+ Wrap your fragment or activity main view in TilesFrameLayout:
2322```
2423<com.yalantis.starwars.TilesFrameLayout
2524 android:id="@+id/tiles_frame_layout"
@@ -34,19 +33,15 @@ Also, read how it was done in [our blog](https://yalantis.com/blog/)
3433```
3534
3635
37- 2 . Adjust animation with these parameters:
38-
36+ Adjust animation with these parameters:
3937``` app:sw_animationDuration ``` – duration in milliseconds
4038``` app:sw_numberOfTilesX ``` – the number of square tiles the plane is tessellated into broadwise
4139
4240```
4341mTilesFrameLayout = (TilesFrameLayout) findViewById(R.id.tiles_frame);
4442mTilesFrameLayout.setOnAnimationFinishedListener(this);
4543```
46-
47-
48-
49- 3 . In your activity or fragment’s onPause() and onResume() it’s important to call the corresponding methods:
44+ In your activity or fragment’s onPause() and onResume() it’s important to call the corresponding methods:
5045```
5146@Override
5247public void onResume() {
@@ -60,15 +55,11 @@ public void onPause() {
6055 mTilesFrameLayout.onPause();
6156}
6257```
63-
64- 4 . To start the animation simply call:
65-
58+ To start the animation simply call:
6659```
6760mTilesFrameLayout.startAnimation();
6861```
69-
70- 5 . Your callback will be called when the animation ends:
71-
62+ Your callback will be called when the animation ends:
7263```
7364@Override
7465public void onAnimationFinished() {
0 commit comments