Skip to content

Commit a0a1c6e

Browse files
afohrmanraajkumars
authored andcommitted
[Carousel][Docs] Fixed Javadoc formatting error in FullScreenCarouselStrategy class documentation.
PiperOrigin-RevId: 591041703
1 parent 90d6583 commit a0a1c6e

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

lib/java/com/google/android/material/carousel/FullScreenCarouselStrategy.java

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
* create a layout to browse one item at a time.
2929
*
3030
* <p>Note that the item masks will be based on the items encompassing the full width or full height
31-
* of the carousel. The carousel item dimensions should reflect this with `match_parent` dimensions.
31+
* of the carousel. The carousel item dimensions should reflect this with {@code match_parent}
32+
* dimensions.
3233
*
3334
* <p>This class will automatically be reversed by {@link CarouselLayoutManager} if being laid out
3435
* right-to-left and does not need to make any account for layout direction itself.
@@ -54,17 +55,18 @@ KeylineState onFirstChildMeasuredWithMargins(@NonNull Carousel carousel, @NonNul
5455
childMargins = childLayoutParams.topMargin + childLayoutParams.bottomMargin;
5556
}
5657
float targetChildSize = min(availableSpace + childMargins, availableSpace);
57-
Arrangement arrangement = new Arrangement(
58-
/* priority= */ 0,
59-
/* targetSmallSize= */ 0,
60-
/* minSmallSize= */ 0,
61-
/* maxSmallSize= */ 0,
62-
/* smallCount= */ 0,
63-
/* targetMediumSize= */ 0,
64-
/* mediumCount= */ 0,
65-
targetChildSize,
66-
/* largeCount= */ 1,
67-
availableSpace);
58+
Arrangement arrangement =
59+
new Arrangement(
60+
/* priority= */ 0,
61+
/* targetSmallSize= */ 0,
62+
/* minSmallSize= */ 0,
63+
/* maxSmallSize= */ 0,
64+
/* smallCount= */ 0,
65+
/* targetMediumSize= */ 0,
66+
/* mediumCount= */ 0,
67+
targetChildSize,
68+
/* largeCount= */ 1,
69+
availableSpace);
6870
return createLeftAlignedKeylineState(
6971
child.getContext(), childMargins, availableSpace, arrangement);
7072
}

0 commit comments

Comments
 (0)