49 Commits

Author SHA1 Message Date
Material Design Team
b84b33521a [Docs] Updated Button doc to make it more user friendly.
We have kept the Button file as the navigation file and have split the content into the following five pages:
1. Common button
2. Button group
3. Toggle button group
4. Icon button
5. Split button

This structure is inline with the M3 spec doc.

PiperOrigin-RevId: 777529719
2025-06-30 14:30:10 +00:00
pekingme
981877d06d [ButtonGroup] Added overflow feature.
PiperOrigin-RevId: 762686060
2025-05-27 18:47:43 +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
pekingme
f61cea5f44 [Button] Added adaptation section in dev doc.
PiperOrigin-RevId: 749080366
2025-04-21 15:44:53 +00:00
kendricku
2667e098db [Button] Added optical center feature.
ORIGINAL_AUTHOR=pekingme

PiperOrigin-RevId: 748415083
2025-04-18 00:14:04 +00:00
kendricku
ede1bdcd10 [Button][SplitButton] Updated XML for split button examples in documentation for improved accuracy.
PiperOrigin-RevId: 744726260
2025-04-17 23:51:58 +00:00
dsn5ft
a822f4f4f4 Automated g4 rollback of changelist 738491983
PiperOrigin-RevId: 738517561
2025-03-19 20:29:06 +00:00
dsn5ft
55e27a5b43 [Docs] Add TOC to Button.md
PiperOrigin-RevId: 738491983
2025-03-19 19:39:14 +00:00
manabu-nakamura
9e256b6e8b [Docs] update Button.md
Resolves https://github.com/material-components/material-components-android/pull/4445

GIT_ORIGIN_REV_ID=2a3508c02425dbc5c680ced3c1ff96151e4a004b
PiperOrigin-RevId: 706814110
2024-12-16 22:00:29 +00:00
kendricku
9f801b87bc [Button] Add documentation about SplitButton
PiperOrigin-RevId: 691831836
2024-11-05 12:13:39 -08:00
pekingme
29ce8d32c3 [ButtonGroup] Added a new component ButtonGroup.
PiperOrigin-RevId: 666359073
2024-08-22 19:05:09 +00:00
pekingme
4efcf870ff [Button] Refactored the main demo.
PiperOrigin-RevId: 660428578
2024-08-12 12:15:54 -07:00
pekingme
ef1e1cdbfc [Button] Added corner morph.
PiperOrigin-RevId: 657325202
2024-07-30 09:14:03 -07:00
pekingme
63bb499f98 [ButtonToggleGroup] Renamed insideCorner to innerCorner.
PiperOrigin-RevId: 639864920
2024-06-05 18:30:46 +00:00
Material Design Team
e4f00fda11 Automated g4 rollback of changelist 637051547
PiperOrigin-RevId: 637099379
2024-05-28 16:59:17 +00:00
pekingme
384d58fb98 [Button] Added responsive touch (corner morph).
PiperOrigin-RevId: 637051547
2024-05-25 02:19:11 +00:00
pubiqq
9a39e222d8 [Docs] Fix anchors.
Resolves https://github.com/material-components/material-components-android/pull/4015

GIT_ORIGIN_REV_ID=0b4097653df971659ed1526e450bc40030f502e3
PiperOrigin-RevId: 634017580
2024-05-16 14:03:41 +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
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
dsn5ft
0748414a1d [Docs][Button] Add note about MaterialButton icon button performance and alternatives
PiperOrigin-RevId: 591042198
2023-12-15 20:42:06 +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
rightnao
1785bbfabe [Docs] Cross-reference m.io and DAC in Github docs
PiperOrigin-RevId: 546035020
2023-07-07 17:50:11 +00:00
Blue
e8bfad5644 [MaterialButtonToggleGroup] handle setEnable childs
Resolves https://github.com/material-components/material-components-android/pull/2974
Resolves https://github.com/material-components/material-components-android/issues/2962
Resolves https://github.com/material-components/material-components-android/issues/1813

GIT_ORIGIN_REV_ID=e8f6b7cb1ca143f0ed1e2ec8d501164568dac2d9
PiperOrigin-RevId: 479403809
2022-10-11 14:00:17 +00:00
raajkumars
467a2c9f73 [Button] Updated M3 button style to add outlined icon button style. Updated catalog to showcase the same.
PiperOrigin-RevId: 448118229
2022-05-12 17:17:21 -04:00
raajkumars
14578ed68c [Button] Updated M3 button style to add filled tonal icon button style. Updated catalog to showcase the same.
PiperOrigin-RevId: 447784383
2022-05-10 15:05:30 -04:00
raajkumars
25606cf34a [Button] Updated M3 button style to add filled icon button style. Updated catalog to showcase the same.
PiperOrigin-RevId: 447523530
2022-05-09 15:00:34 -04:00
raajkumars
402bdf4bbe [Button] Added materialIconButtonStyle attribute and updated M3 doc to document icon (only) button style and attribute.
PiperOrigin-RevId: 446487810
2022-05-04 18:27:31 -04:00
Material Design Team
f14c86d191 [M3][Docs] Update Button developer documentation
PiperOrigin-RevId: 404574263
2021-10-20 19:20:03 +00:00
pfthomas
7c3ce42af6 [M3][Button] Update button dev docs with new assets
PiperOrigin-RevId: 398575807
2021-09-24 14:52:53 +00:00
Material Design Team
2717186e4e [M3][Docs] Update Buttons developer documentation
PiperOrigin-RevId: 396685046
2021-09-16 13:02:43 -07:00
leticiars
6c84213397 [Documentation] Fixing formatting of notes.
PiperOrigin-RevId: 396590903
2021-09-16 11:38:43 -07:00
pfthomas
beb04fe239 [M3][Button] Add back Full Width Buttons style to button dev docs
PiperOrigin-RevId: 396375961
2021-09-16 10:16:47 -07:00
pfthomas
0735e8b351 [M3][Button] Update button dev docs with M3 themes/styles (follow-up)
PiperOrigin-RevId: 395729560
2021-09-15 12:24:49 -07:00
pfthomas
7a36823db0 [M3][Button] Update button dev docs with M3 themes/styles
PiperOrigin-RevId: 395562604
2021-09-08 17:47:57 -04:00
raajkumars
cd9e6204d8 [Dialog] Added support for full width buttons in dialogs.
PiperOrigin-RevId: 368853063
2021-04-16 18:21:25 -04:00
leticiars
77918676d1 [Documentation] Fixed tables having empty first column title.
PiperOrigin-RevId: 353095221
2021-01-21 17:21:37 -05:00
nickrout
3496f63253 [Documentation] Buttons a11y rework.
PiperOrigin-RevId: 353055449
2021-01-21 12:58:20 -08:00
nickrout
9ce3d153b7 [Documentation] Composite revamp.
PiperOrigin-RevId: 353052233
2021-01-21 12:56:20 -08:00
nickrout
e95aa2ba05 [Documentation] Prepared component docs for material.io update.
PiperOrigin-RevId: 345682770
2020-12-04 13:16:31 -05:00
dniz
fcf4b9f6ac [Docs] Updated link to Google Maven in Getting Started guide to be more specific
PiperOrigin-RevId: 321611185
2020-07-20 12:32:51 -07:00
nickrout
5ac487a7c0 [Documentation] Fixed broken links.
PiperOrigin-RevId: 320965013
2020-07-15 09:41:16 -07:00
leticiars
8d1f3b98d5 [Documentation] Replacing svgs with pngs
PiperOrigin-RevId: 318846955
2020-06-29 16:18:55 -04:00
leticiars
e301799492 [Documentation] Fixing formatting.
PiperOrigin-RevId: 309081639
2020-04-29 16:15:43 -04:00
leticiars
0d1025a061 [Documentation} Adding table of content and hero images to new docs.
PiperOrigin-RevId: 308713205
2020-04-27 18:55:04 -04:00
leticiars
7b165f8cb1 Updating metadata Buttons.md path
PiperOrigin-RevId: 295999414
2020-02-19 13:31:30 -05:00
Nick Rout
1abfca962c [Buttons] Update doc
Resolves https://github.com/material-components/material-components-android/pull/1035

GIT_ORIGIN_REV_ID=a881d979ba6651d5efcc5e253b012018a5cb0fc4
PiperOrigin-RevId: 295969209
2020-02-19 11:07:46 -05:00
leticiars
d716ba4877 Updating documentation
PiperOrigin-RevId: 295815452
2020-02-18 18:14:19 -05:00
leticiars
8cb5dd64e0 Renaming Buttons.md to Button.md for consistency. Leaving titles as Buttons to match material.io/components
Also adding info about AutoCompleteTextView being auto-inflated as MaterialAutoCompleteTextView

PiperOrigin-RevId: 293224503
2020-02-04 17:34:17 -05:00