You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renamed PresentationPagerFragment to TutorialFragment.
Made PageFragment not abstract with default implementation for PageFragment#getLayoutResId() and PageFragment#getTransformItems().
Removed capability to create new instance of TransformItem via `new`. Added fabric static method TransformItem#create(PageOptions) and TransformItem#create(int,TransformItem[]).
Created OnTutorialPageChangeListener to listen change page events.
Use TutorialFragment#addOnTutorialPageChangeListener() and TutorialFragment#addOnTutorialPageChangeListener() to add/remove listener.
Created TutorialOptions to configure TutorialFragment.
Created TutorialPageOptionsProvider and PageOptions to provide and configure PageFragment instances.
Created TutorialPageProvider to provide PageFragment instances.
Removed CirclePageIndicator.
Created TutorialPageIndicator view.
Created IndicatorOptions to configure TutorialPageIndicator view.
Created Renderer interface that responds for drawing single indicator item. There are 2 default implementation: Renderer.Factory#newCircleRenderer() and Renderer.Factory#newSquareRenderer().
Updated version.
Updated README.
Or you can provide **TutorialPageOptionsProvider** instance in main TutorialFragment fragment that responds for creating **PageFragment** instances with provided **PageOptions** configuration.
All the stuff then use while creating **TutorialOptions** instance using **TutorialOptions**.**Builder** inside **TutorialFragment**#*provideTutorialOptions* method implementation. For example with using **TutorialPageProvider**:
// return true to consume click event, false otherwise
137
-
returntrue;
138
-
}
175
+
Also you can configure **TutorialPageIndicator** view via **IndicatorOptions**. For example (inside **TutorialFragment**#*provideTutorialOptions* method implementation):
| v.0.9.5 | Added getters for views. Possible fix for manifest merging issues |
147
-
| v.0.9.4 | Renamed all attributes; all resources marked as private |
148
-
| v.0.9.3 | Fixed issue with wrong page showed at startup if pages count not equals 3 |
149
-
| v.0.9.2 | Added onSkipButtonClicked method and SimplePagerFragment |
150
-
| v.0.9.1 | Added infinite scroll behavior |
151
-
| v.0.9 | First public release |
198
+
Version | Changes
199
+
--- | ---
200
+
v.1.0.0 | Library fully refactored. See full [1.0.0 Changelog](#100_Changelog_233)
201
+
v.0.9.5 | Added getters for views. Possible fix for manifest merging issues
202
+
v.0.9.4 | Renamed all attributes; all resources marked as private |
203
+
v.0.9.3 | Fixed issue with wrong page showed at startup if pages count not equals 3
204
+
v.0.9.2 | Added onSkipButtonClicked method and SimplePagerFragment
205
+
v.0.9.1 | Added infinite scroll behavior
206
+
v.0.9 | First public release
207
+
208
+
## 1.0.0 Changelog
209
+
* Renamed **PresentationPagerFragment** to **TutorialFragment**.
210
+
* Maked **PageFragment** not abstract with default implementaion for **PageFragment*#*getLayoutResId()* and **PageFragment**#*getTransformItems()*.
211
+
* Removed capability to create new instance of **TransformItem** via `new`. Added fabric static method **TransformItem**#*create(PageOptions)* and **TransformItem**#*create(int,TransformItem[])*.
212
+
* Created **OnTutorialPageChangeListener** to listen change page events.
213
+
* Use **TutorialFragment**#*addOnTutorialPageChangeListener()* and **TutorialFragment**#*addOnTutorialPageChangeListener()* to add/remove listener.
214
+
* Created **TutorialOptions** to configure **TutorialFragment**.
215
+
* Created **TutorialPageOptionsProvider** and **PageOptions** to provide and configure **PageFragment** instances.
216
+
* Created **TutorialPageProvider** to provide **PageFragment** instances.
217
+
* Removed **CirclePageIndicator**.
218
+
* Created **TutorialPageIndicator** view.
219
+
* Created **IndicatorOptions** to configure **TutorialPageIndicator** view.
220
+
* Created **Renderer** interface that responds for drawing single indicator item. There are 2 default implementaion: **Renderer**.**Factory**#*newCircleRenderer()* and **Renderer**.**Factory**#*newSquareRenderer()*.
221
+
222
+
223
+
## Migrations from v.0.9.5 to v.1.0.0
224
+
1. You must change creation TransformItem from `new TransformItem(R.id.ivFirstImage, true, 20)` to `TransformItem.create(R.id.ivFirstImage, Direction.LEFT_TO_RIGHT, 0.2f)`, where 2-nd parameter now is **Direction** of view translation and 3-rd parameter is *shiftCoefficient*.
225
+
2. Your fragment with tutorial must extend **TutorialFragment** instead of **PresentationPagerFragment**.
226
+
3. In your **TutorialFragment** successor fragment must implement #*provideTutorialOptions()* method that returns TutorialOptions instance.
227
+
4. In **TutorialOptions**.**Builder**#setTutorialPageProvider(**TutorialPageProvider**)* you must specify **TutorialPageProvider** instance. For example:
0 commit comments