3267 Commits

Author SHA1 Message Date
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
rightnao
c7143282a7 [Carousel] Remove library group restriction on Uncontained strategy
Resolves https://github.com/material-components/material-components-android/issues/4218

PiperOrigin-RevId: 650441233
2024-07-09 15:42:52 +00:00
rightnao
3fbb198a1c [BottomNavigationView] Update max item count to 6
PiperOrigin-RevId: 650353790
2024-07-08 20:34:03 +00:00
hunterstich
a9debc7a26 [Typography] Add variable font support to TextAppearance
PiperOrigin-RevId: 650200668
2024-07-08 20:33:22 +00:00
pekingme
0f3975d4f5 [ProgressIndicator] Fixed that the wavy path isn't cached correctly when initializing with 0 progress.
PiperOrigin-RevId: 648845270
2024-07-03 15:39:37 +00:00
kendricku
cd0a0f0235 [i18n] Update string translations.
Resolves https://github.com/material-components/material-components-android/issues/4177

PiperOrigin-RevId: 647723414
2024-07-01 18:59:32 +00:00
rightnao
20f92dfb51 [NavigationDrawer] Notify each adapter item of a potential change in case there are any item changes
Resolves https://github.com/material-components/material-components-android/issues/4168

PiperOrigin-RevId: 646154192
2024-06-25 14:53:10 +00:00
dsn5ft
5371290913 [CollapsingToolbarLayout] Refactor multiline rotation fix to address related issue caused by keyboard
PiperOrigin-RevId: 645057096
2024-06-20 18:19:59 +00:00
pekingme
a2b9322d88 [Color] Overloaded on-container colors in light theme for V+ to match the tone with system dynamic colors.
PiperOrigin-RevId: 644428365
2024-06-20 18:17:47 +00:00
dsn5ft
34adcb0fa1 [SearchView] Restore modal for accessibility and back handling state in onAttachedToWindow() and remove modal for accessibility state in onDetachedFromWindow()
Fixes an issue where nothing is focusable in TalkBack after removing SearchView, due to the modal for accessibility behavior

Resolves https://github.com/material-components/material-components-android/issues/4176

PiperOrigin-RevId: 644038017
2024-06-20 18:02:41 +00:00
pfthomas
6862b6f248 [DatePicker] Make header not focusable
PiperOrigin-RevId: 642318050
2024-06-11 19:01:27 +00:00
shawn hwang
3a31eef6f4 [NavigationView] Fixed item being checked instead of submenu item
Resolves https://github.com/material-components/material-components-android/pull/4155

Resolves https://github.com/material-components/material-components-android/issues/4187

GIT_ORIGIN_REV_ID=0f539d1e079f4bfcb044db26a4a0064538d29f05
PiperOrigin-RevId: 642317463
2024-06-11 19:00:12 +00:00
pekingme
61597e1aed [Tokens] Refreshed tokens in version "4.0.0"
PiperOrigin-RevId: 641994522
2024-06-11 18:58:26 +00:00