MultiBrowseCarouselStrategy

public final class MultiBrowseCarouselStrategy
extends CarouselStrategy

java.lang.Object
   ↳ com.google.android.material.carousel.CarouselStrategy
     ↳ com.google.android.material.carousel.MultiBrowseCarouselStrategy


A CarouselStrategy that knows how to size and fit large, medium and small items into a container to create a layout for quick browsing of multiple items at once.

Note that this strategy will adjust the size of large items. In order to ensure large, medium, and small items both fit perfectly into the available space and are numbered/arranged in a visually pleasing and opinionated way, this strategy finds the nearest number of large items that will fit into an approved arrangement that requires the least amount of size adjustment necessary.

This class will automatically be reversed by CarouselLayoutManager if being laid out right-to-left and does not need to make any account for layout direction itself.

For more information, see the component developer guidance and design guidelines.

Summary

Public constructors

MultiBrowseCarouselStrategy()

Inherited methods

float getSmallItemSizeMax()

Returns the maximum small item size value.

float getSmallItemSizeMin()

Returns the minimum small item size value.

void setSmallItemSizeMax(float maxSmallItemSize)

Sets the maximum size for the small items.

void setSmallItemSizeMin(float minSmallItemSize)

Sets the minimum size for the small items.

Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

Public constructors

MultiBrowseCarouselStrategy

public MultiBrowseCarouselStrategy ()