Skip to content

Commit 112a0bd

Browse files
committed
[Carousel] Restricted MultiBrowseCarouselStrategy's forceCompactArrangement constructor.
This parameter is experimental and planning to be removed in the future. PiperOrigin-RevId: 510211297
1 parent abd1d1c commit 112a0bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
import androidx.recyclerview.widget.RecyclerView.LayoutParams;
2727
import android.view.View;
2828
import androidx.annotation.NonNull;
29+
import androidx.annotation.RestrictTo;
30+
import androidx.annotation.RestrictTo.Scope;
2931

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

0 commit comments

Comments
 (0)