File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,17 @@ FullScreenStrategy())`.
164
164
With the fullscreen strategy, it is recommended to use a vertical orientation
165
165
carousel by either setting the orientation on the CarouselLayoutManager with the
166
166
setter, or through its constructor: `new CarouselLayoutManager(new
167
- FullScreenCarouselStrategy(), RecyclerView.VERTICAL)`
167
+ FullScreenCarouselStrategy(), RecyclerView.VERTICAL)`. Stick to portrait
168
+ orientation only, or adapt your layout to a different strategy when using
169
+ landscape in order to maintain the aspect ratios of your images.
170
+
171
+ It is also recommended to use the ` CarouselSnapHelper `
172
+ to snap to the nearest item like so:
173
+
174
+ ```
175
+ SnapHelper snapHelper = new CarouselSnapHelper();
176
+ snapHelper.attachToRecyclerView(carouselRecyclerView);
177
+ ```
168
178
169
179
It is also recommended to use the ` CarouselSnapHelper `
170
180
to snap to the nearest item like so:
You can’t perform that action at this time.
0 commit comments