974 Commits

Author SHA1 Message Date
rightnao
fe1c0d6ca1 [Catalog][NavigationDrawer] Update nav drawer demo to use dispatchKeyEvent instead of onKeyDown since onKeyDown can sometimes be consumed by a view with focus
PiperOrigin-RevId: 797825692
2025-08-27 13:36:35 -07:00
rightnao
c38892019c [Lists] Updating List catalog demo to spec
PiperOrigin-RevId: 797102136
2025-08-20 14:57:05 +00:00
pubiqq
78189012da [BottomNavigation] Fix navigation item layout in non-compact windows
Resolves https://github.com/material-components/material-components-android/pull/4793

  - 7277b3745c15b6058b59009380d3ce45533a76d2 by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 796946899
2025-08-20 14:53:17 +00:00
Material Design Team
414a1a6911 [SideSheet][A11y] Added tooltip to close buttons
PiperOrigin-RevId: 795025856
2025-08-20 14:51:04 +00:00
rightnao
babc9fc05e [List] Added Multi section ListItemViewHolder bind method and demo
PiperOrigin-RevId: 793813888
2025-08-20 14:49:25 +00:00
rightnao
ab86a01e9f [Lists] Added segmented list style, public attrs, and catalog demos
PiperOrigin-RevId: 793796271
2025-08-20 14:48:46 +00:00
rightnao
3c332f9a27 [Lists] Introduce ListItemLayout and ListItemViewHolder with catalog demo
PiperOrigin-RevId: 791886366
2025-08-08 17:47:51 +00:00
dsn5ft
015e0534e1 [Toolbar] Add support for navigation button with circle background
PiperOrigin-RevId: 790777821
2025-08-04 20:30:43 +00:00
rightnao
1f10e0bbb9 [NavigationDrawer] Update demos to close drawers on esc key press and add guidance in docs
PiperOrigin-RevId: 780327427
2025-07-09 15:32:51 +00:00
hunterstich
3042829320 [Catalog] Deleted BottomWindowInsetsView and replaced with setOnApplyWindowInsetsListener
PiperOrigin-RevId: 777568229
2025-07-02 11:38:12 -07:00
pfthomas
e889bc21f7 [MaterialCard] Allow selection using keyboard
PiperOrigin-RevId: 776751854
2025-06-30 13:08:11 +00:00
rightnao
ef6e07da3f [Catalog][OverflowLayout] Add tooltip to overflow button in Overflow Layout and update docked toolbar + floating toolbar demos to have tooltips
PiperOrigin-RevId: 776691798
2025-06-27 22:05:14 +00:00
rightnao
26ced72ec3 [Catalog] Fix Navigation Drawer demo to undo keyboard navigation clusters in AppBarLayout/Toolbar
PiperOrigin-RevId: 776646287
2025-06-27 22:04:14 +00:00
rightnao
ac47c7f9a9 [Catalog][DockedToolbar] Set container content to non-focusable to avoid the container getting focus
PiperOrigin-RevId: 775371297
2025-06-27 16:11:22 +00:00
dsn5ft
d75459102f [SideSheetDialog] Add support for enabling edge to edge via setFitsSystemWindows()
PiperOrigin-RevId: 767168515
2025-06-05 18:40:28 +00:00
manabu-nakamura
1c2beb1319 [Catalog] make buttons tonal instead of outlined
Resolves https://github.com/material-components/material-components-android/pull/4798

  - a2565de98ce20af3776b405249cd16259a2c30ed by manabu-nakamura <ma.nakamura@gmail.com>

PiperOrigin-RevId: 767135305
2025-06-05 18:40:03 +00:00
rightnao
e7f9f639d2 [BottomSheetDialog] Add support for androidx.core ProtectionLayout API and update dependency to 1.16
PiperOrigin-RevId: 764887825
2025-05-30 13:35:12 +00:00
kendricku
1501d08876 [Extended FAB][AppBar] Fix Extended FAB behavior demo to shrink and extend as expected.
Also:
- Library fix to the AppBarLayout calculations for extended FAB versus FAB visibility.
- Removed the M3 Expressive toolbar min heights in favor of actionBarSize.

Resolves https://github.com/material-components/material-components-android/issues/4751

PiperOrigin-RevId: 764380548
2025-05-28 22:50:57 +00:00
dsn5ft
e62e66d7bc [Slider] Add ability to specify purely visual tick count in continuous mode
PiperOrigin-RevId: 764271536
2025-05-28 22:49:09 +00:00
pekingme
981877d06d [ButtonGroup] Added overflow feature.
PiperOrigin-RevId: 762686060
2025-05-27 18:47:43 +00:00
rightnao
1dc3923bf7 [Catalog] Update NavRail description in catalog
resolves https://github.com/material-components/material-components-android/issues/4780

PiperOrigin-RevId: 760611744
2025-05-19 14:35:06 +00:00
dsn5ft
2554c4f7eb [Catalog] Update FAB Menu demo title string to make it more clear it is via Compose interop
PiperOrigin-RevId: 759661269
2025-05-19 14:31:23 +00:00
dsn5ft
b92bc51771 [Catalog] Suppress unchecked cast warning in TocAdapter
PiperOrigin-RevId: 759654088
2025-05-16 17:07:41 +00:00
dsn5ft
638156d1a1 [FAB Menu] Add Catalog demo to show using Compose FAB Menu in Views via interop
Related to https://github.com/material-components/material-components-android/issues/4777

PiperOrigin-RevId: 759648847
2025-05-16 17:06:39 +00:00
leticiars
b1552f125f [OverflowLinearLayout] Added documentation, screenshot tests and updated catalog demos for docked toolbar and floating toolbar.
PiperOrigin-RevId: 759140193
2025-05-15 17:14:16 +00:00
pfthomas
de1ff7c1a7 [ChipGroup][a11y] Follow up
- make the reflow button toggleable
- show reflow button selected state
- show close icons on Chips in the reflow demo

PiperOrigin-RevId: 759139390
2025-05-15 17:13:26 +00:00
pfthomas
1fe726f744 [ChipGroup][a11y] Follow up
PiperOrigin-RevId: 758334270
2025-05-14 19:14:47 +00:00
pubiqq
ca46cd8bf0 [Catalog] Fix BottomWindowInsetView
Resolves https://github.com/material-components/material-components-android/pull/4700
Resolves https://github.com/material-components/material-components-android/issues/4699

GIT_ORIGIN_REV_ID=c0dc162ad0e67a7f8f4477fece5e4bdd6cd4ce90
PiperOrigin-RevId: 757914922
2025-05-13 17:42:53 +00:00
rightnao
be09936c88 [Search] Add a placeholder textview to Searchbar that keeps track of searchview edit text in order to gracefully fade it out in searchview collapse animation
PiperOrigin-RevId: 752904135
2025-04-30 17:51:14 +00:00
kendricku
2aadbd1ff1 [Button][Split Button] Update split button styles to lessen maker specification requirements and support consistency.
PiperOrigin-RevId: 752444738
2025-04-30 17:47:20 +00:00
hunterstich
0c1a914549 [Typography] Added emphasized typescale to public attributes
PiperOrigin-RevId: 752370865
2025-04-30 17:36:54 +00:00
pekingme
4f55422744 [ButtonGroup] Add a demo to programmatically add/remove buttons in a button group.
PiperOrigin-RevId: 751060643
2025-04-25 16:58:30 +00:00
pekingme
8e52e942c3 [ButtonGroup] Added a click action and toggleable control in button group demo.
PiperOrigin-RevId: 750767384
2025-04-25 16:56:54 +00:00
pekingme
0bd1749898 [Dialog] Added Expressive styles.
PiperOrigin-RevId: 750744509
2025-04-25 16:55:20 +00:00
pfthomas
8e334213fc [ChipGroup][a11y] Add a show all Chip for a11y
Since scrolling is not ideal for our a11y users, a Chip showing a full list has been added to the ChipGroup Catalog demos, allowing for selection without scroll.

PiperOrigin-RevId: 750328856
2025-04-23 19:47:34 +00:00
pekingme
5161e71023 [ButtonGroup] Fixed minor issues in button group demo and toggle group demo.
PiperOrigin-RevId: 750287041
2025-04-22 20:39:04 +00:00
rightnao
4b9df08511 [FloatingToolbar][DockedToolbar] Added m3 styles for buttons and theme overlays
PiperOrigin-RevId: 749086012
2025-04-21 15:53:43 +00:00
kendricku
bb90b2010e [Catalog][SplitButton] Added an onDismissListener to the popup menu to synchronize menu display and button checked state.
PiperOrigin-RevId: 748755298
2025-04-18 00:16:01 +00:00
kendricku
2667e098db [Button] Added optical center feature.
ORIGINAL_AUTHOR=pekingme

PiperOrigin-RevId: 748415083
2025-04-18 00:14:04 +00:00
pekingme
3b3822f242 [FAB] Updated catalog demo for Expressive styles.
PiperOrigin-RevId: 748340268
2025-04-18 00:04:29 +00:00
hunterstich
005687d1b6 [BottomSheet] Fixed main catalog demo cutting off content when screen size is too small.
PiperOrigin-RevId: 742758473
2025-04-07 14:30:22 +00:00
rightnao
3a5861c5cc [SearchBar] Updated SearchBar styling
PiperOrigin-RevId: 742438495
2025-04-07 14:28:35 +00:00
pubiqq
1125655f6c [Adaptive][Catalog] Fix crash occurring with all the adaptive demos
Resolves https://github.com/material-components/material-components-android/issues/4697
Resolves https://github.com/material-components/material-components-android/pull/4698

PiperOrigin-RevId: 741684824
2025-03-31 14:48:10 +00:00
rightnao
6db122b3fc [SearchBar][Catalog] Update demos to demonstrate an example with a ConstraintLayout
PiperOrigin-RevId: 741241443
2025-03-31 14:43:05 +00:00
rightnao
f223b26e2e [FloatingToolbar][DockedToolbar] Integrate tokens and add m3 styles
PiperOrigin-RevId: 741220809
2025-03-31 14:42:03 +00:00
rightnao
e85371f73f [Searchbar] Update catalog demo to optionally show searchbar menu
PiperOrigin-RevId: 741210806
2025-03-31 14:39:43 +00:00
pfthomas
cd909c2b7d [Slider] Add centered configuration
- add attr `centered` to enable the new centered configuration, see https://m3.material.io/components/sliders/overview#227dd2d1-8be6-4646-b8e6-f05bbac583e5
- prevent drawing the ticks in the gap spaces around the thumb and under it for better visuals

PiperOrigin-RevId: 741161174
2025-03-27 15:42:51 +00:00
hunterstich
9b440028b8 Automated g4 rollback of changelist 694359774
PiperOrigin-RevId: 740806136
2025-03-27 15:42:02 +00:00
dsn5ft
0697f6fe89 [Gradle] Enable non transitive R classes (resource namespacing) and fix errors
PiperOrigin-RevId: 738871402
2025-03-20 18:34:33 +00:00
dsn5ft
e3f29ec779 [Docs] Internal change
PiperOrigin-RevId: 738555716
2025-03-20 18:33:12 +00:00