Skip to content

Commit

Permalink
[Carousel] Restricted MultiBrowseCarouselStrategy's forceCompactArran…
Browse files Browse the repository at this point in the history
…gement constructor.

This parameter is experimental and planning to be removed in the future.

PiperOrigin-RevId: 510211297
  • Loading branch information
hunterstich committed Feb 17, 2023
1 parent abd1d1c commit 112a0bd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import androidx.recyclerview.widget.RecyclerView.LayoutParams;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.Scope;

/**
* A {@link CarouselStrategy} that knows how to size and fit large, medium and small items into a
Expand Down Expand Up @@ -66,7 +68,10 @@ public MultiBrowseCarouselStrategy() {
* @param forceCompactArrangement true if items should be fit in a way that maximizes the number
* of large, unmasked items. false if this strategy is free to determine an opinionated
* balance between item sizes.
*
* @hide
*/
@RestrictTo(Scope.LIBRARY_GROUP)
public MultiBrowseCarouselStrategy(boolean forceCompactArrangement) {
this.forceCompactArrangement = forceCompactArrangement;
}
Expand Down

0 comments on commit 112a0bd

Please sign in to comment.