dsn5ft
9b6ceac72a
[i18n] Update string translations
...
PiperOrigin-RevId: 633623911
2024-05-14 17:16:18 +00:00
rightnao
9451acdb05
[Badge] Add badgeFixedEdge attribute to BadgeDrawable.
...
By default, badges are fixed at their start edge (meaning they grow towards the end). If using a badgeGravity corresponding to the start, you will need to update to badgeFixedEdge=end to maintain the same grow towards the start behavior as before
PiperOrigin-RevId: 632236586
2024-05-13 15:48:21 +00:00
rightnao
0d265b7ca5
[Badge] Deprecate autoAdjustToGrandparentBounds attribute since now badges automatically move within first ancestor view that does not clip children
...
PiperOrigin-RevId: 630215388
2024-05-03 19:29:13 +00:00
rightnao
3880efefef
[Badge] Adjust badges to fit within the bounds of the first ancestor view that clips its children to avoid getting cut off
...
PiperOrigin-RevId: 629810011
2024-05-02 15:42:17 +00:00
pfthomas
9b09b693d9
[Tokens] Update tokens to v4.0.0
...
PiperOrigin-RevId: 626141198
2024-04-19 21:18:49 +00:00
pekingme
28cc2441d0
[Tokens] Updated to version 2.3.4.
...
PiperOrigin-RevId: 610835532
2024-02-29 08:36:02 -08:00
pekingme
ee7b4bddb4
[Tokens] Added formatting to break long lines and differentiate different comments.
...
PiperOrigin-RevId: 605684816
2024-02-12 18:03:59 +00:00
pekingme
89212044a9
[Tokens] Updated to v0.213.
...
PiperOrigin-RevId: 603749766
2024-02-06 14:30:16 +00:00
pekingme
08d7ded67b
[Tokens] Upgraded to v0.207.
...
PiperOrigin-RevId: 600947836
2024-01-24 21:05:53 +00:00
Material Design Team
0c023ec336
Migrate annotation-experimental to aar_import and remove old lint target
...
Fixes failures in `material3` and `tiles` by opting in.
Fixes failures in `media3` and `protolayout` by disabling the check. This is not ideal, since it does not enable cross-language checks, but it is no worse than it was before.
Adds explicit `kotlin-stdlib` dependency where it was previously implicitly included by a poorly-configured `annotation-experimental` target.
Removes explicit `proguard.txt` reference from Car build, since it is already included in the AAR.
PUBLIC: Handle calls to @RequiresOptIn-annotated APIs
PiperOrigin-RevId: 584657528
2023-11-22 15:38:57 -05:00
pekingme
4ccaaaa31d
[Tokens] Upgraded to v0.203
...
PiperOrigin-RevId: 579928128
2023-11-08 15:12:21 +00:00
pekingme
637362d597
[Tokens] Upgraded to v0.195
...
PiperOrigin-RevId: 579905417
2023-11-06 20:27:15 +00:00
pekingme
0463c507d7
[Tokens] Upgraded to v0.185
...
PiperOrigin-RevId: 579904837
2023-11-06 20:26:18 +00:00
conradchen
a8307ef792
[Process] Update translated strings
...
PiperOrigin-RevId: 576679982
2023-10-26 20:38:39 +00:00
pekingme
bfee8a74d7
[Tokens] Upgraded to v0.175.
...
PiperOrigin-RevId: 572648883
2023-10-12 11:04:28 -07:00
rightnao
78cc54b8c3
[Badge][NavRail][BottomNavBar] Adjust badge vertical offset for certain components to fit design requirements
...
PiperOrigin-RevId: 569527192
2023-10-02 13:41:39 +00:00
rightnao
5e6ea58280
[Badge] Add note in attachBadgeDrawable method docs about menu item views being re-used when there is a structural change in the menu. Since badges are attached to the views, this may change the menu item that the badge is intended for
...
PiperOrigin-RevId: 566995151
2023-09-21 14:45:39 +00:00
pekingme
8204856dd4
[Token][Color] Upgraded to v0.170 for tonal surface colors.
...
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
rightnao
e3b255b3a0
[Docs] Crosslink github docs in javadocs
...
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
rightnao
9f2e6864d2
[NavigationBar] Set badges to be null instead of removing them from the sparse array so that removing badges before restoring badge states will not override the current state
...
PiperOrigin-RevId: 546027617
2023-07-07 17:49:34 +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
2362f4b64b
[Badge][NavigationRail] Add new attribute for vertical offset when font is large
...
PiperOrigin-RevId: 542366571
2023-06-26 23:37:57 +00: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
conradchen
532b65d008
[Badge] Fix crash caused by non-ascii strings
...
PiperOrigin-RevId: 523793683
2023-04-13 09:09:49 -07: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
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
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
rightnao
fc0de1ba24
[Badge] Center badge content more correctly
...
PiperOrigin-RevId: 519835048
2023-03-28 16:14:53 +00:00
rightnao
8499b83ba1
[BadgeDrawable] Add padding in between top and bottom edges of badge and text
...
PiperOrigin-RevId: 518370027
2023-03-21 20:50:42 +00:00
pekingme
9f1caa2c64
[Tokens] Upgraded to v0.162.
...
PiperOrigin-RevId: 517446114
2023-03-20 21:23:07 +00:00
dsn5ft
5689ce2608
[i18n] Update string translations
...
PiperOrigin-RevId: 513006191
2023-02-28 22:08:20 +00:00
rightnao
68c844c91d
[Badge] Integrating tokens
...
PiperOrigin-RevId: 512186562
2023-02-27 20:47:02 +00:00
rightnao
2ddcfe46b7
[Badge] Add shape appearance for badges
...
PiperOrigin-RevId: 512137782
2023-02-27 20:46:06 +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
pekingme
23dc14ca3a
[Tokens] Updated to v0.157.
...
PiperOrigin-RevId: 505978081
2023-01-31 20:01:13 +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
pekingme
2019bf90be
[Tokens] Upgraded to version v0.147.
...
PiperOrigin-RevId: 492551875
2022-12-02 18:34:12 -05:00
pekingme
17e3581642
[Tokens] Upgraded to v0.145
...
PiperOrigin-RevId: 492291163
2022-12-02 15:11:37 +00:00
pekingme
8eb4aeb6f8
[Tokens] Internal update.
...
PiperOrigin-RevId: 492290020
2022-12-02 15:03:36 +00:00
pekingme
03bd77fae1
[Badge] Integrated component tokens.
...
PiperOrigin-RevId: 490569205
2022-11-28 17:15:29 -05:00
nschnettler
23b7157a64
[Badging] Fix NPE in BadgeState
...
Resolves https://github.com/material-components/material-components-android/issues/2846
Resolves https://github.com/material-components/material-components-android/pull/2848
GIT_ORIGIN_REV_ID=296c3ed2e05dd3e9f8c1cbaa71e7227cec9eec0c
PiperOrigin-RevId: 463482703
2022-07-28 17:39:17 -04:00
conradchen
431e291b01
[Translation] Update string translations
...
PiperOrigin-RevId: 443191056
2022-04-20 17:19:02 -04:00
pubiqq
3ca41be8f0
[General] Fix typos
...
Resolves https://github.com/material-components/material-components-android/pull/2654
GIT_ORIGIN_REV_ID=b8f6728979875629f2c813ef90d2f671cf56b4eb
PiperOrigin-RevId: 442852630
2022-04-19 14:48:55 -04:00
pfthomas
ee49c5aa8b
[BadgeDrawable][a11y] Attach/detach badge contentDescription when using menuItem.
...
Resolves https://github.com/material-components/material-components-android/issues/2429
PiperOrigin-RevId: 439651014
2022-04-07 11:11:54 -04:00
Material Design Team
285fa9de30
Automated g4 rollback of changelist 422930284
...
PiperOrigin-RevId: 422949121
2022-01-20 10:24:30 -05:00
Material Design Team
c52b95d4d5
Automated g4 rollback of changelist 420096508
...
PiperOrigin-RevId: 422930284
2022-01-19 19:34:23 -05:00
conradchen
a74675177f
[Badge] Internal change
...
PiperOrigin-RevId: 420376250
2022-01-12 11:20:32 -05:00
conradchen
bbbeacd64e
[Badge] Refactor Badge state managing logic
...
This CL fixes a couple of badge state related issues. First, it prevents the badges created before restoring instance states from being overwritten by the old instance states. Second, it makes badges reload their default style settings everytime when its being recreated so if the environment has been changed, the default values will reflect the environment change.
This CL also fixes that several attributes were not correctly saved/restored or their default values were not correctly loaded.
Resolves https://github.com/material-components/material-components-android/issues/2032
PiperOrigin-RevId: 420096508
2022-01-06 15:51:50 -05:00
conradchen
b8f2dd53e0
[Badge] Support different locale on badges
...
Resolves https://github.com/material-components/material-components-android/issues/2465
PiperOrigin-RevId: 413738198
2021-12-06 19:32:16 +00:00