Stay organized with collections
Save and categorize content based on your preferences.
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
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."],[],[],null,["# UncontainedCarouselStrategy\n\nSummary: [Ctors](#pubctors) \\| [Inherited Methods](#inhmethods) \n\nUncontainedCarouselStrategy\n===========================\n\n\n`\npublic\n\nfinal\n\nclass\nUncontainedCarouselStrategy\n`\n\n\n`\n\n\n`\n\n`\n\nextends `[CarouselStrategy](/reference/com/google/android/material/carousel/CarouselStrategy)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|------------------------------------------------------------------|\n| java.lang.Object |||\n| ↳ | [com.google.android.material.carousel.CarouselStrategy](/reference/com/google/android/material/carousel/CarouselStrategy) ||\n| | ↳ | com.google.android.material.carousel.UncontainedCarouselStrategy |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA [CarouselStrategy](/reference/com/google/android/material/carousel/CarouselStrategy) that does not resize the original item width and fits as many as it\ncan into the container, cutting off the rest. Cut off items may be resized in order to show an\neffect of items getting smaller at the ends.\n\nNote that this strategy does not adjust the size of large items. Item widths are taken\nfrom the [RecyclerView](/reference/androidx/recyclerview/widget/RecyclerView) item width.\n\nThis class will automatically be reversed by [CarouselLayoutManager](/reference/com/google/android/material/carousel/CarouselLayoutManager) if being laid out\nright-to-left and does not need to make any account for layout direction itself.\n\nFor more information, see the [component\ndeveloper guidance](https://github.com/material-components/material-components-android/blob/master/docs/components/Carousel.md) and [design\nguidelines](https://material.io/components/carousel/overview).\n\nSummary\n-------\n\n| ### Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[UncontainedCarouselStrategy](/reference/com/google/android/material/carousel/UncontainedCarouselStrategy#UncontainedCarouselStrategy())`() ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[com.google.android.material.carousel.CarouselStrategy](/reference/com/google/android/material/carousel/CarouselStrategy)` ` |----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` float` | ` `[getSmallItemSizeMax](/reference/com/google/android/material/carousel/CarouselStrategy#getSmallItemSizeMax())`() ` Returns the maximum small item size value. | | ` float` | ` `[getSmallItemSizeMin](/reference/com/google/android/material/carousel/CarouselStrategy#getSmallItemSizeMin())`() ` Returns the minimum small item size value. | | ` void` | ` `[setSmallItemSizeMax](/reference/com/google/android/material/carousel/CarouselStrategy#setSmallItemSizeMax(float))`(float maxSmallItemSize) ` Sets the maximum size for the small items. | | ` void` | ` `[setSmallItemSizeMin](/reference/com/google/android/material/carousel/CarouselStrategy#setSmallItemSizeMin(float))`(float minSmallItemSize) ` Sets the minimum size for the small items. | ||\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` 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() ` | ||\n\nPublic constructors\n-------------------\n\n### UncontainedCarouselStrategy\n\n```\npublic UncontainedCarouselStrategy ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]