UncontainedCarouselStrategy
public
final
class
UncontainedCarouselStrategy
extends CarouselStrategy
A 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 RecyclerView
item width.
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
Inherited methods |
From class
com.google.android.material.carousel.CarouselStrategy
|
From class
java.lang.Object
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
UncontainedCarouselStrategy
public UncontainedCarouselStrategy ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]