515 Commits

Author SHA1 Message Date
hunterstich
359580b6c1 [Carousel] Changed Maskable.add/removeOnMaskChangedListener to Maskable.setOnMaskChangedListener.
This change is to prevent the case of items in a RecyclerView.Adapter being recycled and re-bound and having more and more listeners added to a MaskableFrameLayout.

PiperOrigin-RevId: 515048125
2023-03-08 21:30:15 +00:00
rightnao
e75654d4c2 [BadgeDrawable][Docs] Fix doc formatting for github
PiperOrigin-RevId: 513573599
2023-03-03 16:26:12 +00:00
hunterstich
e3b493f5eb [NavigationView] Removed canvas clipping by default and added an option to enabled/disable manually
Clipping was used to clip navigation view and its children to a shape appearace. This is primarily useful when using a headerLayout that contains full bleed content that would obscure the top end corner shape. Material3 does not use as much imagery/color in the NavigationView header and disabling clipping by default is a nice performace improvement.

PiperOrigin-RevId: 513301639
2023-03-01 23:08:28 +00:00
rightnao
2ddcfe46b7 [Badge] Add shape appearance for badges
PiperOrigin-RevId: 512137782
2023-02-27 20:46:06 +00:00
rightnao
c1eba1b268 [Badge][Docs] Update badge images
PiperOrigin-RevId: 511808980
2023-02-23 10:31:34 -08:00
hunterstich
b3f32d42a0 [TopAppBar] Added app:layout_scrollEffect to public attributes.
PiperOrigin-RevId: 509484463
2023-02-15 10:21:30 -08:00
hunterstich
fc0f53a0cd [Carousel] Renamed CarouselConfiguration to CarouselStrategy.
PiperOrigin-RevId: 508619540
2023-02-10 14:24:39 +00:00
Wahyu Koco
122ab7a6be [SearchBar] FIX anatomy search bar documentation
Resolves https://github.com/material-components/material-components-android/pull/3156
Resolves https://github.com/material-components/material-components-android/pull/3161

GIT_ORIGIN_REV_ID=d3fe2668cdef3b75de2c576e7f6517e41d55ccb8
PiperOrigin-RevId: 508143526
2023-02-08 19:57:33 +00:00
rightnao
3c1ac05fac [Badge] Update M3 style to match specs. Alignment tweaks, text appearance change
resolves https://github.com/material-components/material-components-android/issues/3175

PiperOrigin-RevId: 506426087
2023-02-02 16:50:22 +00:00
rightnao
d0d0f54018 [Badge] Add new 'offsetAlignmentMode' attribute that determines where the offset starts for the badge.
PiperOrigin-RevId: 505222416
2023-01-30 16:43:42 +00:00
hunterstich
be9f16ceb6 [Carousel] Add developer documentation
PiperOrigin-RevId: 502846546
2023-01-18 15:27:44 +00:00
afohrman
d5a3701030 [Docs][Switch] Updated inaccurate anatomy diagram labels and a couple of other minor tweaks.
Resolves https://github.com/material-components/material-components-android/issues/3165.

PiperOrigin-RevId: 501844880
2023-01-13 16:33:59 +00:00
raajkumars
5c23affc74 [M3][SearchBar] Updated developer documentation.
PiperOrigin-RevId: 499267936
2023-01-05 12:46:02 -05:00
afohrman
dcf24875d9 [Docs][Search][Side Sheet] Add note about the minimum library version required to use the Search and Side Sheets components.
Resolves https://github.com/material-components/material-components-android/issues/3159.

Also removed a broken link to Search's class definition (https://developer.android.com/reference/com/google/android/material/search/SearchView) that will only work once 1.8.0 stable is released.

The notes should be removed and the class definition should be added once 1.8.0 stable is released.

PiperOrigin-RevId: 498424372
2022-12-29 15:06:16 -05:00
pfthomas
e1688f3d19 [MaterialDatePicker][a11y] Improve date input validation feedback
Resolves https://github.com/material-components/material-components-android/issues/2223

Add `TextInputLayout.setErrorAccessibilityLiveRegion` and `TextInputLayout.getErrorAccessibilityLiveRegion` to allow controlling the way the TextInputLayout error is announced.

Example:

```
textInputLayout.setErrorAccessibilityLiveRegion(ViewCompat.ACCESSIBILITY_LIVE_REGION_NONE);
```

PiperOrigin-RevId: 497323465
2022-12-29 00:19:00 -05:00
pfthomas
11c1df9c8f [MaterialDatePicker] Unhide setFirstDayOfWeek
Resolves https://github.com/material-components/material-components-android/issues/1949

PiperOrigin-RevId: 496865765
2022-12-21 21:14:25 +00:00
afohrman
07354f95ab [Adaptive][Side Sheet][Docs] Added coplanar side sheet documentation.
PiperOrigin-RevId: 494731326
2022-12-12 16:38:59 -05:00
afohrman
2e9b39f3dc [Adaptive][Side Sheet] Added modal side sheet documentation.
PiperOrigin-RevId: 494729494
2022-12-12 16:38:00 -05:00
pfthomas
eebd04e11b [NavSuite] Update documentation
PiperOrigin-RevId: 493353336
2022-12-06 15:24:59 -05:00
leticiars
6c85b59a58 [Documentation] Added warning about known issue in slider where label doesn't scroll along with the screen.
PiperOrigin-RevId: 492574073
2022-12-02 18:40:27 -05:00
minwang1
7bbbe3925e [Slider] Added API for setting the radius of active/inactive tick in xml and Java.
Resolves https://github.com/material-components/material-components-android/pull/2994
Resolves https://github.com/material-components/material-components-android/issues/1920

GIT_ORIGIN_REV_ID=7bf15fb545496cb8e63f8b6ecf653229b1f203f8
PiperOrigin-RevId: 492557754
2022-12-02 18:36:26 -05:00
RoneyThomas
ee5240620e [SearchBar][SearchView] Fixed package path in developer documentation.
Resolves https://github.com/material-components/material-components-android/issues/3108
Resolves https://github.com/material-components/material-components-android/pull/3109

GIT_ORIGIN_REV_ID=0ffbcd8845e38f396da6355f43e81815b1eb3a5b
PiperOrigin-RevId: 492313989
2022-12-02 16:00:26 +00:00
conradchen
3dbffd3f22 [Doc] Internal change
PiperOrigin-RevId: 491990430
2022-12-01 16:04:38 -05:00
raajkumars
978ffdf0aa [M3][SearchBar][SearchView] Renamed search style attributes to add "material" prefix.
PiperOrigin-RevId: 490260853
2022-11-22 12:36:54 -05:00
raajkumars
d1bacf55db [M3][SearchBar] Added new SearchBar and SearchView components
PiperOrigin-RevId: 490002827
2022-11-21 13:02:32 -05:00
pubiqq
cb1905dbff [TabLayout] Fix default tabTextAppearance
Resolves https://github.com/material-components/material-components-android/pull/3085

GIT_ORIGIN_REV_ID=5c801bb6b6e9df227094106dedc5defa24b99077
PiperOrigin-RevId: 489517504
2022-11-18 16:57:53 -05:00
raajkumars
4d4a2e25ab [M3][SearchBar][SearchView] Added developer documentation.
PiperOrigin-RevId: 487595100
2022-11-18 16:52:31 -05:00
rightnao
d5b41c185f [ExtendedFloatingActionButton] Add a extendToWrapContent attribute that can disable the current eFAB behavior of extending to wrap content (thus allowing extend to return to its original width before shrinking)
Resolves https://github.com/material-components/material-components-android/issues/3006

PiperOrigin-RevId: 487376415
2022-11-10 18:23:28 +00:00
rightnao
e3937483c3 [BottomNavigationView] Remove elevation shadows
PiperOrigin-RevId: 483721316
2022-10-28 07:42:47 -07:00
afohrman
4364c4f5fb [Adaptive][Side Sheet] Add standard side sheet documentation.
PiperOrigin-RevId: 482800309
2022-10-21 16:29:12 +00:00
conradchen
00c9ce51dd [Doc][Switch] Add android dev doc and source link to the Material dev doc
PiperOrigin-RevId: 482644772
2022-10-21 16:28:39 +00:00
rightnao
6cf56a5ebe [BottomSheet] Update elevation to match specs
PiperOrigin-RevId: 482255576
2022-10-21 16:25:14 +00:00
conradchen
bdb8253247 [Doc] Update spec link to the new Material3 site
PiperOrigin-RevId: 481979753
2022-10-19 09:16:11 -07:00
Nissan Ahmed
ad0d73a247 [Doc] Fix broken column due to extra newline
Resolves https://github.com/material-components/material-components-android/pull/3030

GIT_ORIGIN_REV_ID=b5c1320b8dd372841266e56ecb7c59dc0afca257
PiperOrigin-RevId: 481759510
2022-10-17 22:50:28 +00:00
conradchen
f99e39df8c Automated g4 rollback of changelist 479423629
PiperOrigin-RevId: 479636961
2022-10-11 14:01:31 +00:00
rightnao
617e5822f9 [BottomSheet] Update elevation to match specs
PiperOrigin-RevId: 479423629
2022-10-11 14:00:59 +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
rightnao
c587dd1259 [AppBarLayout] Adding new attribute liftOnScrollColor that disables elevation overlay and allows users to change the app bar color
PiperOrigin-RevId: 477794812
2022-10-03 16:57:13 +00:00
rightnao
00220d0ad6 [TabLayout] Add selectedTabTextAppearance attribute
Resolves https://github.com/material-components/material-components-android/issues/2159

PiperOrigin-RevId: 477238120
2022-09-27 23:56:23 +00:00
rightnao
1322e61c4c [BottomAppBar] Add attribute to remove shadow on container
resolves https://github.com/material-components/material-components-android/issues/2953

PiperOrigin-RevId: 476451267
2022-09-26 22:13:07 +00:00
pubiqq
bde2092116 [Docs] Update docs to remove links to Kotlin docs and remove Kotlin from dependency
Resolves https://github.com/material-components/material-components-android/pull/2947

GIT_ORIGIN_REV_ID=294d1f1963e4bfddd998673f78d67242a5ee3d1c
PiperOrigin-RevId: 471823400
2022-09-02 13:02:17 -07:00
pfthomas
aff6a94539 [MaterialDatePicker] Update doc to include DayViewDecorator.
PiperOrigin-RevId: 471583125
2022-09-01 17:21:20 -07:00
leticiars
ae788ac481 [Documentation] Update text field doc to include information about android:textColorHighlight
Resolves https://github.com/material-components/material-components-android/issues/2808

PiperOrigin-RevId: 471240135
2022-08-31 15:55:04 -07:00
leticiars
7d64767af1 [Checkbox][Documentation] Updated checkbox documentation.
PiperOrigin-RevId: 466097416
2022-08-09 18:36:33 +00:00
leticiars
8f149b10dc [Checkbox] Added indeterminate state support to the checkbox.
A MaterialCheckBox can now be checked, unchecked, or indeterminate.

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

PiperOrigin-RevId: 465598224
2022-08-08 10:58:39 -04:00
rightnao
276a0a3c51 [BottomAppBar] Updating dev docs
PiperOrigin-RevId: 465149290
2022-08-04 14:48:24 -04:00
pekingme
f3952f83df [Slider] Ensured the minimum touch size of handle is 48dp
PiperOrigin-RevId: 465125601
2022-08-04 14:47:42 -04:00
hunterstich
32f41ff41a [TopAppBar] Added documentation for status bar foreground on scrolling app bars.
PiperOrigin-RevId: 464788174
2022-08-04 14:29:56 -04:00
conradchen
a6df2545ef [Switch] Update dev doc with the new switch design
PiperOrigin-RevId: 463922188
2022-07-28 17:46:30 -04:00
pfthomas
cbc0711ca3 [MaterialTimePicker][24H Redesign] 2-ring support for 24H clock
Resolves https://github.com/material-components/material-components-android/issues/1450

This replaces the current implementation of the 24H clock mode from 1 ring to 2 rings.
The 24H picker now also defaults to text input mode.

PiperOrigin-RevId: 463652374
2022-07-28 17:42:05 -04:00