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
Copy file name to clipboardExpand all lines: README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ dependencies {
36
36
```
37
37
38
38
There are two common variants of using library: via [TutorialPageProvider] and via [TutorialPageOptionsProvider].
39
-
#####Via TutorialPageProvider
39
+
### Via TutorialPageProvider
40
40
You have to create page fragments where each fragment must extend from [PageFragment], override [PageFragment#getLayoutResId()] and [PageFragment#getTransformItems()]. Also you have to create your layout xml file with images.
41
41
42
42
```java
@@ -98,7 +98,7 @@ public class CustomTutorialFragment extends TutorialFragment {
98
98
}
99
99
```
100
100
101
-
#####Via TutorialPageProvider
101
+
### Via TutorialPageProvider
102
102
Or you can create [TutorialPageOptionsProvider] and set it up to [TutorialOptions.Builder#setTutorialPageProvider(TutorialPageOptionsProvider)]. It will automatically provide [PageFragment] instance with specified [PageOptions] configuration.
103
103
104
104
```java
@@ -175,7 +175,7 @@ public class CustomTutorialFragment extends TutorialFragment {
175
175
```
176
176
177
177
## Customization
178
-
#####Set up skip button click listener
178
+
### Set up skip button click listener
179
179
You have to implement *OnClickListener* interface and provide it to [TutorialOptions.Builder#setOnSkipClickListener(OnClickListener)]. Example:
@@ -213,13 +213,13 @@ public class CustomTutorialFragment extends TutorialFragment {
213
213
}
214
214
}
215
215
```
216
-
#####Infinite scroll
216
+
### Infinite scroll
217
217
To loop tutorial pages you have set [TutorialOptions.Builder#setUseAutoRemoveTutorialFragment(boolean)] to **Boolean**#*TRUE*.
218
218
219
-
#####Auto remove TutorialFragment - scroll from last tutorial page to your content
219
+
### Auto remove TutorialFragment - scroll from last tutorial page to your content
220
220
If you want to provide smooth transition from last tutorial page to content - just set up [TutorialOptions.Builder#setUseAutoRemoveTutorialFragment(boolean)] to **Boolean**#*TRUE*.
221
221
222
-
#####Indicator view customization
222
+
### Indicator view customization
223
223
There is [IndicatorOptions] class for configuration indicator view. Here's example:
@@ -245,7 +245,7 @@ Also in sample module there are two implementaions:
245
245
*[DrawableRenderer]
246
246
*[RhombusRenderer]
247
247
248
-
#####Add OnTutorialPageChangeListener
248
+
### Add OnTutorialPageChangeListener
249
249
You can listen change page listener - just implement [TutorialFragment.OnTutorialPageChangeListener] and add listener via [TutorialFragment#addOnTutorialPageChangeListener(OnTutorialPageChangeListener)]. To remove listener use [TutorialFragment#removeOnTutorialPageChangeListener(OnTutorialPageChangeListener)].
0 commit comments