Skip to content

Commit 2c3ffe1

Browse files
authored
Update README.md
Minor fixes to formatting issues in the readme
1 parent 9522171 commit 2c3ffe1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Add gradle dependency to your application.
1616
implementation 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:2.0.24'
1717
```
1818

19-
After configuration, instantiate the transformer animation you wish to use and set it as the [page transformer](http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setPageTransformer(boolean, android.support.v4.view.ViewPager.PageTransformer)).
19+
After configuration, instantiate the transformer animation you wish to use and set it as the [page transformer](https://developer.android.com/reference/android/support/v4/view/ViewPager.html#setpagetransformer_1).
2020

2121
```java
2222
// Reference (or instantiate) a ViewPager instance and apply a transformer
@@ -30,11 +30,11 @@ pager.setPageTransformer(true, new RotateUpTransformer());
3030
All ViewPagerTransform implementations extend [ABaseTransformer](https://github.com/ToxicBakery/ViewPagerTransforms/blob/master/library/src/main/java/com/ToxicBakery/viewpager/transforms/ABaseTransformer.java) providing useful hooks improving readability of animations and basic functionality important when switching between animations. [ABaseTransformer](https://github.com/ToxicBakery/ViewPagerTransforms/blob/master/library/src/main/java/com/ToxicBakery/viewpager/transforms/ABaseTransformer.java) provides three lifecycle hooks and two flags for default handling of hiding offscreen fragments and mimicking the default paging functionality of the ViewPager.
3131

3232
* [onPreTransform(View view, float position)](https://github.com/ToxicBakery/ViewPagerTransforms/blob/master/library/src/main/java/com/ToxicBakery/viewpager/transforms/ABaseTransformer.java#L85)
33-
* Default implementation resets the animation state of the fragment to defaults that will place it on the screen if its position permits.
33+
* Default implementation resets the animation state of the fragment to defaults that will place it on the screen if its position permits.
3434
* [onTransform(View view, float position)](https://github.com/ToxicBakery/ViewPagerTransforms/blob/master/library/src/main/java/com/ToxicBakery/viewpager/transforms/ABaseTransformer.java#L33)
35-
* Animations should perform all or most of their work inside this callback.
35+
* Animations should perform all or most of their work inside this callback.
3636
* [onPostTransform(View view, float position)](https://github.com/ToxicBakery/ViewPagerTransforms/blob/master/library/src/main/java/com/ToxicBakery/viewpager/transforms/ABaseTransformer.java#L116)
37-
* Default implementation does nothing. This provides a logical location for any additional work to be done that is not directly related to the animation.
37+
* Default implementation does nothing. This provides a logical location for any additional work to be done that is not directly related to the animation.
3838

3939
## Building
4040
This project is built with Gradle using the Gradle Wrapper script.

0 commit comments

Comments
 (0)