Skip to content

Commit

Permalink
[Carousel][Docs] Fixed Javadoc formatting error in `FullScreenCarouse…
Browse files Browse the repository at this point in the history
…lStrategy` class documentation.

PiperOrigin-RevId: 591041703
  • Loading branch information
afohrman authored and raajkumars committed Dec 15, 2023
1 parent 90d6583 commit a0a1c6e
Showing 1 changed file with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
* create a layout to browse one item at a time.
*
* <p>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.
*
* <p>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.
Expand All @@ -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);
}
Expand Down

0 comments on commit a0a1c6e

Please sign in to comment.