pekingme
46fa6465fe
[Cleanup] Internal change
...
PiperOrigin-RevId: 608668937
2024-02-29 08:27:55 -08:00
Material Design Team
5471b8d37a
Internal change
...
PiperOrigin-RevId: 607976596
2024-02-26 13:44:54 -08:00
pekingme
dd8f6bebdd
[ProgressIndicator] Updated inactive track color from primary container to secondary container.
...
PiperOrigin-RevId: 607113929
2024-02-14 23:56:24 +00: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
Material Design Team
546ca1087f
[Drawable] Resolve class verification issues for DrawableUtils
...
Post appreduce, a lot of DrawableUtils methods are horizontally merged into other classes. Since these methods are not available on older Android platform versions, ART instructs the runtime to re-verify when the app loads. When one of these methods is present in a very large horizontally merged class, it can take a lot of time to verify. On Pixel 2XL for Android Q, I have seen 12-15ms being very common.
Related docs and see linked bug:
https://chromium.googlesource.com/chromium/src/+/HEAD/build/android/docs/class_verification_failures.md#understanding-the-reason-for-the-failure
PiperOrigin-RevId: 605643227
2024-02-12 18:03:15 +00:00
pekingme
356067295f
[ProgressIndicator] Cleanup
...
PiperOrigin-RevId: 605381014
2024-02-12 16:23:16 +00:00
Material Design Team
8a71e7741a
[AppBarLayout] Use an accessibility delegate to add and perform actions
...
This replaces the use of `ViewCompat#add/removeAccessibilityAction`
Both are valid strategies, but each call to `remove` or `add` triggers an accessibility event. Since this check is done in layout (originally to fix a11y scroll state) it's sending a high number of events that create noise for accessibility services.
To avoid this, we move this code to the delegate `onInitialize` and `performAction` methods. Instead of the view dynamically adding and removing actions to itself, the node is initialized with actions only when an a11y service sends a request with a new node (likely due to some UI change).
The flow here would look like:
1. UI is scrolled/page is loaded
2. TalkBack gets a scroll event/content change event
3. TalkBack requests new snapshot of the screen
4. ABL populates the node with the actions
For a simple scroll, this change reduces the events from ~40 to ~10.
We also add the Truth library for clearer assertions.
PiperOrigin-RevId: 605333170
2024-02-12 16:14:44 +00:00
pekingme
89212044a9
[Tokens] Updated to v0.213.
...
PiperOrigin-RevId: 603749766
2024-02-06 14:30:16 +00:00
manabu-nakamura
4430bbbbd2
[Slider] Fix ripple not transparent on API 33
...
Resolves https://github.com/material-components/material-components-android/pull/4007
GIT_ORIGIN_REV_ID=e5d24cf5a8a4faada09538f566f51e3a26316052
PiperOrigin-RevId: 603425262
2024-02-02 16:39:10 +00:00
pekingme
02bd528c1c
[ProgressIndicator] Internal cleanup.
...
PiperOrigin-RevId: 601910223
2024-01-30 19:28:24 +00:00
entdark
1371091ffa
[MaterialDividerItemDecoration] Fixed divider instant appearing or disappearing on insertion or removal
...
Resolves https://github.com/material-components/material-components-android/pull/4014
Resolves https://github.com/material-components/material-components-android/issues/3651
GIT_ORIGIN_REV_ID=d044f541f9928db1d03dea1866e8b8e4c699bf87
PiperOrigin-RevId: 601257154
2024-01-25 19:56:11 +00:00
pekingme
9c216128c6
[ProgressIndicator] Updated the setter of track thickness to not update track corner radius.
...
PiperOrigin-RevId: 601245058
2024-01-25 19:54:54 +00:00
pekingme
08d7ded67b
[Tokens] Upgraded to v0.207.
...
PiperOrigin-RevId: 600947836
2024-01-24 21:05:53 +00:00
leticiars
ef60931e2b
[Tab][a11y] Fix title being announced twice when there's a badge in TalkBack mode.
...
Resolves https://github.com/material-components/material-components-android/issues/3985
PiperOrigin-RevId: 600854666
2024-01-23 20:07:04 +00:00
pekingme
ae11eb4dc2
[ProgressIndicator] Added the limit to not have stop indicator size bigger than track thickness.
...
PiperOrigin-RevId: 599948126
2024-01-22 18:25:41 +00:00
pekingme
97f18a37a4
[ProgressIndicator] Fixed the rounded ends overlapping bug with semi-transparent track/indicator color in Circular default style.
...
Workaround is applied by using the Cap.ROUND when corner radius is half of the track thickness (the case for M3 default Circular style). It doesn't fix the overlap for smaller corner radius with semi-transparent color.
PiperOrigin-RevId: 599942498
2024-01-22 18:24:58 +00:00
pekingme
7479be226f
[ProgressIndicator] Internal updates.
...
PiperOrigin-RevId: 598978387
2024-01-17 19:47:56 +00:00
pekingme
b597c1e218
[ProgressIndicator] Removed the call to draw a transparent full track.
...
PiperOrigin-RevId: 597992011
2024-01-16 19:23:30 +00:00
pekingme
5e185db21d
[ProgressIndicator] Flip the canvas for different circular directions.
...
PiperOrigin-RevId: 597652047
2024-01-16 19:15:09 +00:00
pekingme
f5a54d2264
[ProgressIndicator] Split stop indicator drawing from indicator drawing.
...
PiperOrigin-RevId: 597537696
2024-01-16 19:14:11 +00:00
pekingme
6fd920a2c1
[ProgressIndicator] Added ActiveIndicator to improve readability.
...
- Removed unnecessary access modifiers.
- Removed unnecessary doc comments.
PiperOrigin-RevId: 597062929
2024-01-10 18:58:32 +00:00
dsn5ft
c8b9b1c0bb
[Predictive Back][Navigation Drawer] Animate corners during predictive back when no drawerLayoutCornerSize is set
...
PiperOrigin-RevId: 596056382
2024-01-05 23:58:37 +00:00
pfthomas
c218b3c983
[NTC][Slider] Update styles
...
Update the Material Slider to be compliant with the latest accessibility requirements.
PiperOrigin-RevId: 595740932
2024-01-04 19:25:12 +00:00
pekingme
98284e74ad
[ProgressIndicator] Fixed ESCAPE animation in linear and added ESCAPE animation in circular.
...
PiperOrigin-RevId: 595720674
2024-01-04 19:24:29 +00:00
pfthomas
b84e6549d4
[NTC][ProgressIndicator] Internal changes
...
PiperOrigin-RevId: 595708057
2024-01-04 19:23:44 +00:00
pekingme
52b48450fc
[ProgressIndicator] Updated to use the same drawing delegate object between determinate drawable and indeterminate drawable to prevent inconsistent drawings when specs update.
...
PiperOrigin-RevId: 595468907
2024-01-03 21:01:37 +00:00
rightnao
1ef42e2f23
[Carousel] Shift keylines in contained strategies when there exists padding, and clipToPadding=false
...
PiperOrigin-RevId: 595162372
2024-01-03 20:58:38 +00:00
pekingme
93b30109b0
[ProgressIndicator] Added missing graphics updates when spec changes.
...
PiperOrigin-RevId: 592008309
2023-12-19 12:17:32 -08:00
pfthomas
15b533fffb
[NTC][ProgressIndicator] Update styles
...
Update the Material ProgressIndicator to be compliant with the latest accessibility requirements.
PiperOrigin-RevId: 591927327
2023-12-19 12:15:54 -08:00
afohrman
a0a1c6e044
[Carousel][Docs] Fixed Javadoc formatting error in FullScreenCarouselStrategy class documentation.
...
PiperOrigin-RevId: 591041703
2023-12-15 19:56:19 +00:00
dsn5ft
ce386e4c20
[Search] Make searchbar_scrolling_view_behavior string public
...
Resolves https://github.com/material-components/material-components-android/issues/3358
PiperOrigin-RevId: 590950516
2023-12-14 18:20:31 +00:00
dsn5ft
3b278d7097
[Side Sheet] Move modal side sheet default width/height into style so they can be customized
...
Resolves https://github.com/material-components/material-components-android/issues/3492
PiperOrigin-RevId: 590915421
2023-12-14 15:45:53 +00:00
hunterstich
e88a1b98d2
[Carousel] Added support for cross axis wrap_content RecyclerViews
...
PiperOrigin-RevId: 590637698
2023-12-14 15:45:23 +00:00
pfthomas
631065488c
[NTC][Slider] Internal changes
...
PiperOrigin-RevId: 590310941
2023-12-13 16:29:33 +00:00
pfthomas
5843e61031
[NTC][ProgressIndicator] Internal changes
...
PiperOrigin-RevId: 588545406
2023-12-07 18:59:05 +00:00
pfthomas
fb6a97ce2c
[NTC][ProgressIndicator] Internal changes
...
PiperOrigin-RevId: 588435272
2023-12-06 08:48:11 -08:00
rightnao
16eca7eef3
[NavRail] Increase padding in between items as per design specs
...
PiperOrigin-RevId: 588126139
2023-12-05 22:53:59 +00:00
pfthomas
95e1c441c2
[NTC][Slider] Internal changes
...
PiperOrigin-RevId: 587826282
2023-12-05 16:14:39 +00:00
Material Design Team
14a7b40363
[AutoComplete] Enabled switch access in MaterialAutoCompleteTextView.
...
PiperOrigin-RevId: 587556416
2023-12-04 15:51:51 +00:00
afohrman
8ccec334bd
[Predictive Transitions] Added predictive transition support for fragments and views to the Material motion library, and enabled it in shared axis fragment transition demo.
...
This allows all MaterialVisibility transitions to be predictive, although each individual transition must be opted-in in order to be predictive/seekable.
Resolves https://github.com/material-components/material-components-android/issues/3619
PiperOrigin-RevId: 587108521
2023-12-04 15:44:19 +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
rightnao
2439dc0e81
[NavigationRail] Add label padding for when the label is long enough to reach the sides of the nav rail
...
PiperOrigin-RevId: 584069016
2023-11-20 15:14:16 -05:00
manabu-nakamura
144b5159ce
[Slider] Fix slider label not moving while scrolling
...
Resolves https://github.com/material-components/material-components-android/pull/3848
Resolves https://github.com/material-components/material-components-android/issues/3847
GIT_ORIGIN_REV_ID=630698384082464cfb40d75156ec09abfc829bed
PiperOrigin-RevId: 584067588
2023-11-20 15:13:26 -05:00
dsn5ft
198e08cf5e
[i18n] Update string translations for checkbox, search, and sidesheet
...
PiperOrigin-RevId: 582397137
2023-11-14 20:04:14 +00:00
rightnao
83a7ed8dd5
Automated g4 rollback of changelist 581318308
...
PiperOrigin-RevId: 582358366
2023-11-14 19:57:17 +00:00
pekingme
22e054ba68
[ProgressIndicator] Added static drawable for Circular type when system animator is disabled.
...
PiperOrigin-RevId: 582068647
2023-11-14 19:49:43 +00:00
pekingme
9b9449cde1
[TextInputLayout] Limited the min height reset in text change listener only when line count changes.
...
PiperOrigin-RevId: 582049113
2023-11-13 20:58:05 +00:00
pfthomas
bc5987379e
[NTC][ProgressIndicator] Internal changes
...
PiperOrigin-RevId: 581401427
2023-11-13 15:12:51 +00:00
pfthomas
5e5eee01bd
[Slider] Fix slider label not moving while scrolling
...
Resolves https://github.com/material-components/material-components-android/issues/3660
Resolves https://github.com/material-components/material-components-android/issues/2869
Resolves https://github.com/material-components/material-components-android/pull/3665
PiperOrigin-RevId: 581318308
2023-11-13 15:09:45 +00:00
pfthomas
42466721ca
[NTC][Slider] Internal changes
...
PiperOrigin-RevId: 581303119
2023-11-13 14:56:39 +00:00