Skip to content

Commit

Permalink
[Carousel] Remove library group restriction on Uncontained strategy
Browse files Browse the repository at this point in the history
Resolves #4218

PiperOrigin-RevId: 650441233
  • Loading branch information
imhappi authored and paulfthomas committed Jul 9, 2024
1 parent 3fbb198 commit c714328
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@
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 does not resize the original item width and fits as many as it
* can into the container, cutting off the rest. Cut off items may be resized in order to show an
* effect of items getting smaller at the ends.
*
* Note that this strategy does not adjust the size of large items. Item widths are taken
* from the {@link androidx.recyclerview.widget.RecyclerView} item width.
* <p>Note that this strategy does not adjust the size of large items. Item widths are taken from
* the {@link androidx.recyclerview.widget.RecyclerView} item width.
*
* <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 @@ -47,10 +45,6 @@ public final class UncontainedCarouselStrategy extends CarouselStrategy {

private static final float MEDIUM_LARGE_ITEM_PERCENTAGE_THRESHOLD = 0.85F;

@RestrictTo(Scope.LIBRARY_GROUP)
public UncontainedCarouselStrategy() {
}

@Override
@NonNull
KeylineState onFirstChildMeasuredWithMargins(@NonNull Carousel carousel, @NonNull View child) {
Expand Down

0 comments on commit c714328

Please sign in to comment.