580 Commits

Author SHA1 Message Date
rightnao
9451acdb05 [Badge] Add badgeFixedEdge attribute to BadgeDrawable.
By default, badges are fixed at their start edge (meaning they grow towards the end). If using a badgeGravity corresponding to the start, you will need to update to badgeFixedEdge=end to maintain the same grow towards the start behavior as before

PiperOrigin-RevId: 632236586
2024-05-13 15:48:21 +00:00
katsutomu
fdc7472d49 [Doc][Divider] Fix wrong divider color
Resolves https://github.com/material-components/material-components-android/pull/4027

GIT_ORIGIN_REV_ID=9668d40e122d53edccc7ad97d282b0e39676d5bf
PiperOrigin-RevId: 632165113
2024-05-09 18:49:47 +00:00
rightnao
0d265b7ca5 [Badge] Deprecate autoAdjustToGrandparentBounds attribute since now badges automatically move within first ancestor view that does not clip children
PiperOrigin-RevId: 630215388
2024-05-03 19:29:13 +00:00
pekingme
fb4761cc20 [ButtonToggleGroup] Added APIs to customize inside spacing and corner size between buttons.
PiperOrigin-RevId: 628469557
2024-04-29 19:03:54 +00:00
dsn5ft
a35b6b835c [Bottom Sheet] Add ability to disable dragging/expanding/collapsing the sheet when touching/scrolling the nested scrolling child view
PiperOrigin-RevId: 624204480
2024-04-12 20:03:30 +00:00
hunterstich
0a21fe77d0 [Dialog] Updated docs to have a short description of each available dialog theme overlay
Resolves https://github.com/material-components/material-components-android/issues/4121

PiperOrigin-RevId: 620282852
2024-04-02 14:55:44 +00:00
pfthomas
f3a93d09a9 [NTC][Slider] Make tick size defaults to the stop indicator size if set
PiperOrigin-RevId: 617609939
2024-03-20 22:36:53 +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
CWorld
b80efdd3cb [Doc][TopAppBar] Detailed description of code example for collapsing toolbar style
Resolves https://github.com/material-components/material-components-android/pull/3915

GIT_ORIGIN_REV_ID=88bb0c690dc9fb8386165acfffcf9d18ae897f1d
PiperOrigin-RevId: 601582020
2024-01-26 21:29:09 +00:00
leticiars
d73b3a47be [Doc] Update icon button section of Buttons doc.
Resolves https://github.com/material-components/material-components-android/issues/3996

PiperOrigin-RevId: 600464809
2024-01-22 18:28:45 +00:00
pfthomas
a641e18b6a [NTC][Slider] Update documentation
PiperOrigin-RevId: 597297222
2024-01-10 19:01:14 +00:00
pfthomas
7e9318e2c3 [NTC][ProgressIndicator] Update documentation
PiperOrigin-RevId: 597032677
2024-01-10 18:25:22 +00:00
dsn5ft
0748414a1d [Docs][Button] Add note about MaterialButton icon button performance and alternatives
PiperOrigin-RevId: 591042198
2023-12-15 20:42:06 +00:00
dsn5ft
90d6583577 [Search] Update demos and doc to use AppBarLayout app:statusBarForeground in order to avoid overlap between SearchBar and status bar content
Resolves https://github.com/material-components/material-components-android/issues/3103
Resolves https://github.com/material-components/material-components-android/issues/3358
Resolves https://github.com/material-components/material-components-android/pull/3914
Resolves https://github.com/material-components/material-components-android/pull/3875

PiperOrigin-RevId: 590953070
2023-12-14 18:21:06 +00:00
Biswapriyo Nath
90e15d819a [Docs] Fix API reference link of FloatingActionButton
Resolves https://github.com/material-components/material-components-android/pull/3919

GIT_ORIGIN_REV_ID=a6fa54af8db6c86c9a73405c0664ad52a022016c
PiperOrigin-RevId: 590268674
2023-12-13 16:28:26 +00:00
rightnao
9e64a1f5f6 [Carousel][Docs] Recommend snapping for multi-browse strategy
PiperOrigin-RevId: 588114790
2023-12-05 22:41:20 +00:00
dsn5ft
dfa474fdc7 [Docs] Remove broken link from Search doc
Resolves https://github.com/material-components/material-components-android/issues/3872

PiperOrigin-RevId: 585651225
2023-11-27 17:35:51 -05:00
pfthomas
bc5987379e [NTC][ProgressIndicator] Internal changes
PiperOrigin-RevId: 581401427
2023-11-13 15:12:51 +00:00
pfthomas
42466721ca [NTC][Slider] Internal changes
PiperOrigin-RevId: 581303119
2023-11-13 14:56:39 +00:00
rightnao
92a5444de9 [Carousel] Add attributes to change small item size
PiperOrigin-RevId: 580249803
2023-11-08 15:13:51 +00:00
dsn5ft
a01a68de2d [Docs] Update doc to explain how to allow Top App Bar to grow taller in response to system font setting
PiperOrigin-RevId: 569238836
2023-10-02 13:38:50 +00:00
rightnao
247240c3cd [Docs][Carousel] Fix carousel docs
PiperOrigin-RevId: 567342773
2023-09-26 17:38:01 +00:00
rightnao
9ee4aba007 [Docs][Carousel] Add uncontained variant docs
PiperOrigin-RevId: 566796652
2023-09-20 12:31:46 +00:00
pubiqq
d7e75bba59 [Docs] Minor code block improvements
Resolves https://github.com/material-components/material-components-android/pull/3570

GIT_ORIGIN_REV_ID=ca0c9b122e669dd53ba4fbe1a06b3ec3e38ce58d
PiperOrigin-RevId: 564766453
2023-09-13 10:56:59 -04:00
dsn5ft
569ddac527 [AppBarLayout] Fix dynamic status bar foreground lift on scroll color when using Tonal Surface Color
Resolves https://github.com/material-components/material-components-android/issues/3530

PiperOrigin-RevId: 564364138
2023-09-12 10:47:09 -04:00
rightnao
caec8d2849 [Docs][Carousel] Add guidance in fullscreen strategy docs about portrait orientation
PiperOrigin-RevId: 563087886
2023-09-06 10:55:32 -04:00
rightnao
0582b1a094 [Docs][Chip] Update chip documentation to use setOnCheckedStateChangeListener instead of setOnCheckedChangeListener which was deprecated in favour of the former
Resolves https://github.com/material-components/material-components-android/issues/3536

PiperOrigin-RevId: 560125494
2023-08-25 19:22:38 +00:00
rightnao
44bfe2ddb8 [Docs][Button] Update example in docs to use colorContainer and colorOnContainer instead of colorPrimary and colorOnPrimary.
Resolves https://github.com/material-components/material-components-android/issues/3526

PiperOrigin-RevId: 558196799
2023-08-18 22:34:29 +00:00
pekingme
2114a11378 [Docs] Updated dev doc for tonal surface colors in affected components.
PiperOrigin-RevId: 556901517
2023-08-14 20:55:38 +00:00
hunterstich
4c89301330 [BackLayer] Delete BackLayer component
PiperOrigin-RevId: 550566624
2023-07-24 17:12:43 +00:00
pfthomas
db9a6412ec [MaterialSwitch] Amendments to thumb icon size support
Resolves https://github.com/material-components/material-components-android/pull/3364

PiperOrigin-RevId: 549627031
2023-07-20 22:17:48 +00:00
rightnao
547156e497 [Carousel] Add carousel alignment attribute
PiperOrigin-RevId: 548719675
2023-07-18 16:50:16 +00:00
rightnao
7c40359d2b [Carousel][Docs] Adding docs for fullscreen carousel strategy
PiperOrigin-RevId: 546350583
2023-07-11 19:37:01 +00:00
afohrman
d440e3c4f8 [Side Sheet][Docs] Add left sheet/sheet edge documentation.
PiperOrigin-RevId: 546308773
2023-07-07 17:58:23 +00:00
u00d6zg\u00fcr G\u00f6rg\u00fcl\u00fc
f91f17bb4f [SideSheet][Docs] Fix mixed language snippet
Resolves https://github.com/material-components/material-components-android/pull/3466

GIT_ORIGIN_REV_ID=dc138fe98bb821da0cdbeba2c33cf95e6e775a61
PiperOrigin-RevId: 546088458
2023-07-07 17:56:25 +00:00
Bowei Ren
7289aa681d [Chip] Fix a typo in attributes table in documentation
Resolves https://github.com/material-components/material-components-android/pull/3457

GIT_ORIGIN_REV_ID=49abeeafcc26b4ac79032da56ec071fd30ee16ea
PiperOrigin-RevId: 546048151
2023-07-07 17:52:22 +00:00
rightnao
1785bbfabe [Docs] Cross-reference m.io and DAC in Github docs
PiperOrigin-RevId: 546035020
2023-07-07 17:50:11 +00:00
rightnao
27abfdba4f [Badge] Deprecate bottom badge gravities and update docs and usages in catalog
PiperOrigin-RevId: 543527285
2023-06-27 18:55:22 +00:00
rightnao
ec509cc734 [Carousel][Docs] Update docs to include hero variant
PiperOrigin-RevId: 543488844
2023-06-27 13:53:04 +00:00
rightnao
2362f4b64b [Badge][NavigationRail] Add new attribute for vertical offset when font is large
PiperOrigin-RevId: 542366571
2023-06-26 23:37:57 +00:00
rightnao
8b016a0e8b [NavigationRail][Badge] Added bigger padding in between items on the navigation rail when font scale is large so there is more room for the badges when they are forced inside the view bounds
Also fixed bug with navigation rail items moving when there is a badge vs when there is no longer a badge, and adds 4dp padding between icon container/active indicator and label text as per specs https://m3.material.io/components/navigation-rail/overview

PiperOrigin-RevId: 540349399
2023-06-14 12:47:57 -07:00
hunterstich
a67a885668 [Predictive Back] Update components to use BackEventCompat
Clients should prefer listening to back events using androidx.activity.OnBackPressedCallback which has been updated to forward BackEventCompat objects in androidx.activity:activity:1.8.0-alpha05. This updates component predictive back APIs to take in BackEventCompat objects instead of android.window.BackEvent objects to simplify usage - getting rid of the need for version checks and object conversions.

PiperOrigin-RevId: 540290323
2023-06-14 12:44:53 -07:00
pfthomas
022e217770 [Navigation] Add itemTextAppearanceActiveBoldEnabled attr
Resolves https://github.com/material-components/material-components-android/issues/3191
Resolves https://github.com/material-components/material-components-android/issues/3293

PiperOrigin-RevId: 539977391
2023-06-14 15:14:24 +00:00
dsn5ft
82a91c8455 [Predictive Back] Minor dev doc edits
PiperOrigin-RevId: 534176825
2023-05-24 14:28:35 +00:00
dsn5ft
47c307d889 [Predictive Back] Update dev docs
PiperOrigin-RevId: 533443345
2023-05-22 18:35:56 +00:00
dsn5ft
e4d0fd3d6c [Docs] Fix SideSheetDialog class definition and source links
PiperOrigin-RevId: 533220100
2023-05-22 18:35:22 +00:00
afohrman
0bcb57074d [Search][Docs] Revise version guidance for Search usage.
Now that 1.8.0 has reached stable, version guidance no longer needs to point to an alpha version.

PiperOrigin-RevId: 532898434
2023-05-22 18:33:47 +00:00
afohrman
d005ad7a0c [Side Sheet][Docs] Add links to class definitions in Side Sheet documentation and revise version guidance.
Now that 1.8.0 has reached stable, class definitions are available and version guidance doesn't need to point to an alpha release.

PiperOrigin-RevId: 532897620
2023-05-22 18:33:11 +00:00
rightnao
af1fa70979 [BottomSheet][Docs] Update bottom sheet documentation
PiperOrigin-RevId: 532478454
2023-05-16 20:00:21 +00:00