3436 Commits

Author SHA1 Message Date
pekingme
6cc5750cd3 [LoadingIndicator] Integrated tokens.
PiperOrigin-RevId: 668232801
2024-08-28 22:36:37 +00:00
pekingme
b65df32b0f [Tokens] Upgraded to 7.0.0
PiperOrigin-RevId: 668133320
2024-08-28 22:34:40 +00:00
pekingme
ac1a00021c [ToggleButtonGroup] Fixed incorrect A11y class name in child button added in single selection group.
PiperOrigin-RevId: 666950537
2024-08-27 15:59:57 +00:00
manabu-nakamura
967dcd5e07 [Slider] Fix slider label not moving
Resolves https://github.com/material-components/material-components-android/pull/4104

GIT_ORIGIN_REV_ID=676308a77b429610192b1df80becb656e6053811
PiperOrigin-RevId: 666511279
2024-08-23 18:07:42 +00:00
rightnao
179503512f [NavigationView] Add start/end scrim enable/disable methods
PiperOrigin-RevId: 666430643
2024-08-22 19:06:13 +00:00
pekingme
29ce8d32c3 [ButtonGroup] Added a new component ButtonGroup.
PiperOrigin-RevId: 666359073
2024-08-22 19:05:09 +00:00
pekingme
00e1e4b106 [LoadingIndicator] Fixed a bug due to the limitation of hardware accelerated rendering.
Resolves https://github.com/material-components/material-components-android/issues/4265

PiperOrigin-RevId: 665920027
2024-08-21 17:26:40 +00:00
pekingme
8731cad96a [Tokens] Upgraded to v6.1.0.
PiperOrigin-RevId: 665569215
2024-08-21 17:24:43 +00:00
Material Design Team
31f80151a9 [Snackbar] Set the accessibility pane title right before the Snackbar's appearance to resolve an event stream issue
PiperOrigin-RevId: 664967701
2024-08-20 17:36:35 +00:00
rightnao
544180ae29 [NavigationBar] Re-implement exclusive checkability to encompass whole menu, instead of just the current menu
PiperOrigin-RevId: 664877824
2024-08-19 17:53:07 +00:00
pekingme
f46c78cbae [Shape] Moved utility functions for MaterialShapes to MaterialShapes.
PiperOrigin-RevId: 663482774
2024-08-16 17:36:14 +00:00
pekingme
1d4c076a0e [LoadingIndicator] Added a new component.
PiperOrigin-RevId: 663371718
2024-08-16 17:35:28 +00:00
pekingme
21ba18a4af [Shape] Added Material endorsed shapes.
PiperOrigin-RevId: 663370897
2024-08-16 17:34:51 +00:00
Material Design Team
f3aacd7bc6 [FloatingActionButton] Add an accessibility role to FloatingActionButton and ExtendedFloatingActionButton.
PiperOrigin-RevId: 663363115
2024-08-16 17:33:56 +00:00
pekingme
da0b738679 [Tokens] Upgraded to v5.0.0.
PiperOrigin-RevId: 663358341
2024-08-16 17:33:16 +00:00
hunterstich
25083f4518 [Typography] Add emphasized typography styles
PiperOrigin-RevId: 662904526
2024-08-16 17:31:32 +00:00
rightnao
5378d52fad [NavigationBarView] Update item pool to be the size of the menu
PiperOrigin-RevId: 662183567
2024-08-13 17:39:20 +00:00
pekingme
cfef899cda [Button] Updated spring damping and stiffness for MaterialButton.
PiperOrigin-RevId: 661324416
2024-08-12 12:18:54 -07:00
kendricku
bedc6bddcf [Dialog] Reduce insets for Material Alert Dialog to 10dp for screens with minimum height less than h480dp.
Reducing the insets will allow for nested scroll view content to be visible enough to enable user interaction (scrolling).

PiperOrigin-RevId: 660521229
2024-08-12 12:16:46 -07:00
pekingme
4efcf870ff [Button] Refactored the main demo.
PiperOrigin-RevId: 660428578
2024-08-12 12:15:54 -07:00
pekingme
5bcae74813 [Button] Updated spring specs for responsive touch.
PiperOrigin-RevId: 660117556
2024-08-07 13:57:49 +00:00
rightnao
b36919f203 [NavigationRail] Add expanded state
PiperOrigin-RevId: 660106312
2024-08-07 13:54:33 +00:00
rightnao
b34fff342b [NavigationBar] Add item gravity attribute and setter/getter
PiperOrigin-RevId: 660062964
2024-08-07 13:52:06 +00:00
pekingme
9c4ba8fe8a [Shape] Added state list size change for internal use; also updated StateListCornerSize to return default value similar to CSL.
PiperOrigin-RevId: 660030130
2024-08-07 05:14:38 +00:00
pekingme
703b884066 [Color] Replaced computeIfAbsent with equivalent code for API 21 - 23.
PiperOrigin-RevId: 659631592
2024-08-07 05:12:49 +00:00
hunterstich
a7c3e0b111 [Typography] Automated g4 rollback of changelist 651033811.
*** Reason for rollback ***

fontVariationSettings fix landed in AndroidX

*** Original change description ***

[Typography] Added workaround for fontVariationSettings being set through a TextAppearance

A bug in AppCompatTextView causes fontVariationSettings set through a TextAppearance in xml to not take effect. This is a temporary woraround that cycles the settings to force them to be re-set until the fix is made in appcompat.

Resolves https://github.com/material-components/material-components-android/pull/4235

PiperOrigin-RevId: 659534202
2024-08-07 05:10:40 +00:00
pekingme
629e24f147 [Shape] Fixed a bug in loading state list corner size.
PiperOrigin-RevId: 658879368
2024-08-05 04:30:37 +00:00
pekingme
75ff33fb02 [Button] Updated expressive styles color and structure.
PiperOrigin-RevId: 658586627
2024-08-05 04:29:32 +00:00
hunterstich
d3f2ca8c1f Automated g4 rollback of changelist 651422787
PiperOrigin-RevId: 658415973
2024-08-05 04:28:19 +00:00
pekingme
ef1e1cdbfc [Button] Added corner morph.
PiperOrigin-RevId: 657325202
2024-07-30 09:14:03 -07:00
rightnao
b184df6848 [NavigationBar] Add active indicator attributes to change active indicator height, width, and horizontal margins when it is in an expanded state (ie. when start icon gravity is set to 'start')
PiperOrigin-RevId: 657266378
2024-07-30 09:12:47 -07:00
Material Design Team
3ea7709cff [BottomNavigationView] Fixing bad link in class doc comment
PiperOrigin-RevId: 656464997
2024-07-30 09:04:02 -07:00
pubiqq
204811089d [Internal] Replace deprecated androidx.core.view.* methods
Resolves https://github.com/material-components/material-components-android/pull/4180

GIT_ORIGIN_REV_ID=8e4ec29abacc33cde748b8f07f0ba5c251cef395
PiperOrigin-RevId: 656004130
2024-07-25 19:09:36 +00:00
pekingme
71ae9f5ff1 [Color] Internal fix.
PiperOrigin-RevId: 655955439
2024-07-25 19:08:54 +00:00
pekingme
e74939714b [Color] Internal color library update.
PiperOrigin-RevId: 655678296
2024-07-25 19:07:50 +00:00
Material Design Team
d7645ae5e1 [Snackbar] Add an accessibility pane title of "Alert"
PiperOrigin-RevId: 655638807
2024-07-25 19:04:11 +00:00
pekingme
e1a103e2e1 [Shape] Optimized getOutline().
PiperOrigin-RevId: 655217170
2024-07-24 15:32:02 +00:00
pekingme
8e63e7fc29 [Shape] Added state list support to shape appearance and corner size.
PiperOrigin-RevId: 653356021
2024-07-22 18:26:34 +00:00
whitipet
c13fff78ae [ProgressIndicator] Fix corner radius calculation
Resolves https://github.com/material-components/material-components-android/pull/4181

GIT_ORIGIN_REV_ID=535a8646de1acb4f08ae6d067ac3e88a24be2fac
PiperOrigin-RevId: 653242470
2024-07-22 18:25:46 +00:00
pekingme
968a7ee02a [Slider] Updates tick marks color to fix the contrast in medium / high contrast modes.
Resolves https://github.com/material-components/material-components-android/issues/4204

PiperOrigin-RevId: 652895433
2024-07-22 18:24:33 +00:00
pekingme
b9a2ce93c1 Automated g4 rollback of changelist 650718631
PiperOrigin-RevId: 651858394
2024-07-22 18:23:58 +00:00
pekingme
af95f452ed [ProgressIndicator] Added APIs to support different wavelength for determinate and indeterminate modes; and renamed confusing APIs.
PiperOrigin-RevId: 651565924
2024-07-22 18:23:15 +00:00
rightnao
6b263fa958 [Carousel] Fix carousel spamming view re-binding
PiperOrigin-RevId: 651470722
2024-07-22 18:22:04 +00:00
hunterstich
4abc9c60f1 [TextView] Fixed lint error when calling force refresh font variation settings
PiperOrigin-RevId: 651422787
2024-07-22 18:21:31 +00:00
pekingme
eb56238f46 [Shape] Moved unnecessary object from the drawable state.
PiperOrigin-RevId: 651118525
2024-07-22 18:20:56 +00:00
pfthomas
6617342f03 [DatePicker] Make picker not final and expose onPositiveButtonClick and onNegativeButtonClick
Resolves https://github.com/material-components/material-components-android/issues/1688

PiperOrigin-RevId: 651106986
2024-07-10 19:26:51 +00:00
hunterstich
fa5224ef05 [Typography] Added workaround for fontVariationSettings being set through a TextAppearance
A bug in AppCompatTextView causes fontVariationSettings set through a TextAppearance in xml to not take effect. This is a temporary woraround that cycles the settings to force them to be re-set until the fix is made in appcompat.

PiperOrigin-RevId: 651033811
2024-07-10 19:22:57 +00:00
pekingme
f641cd02a5 [ProgressIndicator] Updated the smoothness of the cubic bezier curve to make the wave more smooth.
PiperOrigin-RevId: 650879477
2024-07-10 19:21:49 +00:00
pekingme
2799892b5e [Shape] Added state list support to shape appearance and corner size.
PiperOrigin-RevId: 650718631
2024-07-10 19:21:00 +00:00
pfthomas
40cfb07e1f [TimePicker] Prevent setting wrong time while the clock is animating
PiperOrigin-RevId: 650636506
2024-07-09 15:43:36 +00:00