pekingme
2114a11378
[Docs] Updated dev doc for tonal surface colors in affected components.
...
PiperOrigin-RevId: 556901517
2023-08-14 20:55:38 +00:00
hunterstich
4c89301330
[BackLayer] Delete BackLayer component
...
PiperOrigin-RevId: 550566624
2023-07-24 17:12:43 +00:00
pfthomas
db9a6412ec
[MaterialSwitch] Amendments to thumb icon size support
...
Resolves https://github.com/material-components/material-components-android/pull/3364
PiperOrigin-RevId: 549627031
2023-07-20 22:17:48 +00:00
rightnao
547156e497
[Carousel] Add carousel alignment attribute
...
PiperOrigin-RevId: 548719675
2023-07-18 16:50:16 +00:00
Material Design Team
1d3b8e136d
[M3][Color] Updated contrast documentation
...
PiperOrigin-RevId: 547823926
2023-07-17 15:56:24 +00:00
rightnao
7c40359d2b
[Carousel][Docs] Adding docs for fullscreen carousel strategy
...
PiperOrigin-RevId: 546350583
2023-07-11 19:37:01 +00:00
afohrman
d440e3c4f8
[Side Sheet][Docs] Add left sheet/sheet edge documentation.
...
PiperOrigin-RevId: 546308773
2023-07-07 17:58:23 +00:00
u00d6zg\u00fcr G\u00f6rg\u00fcl\u00fc
f91f17bb4f
[SideSheet][Docs] Fix mixed language snippet
...
Resolves https://github.com/material-components/material-components-android/pull/3466
GIT_ORIGIN_REV_ID=dc138fe98bb821da0cdbeba2c33cf95e6e775a61
PiperOrigin-RevId: 546088458
2023-07-07 17:56:25 +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
rightnao
27abfdba4f
[Badge] Deprecate bottom badge gravities and update docs and usages in catalog
...
PiperOrigin-RevId: 543527285
2023-06-27 18:55:22 +00:00
rightnao
ec509cc734
[Carousel][Docs] Update docs to include hero variant
...
PiperOrigin-RevId: 543488844
2023-06-27 13:53:04 +00:00
rightnao
2362f4b64b
[Badge][NavigationRail] Add new attribute for vertical offset when font is large
...
PiperOrigin-RevId: 542366571
2023-06-26 23:37:57 +00:00
rightnao
8b016a0e8b
[NavigationRail][Badge] Added bigger padding in between items on the navigation rail when font scale is large so there is more room for the badges when they are forced inside the view bounds
...
Also fixed bug with navigation rail items moving when there is a badge vs when there is no longer a badge, and adds 4dp padding between icon container/active indicator and label text as per specs https://m3.material.io/components/navigation-rail/overview
PiperOrigin-RevId: 540349399
2023-06-14 12:47:57 -07:00
hunterstich
a67a885668
[Predictive Back] Update components to use BackEventCompat
...
Clients should prefer listening to back events using androidx.activity.OnBackPressedCallback which has been updated to forward BackEventCompat objects in androidx.activity:activity:1.8.0-alpha05. This updates component predictive back APIs to take in BackEventCompat objects instead of android.window.BackEvent objects to simplify usage - getting rid of the need for version checks and object conversions.
PiperOrigin-RevId: 540290323
2023-06-14 12:44:53 -07:00
pfthomas
022e217770
[Navigation] Add itemTextAppearanceActiveBoldEnabled attr
...
Resolves https://github.com/material-components/material-components-android/issues/3191
Resolves https://github.com/material-components/material-components-android/issues/3293
PiperOrigin-RevId: 539977391
2023-06-14 15:14:24 +00:00
dsn5ft
82a91c8455
[Predictive Back] Minor dev doc edits
...
PiperOrigin-RevId: 534176825
2023-05-24 14:28:35 +00:00
dsn5ft
47c307d889
[Predictive Back] Update dev docs
...
PiperOrigin-RevId: 533443345
2023-05-22 18:35:56 +00:00
dsn5ft
e4d0fd3d6c
[Docs] Fix SideSheetDialog class definition and source links
...
PiperOrigin-RevId: 533220100
2023-05-22 18:35:22 +00:00
afohrman
0bcb57074d
[Search][Docs] Revise version guidance for Search usage.
...
Now that 1.8.0 has reached stable, version guidance no longer needs to point to an alpha version.
PiperOrigin-RevId: 532898434
2023-05-22 18:33:47 +00:00
afohrman
d005ad7a0c
[Side Sheet][Docs] Add links to class definitions in Side Sheet documentation and revise version guidance.
...
Now that 1.8.0 has reached stable, class definitions are available and version guidance doesn't need to point to an alpha release.
PiperOrigin-RevId: 532897620
2023-05-22 18:33:11 +00:00
rightnao
af1fa70979
[BottomSheet][Docs] Update bottom sheet documentation
...
PiperOrigin-RevId: 532478454
2023-05-16 20:00:21 +00:00
Material Design Team
d7f9a067e3
[M3][Color] Update Color doc
...
PiperOrigin-RevId: 532459188
2023-05-16 19:59:41 +00:00
raajkumars
e157608050
[M3][Search][Docs] Adds Search class definition link to Search documentation.
...
PiperOrigin-RevId: 530386856
2023-05-09 13:14:14 -04:00
pekingme
1562d0b64f
[ExposedDropdownMenu] Added attribute to set dropdown menu's container.
...
PiperOrigin-RevId: 528578402
2023-05-02 16:10:48 -04:00
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