rightnao
916e9085f9
[Carousel] Update multi-browse strategy to always have at least 1 medium item
...
PiperOrigin-RevId: 719372980
2025-01-27 21:01:56 +00:00
rightnao
d0f5d721a1
[Carousel] Recalculate keyline state if it doesn't match the current container size
...
PiperOrigin-RevId: 718578581
2025-01-24 18:27:58 +00:00
rightnao
74b5900aaa
[Carousel] Make carousel internal classes public to enable custom strategies
...
PiperOrigin-RevId: 679710469
2024-10-01 18:41:44 +00:00
pekingme
46fa6465fe
[Cleanup] Internal change
...
PiperOrigin-RevId: 608668937
2024-02-29 08:27:55 -08:00
Material Design Team
5471b8d37a
Internal change
...
PiperOrigin-RevId: 607976596
2024-02-26 13:44:54 -08:00
rightnao
92a5444de9
[Carousel] Add attributes to change small item size
...
PiperOrigin-RevId: 580249803
2023-11-08 15:13:51 +00:00
rightnao
cbb380df61
[Carousel] Add logic for multibrowse strategy to change strategy when number of items is less than the number of keylines
...
Resolves https://github.com/material-components/material-components-android/issues/3598
PiperOrigin-RevId: 572078262
2023-10-10 10:46:28 -07:00
rightnao
ed4647d5df
[Carousel] Cleaning up multi-browse strategy and removing compact arrangement
...
PiperOrigin-RevId: 572006115
2023-10-10 10:43:37 -07:00
hunterstich
c418063205
[Carousel] Fixed strategies crashing when there is not enough available space for a large and a small item
...
If the carousel container is not large enough to fit a small item and large item that is at least as large as the minimum small item size, mutli-browse and hero strategies will create an arrangment with a single, large item.
PiperOrigin-RevId: 568610428
2023-09-26 20:54:33 -04:00
rightnao
547156e497
[Carousel] Add carousel alignment attribute
...
PiperOrigin-RevId: 548719675
2023-07-18 16:50:16 +00:00
rightnao
e3b255b3a0
[Docs] Crosslink github docs in javadocs
...
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
rightnao
6b48d3bb80
[Carousel] Add vertical scrolling capability
...
PiperOrigin-RevId: 542943240
2023-06-27 13:37:53 +00:00
rightnao
1c27404fc5
[Carousel] Refactor to reuse logic between different Carousel strategy classes
...
- Moved Arrangement class outside of MultiBrowseStrategy
- Added helper class CarouselStrategyHelper and moved common logic in MultiBrowseStrategy to CarouselStrategyHelper
PiperOrigin-RevId: 528924778
2023-05-03 16:06:57 -04:00
hunterstich
0184b5baa9
[Carousel] Updated MultiBrowseCarouselStrategy to find best arrangments using a cost function
...
This changes the way arrangements are found by:
* Finding all possible arrangements of items
* Sort the arrangement candidates using a cost function that optimizes for total space fit, large item size retention, and adherence to other input params
* Fit and use the top arrangement to work within the carousel's available space
PiperOrigin-RevId: 522568015
2023-04-10 15:03:52 +00:00
hunterstich
112a0bd20e
[Carousel] Restricted MultiBrowseCarouselStrategy's forceCompactArrangement constructor.
...
This parameter is experimental and planning to be removed in the future.
PiperOrigin-RevId: 510211297
2023-02-17 04:51:36 -08:00
hunterstich
795979c283
[Carousel] Fixed MultiBrowseCarouselStrategy method visibility.
...
PiperOrigin-RevId: 508728594
2023-02-10 22:51:19 +00:00
hunterstich
fc0f53a0cd
[Carousel] Renamed CarouselConfiguration to CarouselStrategy.
...
PiperOrigin-RevId: 508619540
2023-02-10 14:24:39 +00:00