From a0a1c6e04499c324b61c0a5b7b628cd4f9fc3cbc Mon Sep 17 00:00:00 2001 From: afohrman Date: Thu, 14 Dec 2023 21:49:56 +0000 Subject: [PATCH] [Carousel][Docs] Fixed Javadoc formatting error in `FullScreenCarouselStrategy` class documentation. PiperOrigin-RevId: 591041703 --- .../carousel/FullScreenCarouselStrategy.java | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/java/com/google/android/material/carousel/FullScreenCarouselStrategy.java b/lib/java/com/google/android/material/carousel/FullScreenCarouselStrategy.java index c1c4e382d4c..5c7b431cec4 100644 --- a/lib/java/com/google/android/material/carousel/FullScreenCarouselStrategy.java +++ b/lib/java/com/google/android/material/carousel/FullScreenCarouselStrategy.java @@ -28,7 +28,8 @@ * create a layout to browse one item at a time. * *

Note that the item masks will be based on the items encompassing the full width or full height - * of the carousel. The carousel item dimensions should reflect this with `match_parent` dimensions. + * of the carousel. The carousel item dimensions should reflect this with {@code match_parent} + * dimensions. * *

This class will automatically be reversed by {@link CarouselLayoutManager} if being laid out * 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 childMargins = childLayoutParams.topMargin + childLayoutParams.bottomMargin; } float targetChildSize = min(availableSpace + childMargins, availableSpace); - Arrangement arrangement = new Arrangement( - /* priority= */ 0, - /* targetSmallSize= */ 0, - /* minSmallSize= */ 0, - /* maxSmallSize= */ 0, - /* smallCount= */ 0, - /* targetMediumSize= */ 0, - /* mediumCount= */ 0, - targetChildSize, - /* largeCount= */ 1, - availableSpace); + Arrangement arrangement = + new Arrangement( + /* priority= */ 0, + /* targetSmallSize= */ 0, + /* minSmallSize= */ 0, + /* maxSmallSize= */ 0, + /* smallCount= */ 0, + /* targetMediumSize= */ 0, + /* mediumCount= */ 0, + targetChildSize, + /* largeCount= */ 1, + availableSpace); return createLeftAlignedKeylineState( child.getContext(), childMargins, availableSpace, arrangement); }