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
viewPager.reset(); //In order to reset the current page position
148
149
```
149
150
151
+
## How do I implement different View types?
152
+
153
+
Simple! Override one more method in your Adapter:
154
+
155
+
```java
156
+
@Override
157
+
protectedint getItemViewType(int listPosition) {
158
+
//Return your own view type, same as what you did when using RecyclerView
159
+
}
160
+
```
161
+
162
+
And then, of course, according to the `viewtype` parameter passed to you in `inflateView()` and `bindView()`, differentiate what you need to inflate or bind.
163
+
164
+
You may also refer to the demo app for a complete example.
165
+
150
166
## How do I integrate a Page Indicator?
151
167
152
168
I don't provide a built-in page indicator because:
@@ -240,6 +256,9 @@ if you cannot accept these minor defects, I suggest you use `onIndicatorPageChan
240
256
241
257
## Release notes
242
258
259
+
v1.1.0
260
+
- Added support for view type. But therefore changed parameters needed in `inflateView()` and `bindView()`.
261
+
243
262
v1.0.5
244
263
- Added asepct ratio attribute for `LoopingViewPager`
245
264
- Rewrote the way of caching Views in `LoopingPagerAdapter`, and therefore separated inflation and data binding
0 commit comments