46 Commits

Author SHA1 Message Date
Material Design Team
2b29a266ad [Docs] Updated docs with Expressive code/info.
PiperOrigin-RevId: 798982415
2025-08-27 13:38:19 -07:00
Material Design Team
7706e19c50 [Docs] Updated Chips doc to make it more user friendly
PiperOrigin-RevId: 776080149
2025-06-27 16:22:47 +00:00
Material Design Team
5a37cf9633 [Docs] Updated **Chips** doc to make it more user friendly
PiperOrigin-RevId: 764588148
2025-05-29 15:57:32 +00:00
manabu-nakamura
f5b871a8ef [Docs] update Chip.md
Resolves https://github.com/material-components/material-components-android/pull/4478

GIT_ORIGIN_REV_ID=c4165c3482e4752d223596bb2a6bc0eb0173671c
PiperOrigin-RevId: 712659303
2025-01-07 14:31:01 +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
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
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
afohrman
2555c9bfc4 [Chips] [Docs] Fixed image description text.
The number of chips was mismatched with the image. Removed the number from the image description (but kept it in the a11y content description) because it's not relevant to the general reader -- but it is helpful for a11y purposes. Getting rid of the numbers makes for future easier maintenance.

PiperOrigin-RevId: 432218802
2022-03-04 13:02:38 -05:00
serniebanders
0374350413 [M3][Docs] Update chip hero, composite and anatomy assets
PiperOrigin-RevId: 398782652
2021-09-28 14:53:02 +00:00
Material Design Team
1f35bf74cd [M3][Docs] Update Chip developer documentation
PiperOrigin-RevId: 397120802
2021-09-20 11:45:29 -07:00
leticiars
6c84213397 [Documentation] Fixing formatting of notes.
PiperOrigin-RevId: 396590903
2021-09-16 11:38:43 -07:00
serniebanders
204eceb978 [M3][Docs] Update chip documentation to describe M3 themes/styles.
Additionally exposes M3 chip styles in res-public

PiperOrigin-RevId: 395730438
2021-09-15 12:26:01 -07:00
leticiars
a0095572fa [Internal] Internal cleanup.
PiperOrigin-RevId: 369918411
2021-04-22 15:01:21 -04:00
nickrout
42df390412 [Documentation] A11y refresh.
PiperOrigin-RevId: 354311833
2021-01-28 09:07:05 -08:00
leticiars
77918676d1 [Documentation] Fixed tables having empty first column title.
PiperOrigin-RevId: 353095221
2021-01-21 17:21:37 -05: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
connieshi
c15db83873 [Chip] Fix typo.
PiperOrigin-RevId: 344823557
2020-11-30 13:44:06 -05:00
connieshi
6951bd5179 [Chip] Support elevation overlay.
Resolves https://github.com/material-components/material-components-android/issues/1749

PiperOrigin-RevId: 336930100
2020-10-15 13:21:17 -07: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
44ff02f7ba [Documentation] Updated Chips documentation.
PiperOrigin-RevId: 320443747
2020-07-10 11:45:14 -07:00
leticiars
e4da6b4ec9 [Documentation] Cleanup.
PiperOrigin-RevId: 318856706
2020-06-29 16:19:40 -04:00
connieshi
fd8678371a Add missing line breaks.
PiperOrigin-RevId: 270038867
2019-09-20 10:58:23 -04:00
connieshi
bfeef49653 Fix broken Attributes tables in Android chip page on material.io
Resolves: https://github.com/material-components/material-components/issues/68
PiperOrigin-RevId: 269844828
2019-09-18 14:25:16 -04:00
connieshi
6c70169e8d Update chipgroup spacing attribute documentation to clarify that it doesn't apply to hidden chips.
PiperOrigin-RevId: 226498090
2018-12-21 16:29:20 -05:00
connieshi
60d1dfac70 Update chipDrawable to be wrapped by InsetDrawable (if needed) to ensure it meets Android's recommended minimum touch target size.
Update demo catalog app.

PiperOrigin-RevId: 220370443
2018-11-16 10:57:34 -05:00
gauthams
99d77a0c3c Update component documentation to include theme mappings for color and type
PiperOrigin-RevId: 216445191
2018-10-11 18:17:23 -04:00
dniz
4c41bcbb3c Remove leading |'s from Chip documentation attribute table
PiperOrigin-RevId: 210588729
2018-08-28 16:44:57 -04:00
Material Design Team
b0a9ff6658 Add an override to setLayoutDirection from the parent text view of chips.
Setting layoutDirection on TextViews to the direction of the View locale is necessary to ensure that text on chips is rendered correctly in RTL mode. Previously, it would default to LTR mode and then not get set with proper paddings until you interact with a chip to invalidate the layout.

Before (RTL): https://surbhimadan.users.x20web.corp.google.com/www/textrtl_before.mp4
After (RTL): https://surbhimadan.users.x20web.corp.google.com/www/textrtl_after.mp4
Verified no changes to LTR.

PiperOrigin-RevId: 210560864
2018-08-28 16:43:46 -04:00
connieshi
fab7b4b97d Update Chip attribute table formatting so it displays properly on Github.
https://github.com/material-components/material-components-android/issues/146

PiperOrigin-RevId: 208100663
2018-08-17 17:03:26 -04:00
connieshi
d0feb4d321 Add clarification about a chip touch target delegate's boundary requirements.
PiperOrigin-RevId: 206975591
2018-08-02 18:06:57 -07:00
connieshi
7d6767cf85 Move Checkable attribute above Check Icon in attribute table.
PiperOrigin-RevId: 206578877
2018-08-02 18:04:11 -07:00
connieshi
00bbb1e16f Fix typo in chip attribute: android:checkable instead of app:checkable
Rearrange a few of the attributes to move android attributes to the top.

PiperOrigin-RevId: 206357215
2018-08-02 18:02:55 -07:00
connieshi
516d00d8a6 Add attributes (chipTouchTargetDelegate, chipMinTouchTargetSize) to support chip meeting minimum accessible touch target size.
PiperOrigin-RevId: 206197663
2018-08-02 17:58:34 -07:00
connieshi
6020fcdbf1 Fix API issue with icon visibility.
Deprecate *iconEnabled methods to is*iconVisible and setIs*iconVisible methods.

PiperOrigin-RevId: 202658616
2018-07-02 09:50:53 -04:00
connieshi
412ee4c1f1 Add support for tinting the chip icon.
PiperOrigin-RevId: 199526967
2018-06-20 17:24:18 -04:00
dniz
18e1aa0d71 Add note about using <chip tag for ChipDrawable
PiperOrigin-RevId: 199172023
2018-06-20 17:22:41 -04:00
connieshi
a71326896a Use the android:text attribute instead of chipText attribute to specify text label for ChipDrawable.
This is one in a series of planned changes that aim to delegate rendering a Chip's text to TextView instead of ChipDrawable.

PiperOrigin-RevId: 197780081
2018-05-30 17:19:38 -04:00
cketcham
73d1c6f148 Update links in material component docs
PiperOrigin-RevId: 195898245
2018-05-08 20:10:49 -04:00
Material Design Team
87b5e046c4 Replace links to Material design guidance with short links as appropriate.
PiperOrigin-RevId: 194927609
2018-05-01 17:10:56 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00
Material Design Team
856ed8d313 Changed "wrap" to "wrap_content" in Chip XML definitions for layout_width and layout_height.
PiperOrigin-RevId: 185690618
2018-03-12 12:40:36 -04:00
markwei
1bc7c013d1 Add updated Material theme guidance on top of component documentation.
The goal is that this snippet can be copied and pasted across all of our component documentation.

PiperOrigin-RevId: 183315682
2018-02-27 13:05:53 -05:00
markwei
8f269672e1 Add chip documentation.
PiperOrigin-RevId: 183139001
2018-01-25 18:25:09 -05:00