hunterstich
c031144d26
[NavigationView] Updated NavigationView to use ViewOutlineProvider to handle corner clipping when possible and remove drawerLayoutCornerClippingEnabled attribute.
...
PiperOrigin-RevId: 527633449
2023-04-27 16:38:17 -04:00
pubiqq
2e85f06247
[MaterialSwitch] Add support for setting thumb icon size
...
Resolves https://github.com/material-components/material-components-android/pull/2960
GIT_ORIGIN_REV_ID=8af4d0f06e98f4ffced715b2dcde78d7186e1afb
PiperOrigin-RevId: 526984037
2023-04-25 17:08:20 -04:00
pubiqq
44a97f4a83
[Badge] Fix table formatting and remove unnecessary badge invalidation
...
Resolves https://github.com/material-components/material-components-android/pull/3356
GIT_ORIGIN_REV_ID=9f6839aa225d567a26a7db948734c28a1bbae44a
PiperOrigin-RevId: 526735605
2023-04-25 17:06:16 -04:00
pubiqq
4d50aa41e7
[Badge] Badge cleanup/fixes:
...
- Allow single digit badges to be non-circular if the label text is too big horizontally.
- Change maxCharacterCount to truncate both strings and numbers, and add new attribute maxNumber to truncate only numbers
- Updated maxCharacterCount so that if it doesn't exist, it does not truncate instead of defaulting to a value
Resolves https://github.com/material-components/material-components-android/pull/3321
GIT_ORIGIN_REV_ID=a8f5866eef5ffd4d949b8c6d7f1451b563536a6e
Co-authored-by: imhappi
PiperOrigin-RevId: 523453145
2023-04-13 09:05:14 -07:00
pekingme
77cdc1e3ac
[Dialog] Made dialog background color configurable in XML styles.
...
PiperOrigin-RevId: 523436908
2023-04-12 07:38:27 -07:00
rightnao
b706506c3d
[Badge] Add attribute to automatically adjust badge so that it is within the anchor view's grandparent view's bounds
...
PiperOrigin-RevId: 523171594
2023-04-11 20:00:06 -07:00
Material Design Team
0a4e419242
Automated g4 rollback of changelist 522443049
...
PiperOrigin-RevId: 523143316
2023-04-11 19:57:22 -07:00
pekingme
cf006c5e10
[Search] Made SearchBar and SearchView's container colors configurable in XML style.
...
PiperOrigin-RevId: 522468493
2023-04-10 15:03:01 +00:00
pekingme
303fabd331
[Dialog] Made dialog background color configurable in XML styles.
...
PiperOrigin-RevId: 522443049
2023-04-10 14:57:51 +00:00
pekingme
ef57f699cb
[Search] Formatted tables in the eng doc.
...
PiperOrigin-RevId: 522035453
2023-04-10 14:46:27 +00:00
leticiars
c598ccd51e
[TextInputLayout] Added API to set cursor colors for API 28+.
...
This is useful if the cursor color should be set in runtime, where setting ?attr/colorControlActivated for the edit text is not possible. Using the added APIs will take precedence over the value of ?attr/colorControlActivated.
This API is limited to APIs 28+ due to the framework getTextCursorDrawable() method being 28+.
Resolves https://github.com/material-components/material-components-android/issues/3255
Resolves https://github.com/material-components/material-components-android/issues/3311
PiperOrigin-RevId: 521448134
2023-04-10 14:23:58 +00:00
rightnao
a0d0b53472
[Badge] Add getters/setters for vertical and horizontal badge padding
...
PiperOrigin-RevId: 520969935
2023-03-31 18:35:53 +00:00
pubiqq
c1ef52b8ea
[Badge] Allow text strings in badges
...
Resolves https://github.com/material-components/material-components-android/pull/2978
GIT_ORIGIN_REV_ID=39c9f60cff607fba1e9ca57ae8bc155c5919e503
Co-authored-by: imhappi
PiperOrigin-RevId: 520368686
2023-03-29 19:18:22 +00:00
dsn5ft
8105cb7ed6
[Predictive Back] Add top-level developer documentation
...
PiperOrigin-RevId: 519208554
2023-03-24 19:25:09 +00:00
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
Arashvscode
5eafe9b036
[Docs] Update color.md to have better java/xml code snippet formatting
...
Resolves https://github.com/material-components/material-components-android/pull/3158
GIT_ORIGIN_REV_ID=c511ce410df4d54126893e1ed4275049143d050d
PiperOrigin-RevId: 508390707
2023-02-09 18:26: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
pekingme
4f3dc3ed19
[Color] Added new theme attributes for fixed accent colors.
...
PiperOrigin-RevId: 506910629
2023-02-03 21:02:49 +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
73678f5457
[Motion] Update motion documentation to include subsystem
...
PiperOrigin-RevId: 504051915
2023-01-24 17:03:14 +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
pekingme
989d574dbb
[Color] Added tonal surface color theme attributes and updated themes.
...
PiperOrigin-RevId: 492316991
2022-12-02 16:01:22 +00: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