2738 Commits

Author SHA1 Message Date
pfthomas
e9fc0a033a [MaterialTimePicker][a11y] Make Clock text scale with system font size
PiperOrigin-RevId: 464069311
2022-08-04 13:51:37 -04:00
raajkumars
edcb7fb38c [Animation] Added AnimatableView Interface.
PiperOrigin-RevId: 463667818
2022-07-28 17:44:05 -04:00
dsn5ft
686bf5cb5e [TooltipDrawable] Add @hide to Javadoc since the class is restricted
PiperOrigin-RevId: 463655787
2022-07-28 17:43:11 -04:00
pfthomas
cbc0711ca3 [MaterialTimePicker][24H Redesign] 2-ring support for 24H clock
Resolves https://github.com/material-components/material-components-android/issues/1450

This replaces the current implementation of the 24H clock mode from 1 ring to 2 rings.
The 24H picker now also defaults to text input mode.

PiperOrigin-RevId: 463652374
2022-07-28 17:42:05 -04:00
leticiars
9ca8a80468 [Checkbox] Fixed issue where AppCompatCheckBox would not display its drawable when a Material theme was being used.
Instead of nulling android:button and buttonCompat in the Material style, we now check if the legacy drawable is being used, and override that if so.

PiperOrigin-RevId: 463643386
2022-07-28 17:41:12 -04:00
dsn5ft
bca0f2ea8e [MaterialDatePicker] Add support for decorating day views and a demo for circle indicators
Resolves https://github.com/material-components/material-components-android/issues/2854

PiperOrigin-RevId: 463608089
2022-07-28 17:39:54 -04: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
rightnao
d845db8979 [BottomSheetBehavior] Add attribute for significant velocity threshold
resolves https://github.com/material-components/material-components-android/issues/2034

PiperOrigin-RevId: 463458591
2022-07-28 17:38:16 -04:00
rightnao
e284e57d64 [TextInputLayout] Add scale type setters/getters for start and end image buttons in the TextInputLayout
Resolves https://github.com/material-components/material-components-android/issues/2080

PiperOrigin-RevId: 463381963
2022-07-28 17:36:31 -04:00
conradchen
a65a262933 Automated g4 rollback of changelist 457501629
PiperOrigin-RevId: 463094334
2022-07-25 16:17:20 +00:00
raajkumars
8a4af07979 [Icon Buttons] Added support for toggleable Icon buttons.
PiperOrigin-RevId: 462638190
2022-07-25 11:20:13 -04:00
raajkumars
dfbbf609c5 [Internal] Added ExpandCollapseAnimationHelper and MultiViewUpdateListener.
PiperOrigin-RevId: 462451046
2022-07-22 15:23:37 +00:00
conradchen
4122837619 [Slider] Fix NPE when trying to remove labels when ViewOverlay doesn't exist yet
Resolves https://github.com/material-components/material-components-android/issues/2845

PiperOrigin-RevId: 462418275
2022-07-22 15:22:59 +00:00
leticiars
8fae47a39e [Checkbox] Updated checkbox to M3 look.
The checkbox is now composed of an `app:buttonCompat` button drawable (the squared
icon) and an `app:buttonIcon` icon drawable (the checkmark icon) layered on top
of it. The animation has also been updated.

PiperOrigin-RevId: 462244130
2022-07-22 15:22:30 +00:00
raajkumars
07938f572f [Internal] Added utility methods to ViewUtils.
PiperOrigin-RevId: 462208023
2022-07-20 21:49:42 +00:00
Material Design Team
7fc2aed7dc [AppBarLayout] Fix bug in HeaderScrollingViewBehavior that causes child translation Y not to be reset to default if the behavior is changed from an overlapping to non-overlapping behavior in layoutParams.setBehavior
PiperOrigin-RevId: 462201550
2022-07-20 21:49:08 +00:00
afohrman
d43416e3e4 [Side Sheets] Added new sidesheet package, new SideSheetBehavior, and basic standard side sheet demo to Adaptive Sheets catalog demo.
Does not include functionality or the modal side sheet. At the moment, the catalog demo includes a placeholder standard side sheet with a show/hide button that toggles the visibility between GONE and VISIBLE.

PiperOrigin-RevId: 462192554
2022-07-20 21:48:31 +00:00
raajkumars
2a58122252 [Internal] Move RectEvaluator to Material Android Library
PiperOrigin-RevId: 461973938
2022-07-20 21:47:03 +00:00
raajkumars
3a37288453 [Internal] Moved ReversableAnimatedValueInterpolator to Material Android Library.
PiperOrigin-RevId: 461963086
2022-07-20 21:45:58 +00:00
raajkumars
ec8e70babb [Internal] Moved TouchObserverFrameLayout to Material Android Library.
PiperOrigin-RevId: 461948017
2022-07-20 21:45:16 +00:00
rightnao
633b3cecfa [TextInputLayout] Adding set/get methods to control minimum width and height for start/end icons
Resolves https://github.com/material-components/material-components-android/issues/2080

PiperOrigin-RevId: 461939723
2022-07-20 21:44:40 +00:00
raajkumars
f3d422fb99 [Internal] Moved FadeThroughDrawable to Material Android Library.
PiperOrigin-RevId: 461932441
2022-07-19 18:43:37 +00:00
raajkumars
c8878f1790 [Internal] Move ClippableRoundedCornerLayout to Material Android library.
PiperOrigin-RevId: 461898783
2022-07-19 18:43:09 +00:00
conradchen
ef8e9aa895 [BottomSheet] Handle half-expanded state when drag handle clicked
PiperOrigin-RevId: 461674745
2022-07-19 18:42:21 +00:00
leticiars
6eeb95f971 [Divider] Fixed lastItemDecorated not being applied to horizontal orientation. Also updated the demo to include both orientations.
Resolves https://github.com/material-components/material-components-android/issues/2802

PiperOrigin-RevId: 461247080
2022-07-19 18:40:54 +00:00
pfthomas
777ba0d55a [Chip] Fix API requirement
PiperOrigin-RevId: 461030541
2022-07-14 19:59:14 +00:00
Manuel Mato
34ac0ecf72 Automated g4 rollback of changelist 458265064
PiperOrigin-RevId: 461012017
2022-07-14 18:41:16 +00:00
conradchen
e968929c08 [Switch] Update to AppCompat 1.5.0-beta01 and remove workarounds (also update compileSdkVersion/targetSdkVersion to 32)
PiperOrigin-RevId: 460970462
2022-07-14 18:18:56 +00:00
pubiqq
b18f45ee99 [TextInputLayout] Delete unused paint
Resolves https://github.com/material-components/material-components-android/pull/2812

    GIT_ORIGIN_REV_ID=b1c718c45ab55d0c70539afe6233d10e883c413a
    Co-authored-by: paulfthomas

PiperOrigin-RevId: 460962180
2022-07-14 18:17:02 +00:00
conradchen
d1895cdd35 [Tab] Mutate selected indicator drawable when it's being set
Wrapping and mutating a given drawable which is supposed to be tinted is a standard practice across the Material library. This CL applies the same logic to Tab's selected indicator drawables and also refactoring the relevant logic a bit to make it cleaner.

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

PiperOrigin-RevId: 460765659
2022-07-13 19:53:29 +00:00
rightnao
53b3001396 [BottomAppBar] Changing default Material3 theme to follow M3 specs
PiperOrigin-RevId: 459785651
2022-07-08 13:32:47 -07:00
pfthomas
9b1a74b95e [ChipGroup][a11y] Fix announced Chip count and index
PiperOrigin-RevId: 459759081
2022-07-08 13:27:42 -07:00
conradchen
10ac255bb2 Automated g4 rollback of changelist 457744460
PiperOrigin-RevId: 459744654
2022-07-08 13:27:04 -07:00
pekingme
2719859ec8 [Tokens][exFAB] Integrate component tokens.
PiperOrigin-RevId: 459541412
2022-07-07 12:31:46 -07:00
pfthomas
be8e4e2d9a [MaterialDatePicker] Improve error formatting
PiperOrigin-RevId: 459495629
2022-07-07 12:30:40 -07:00
pubiqq
74b7706de9 [ShapeableImageView] Don't change layer type when view is detached from the window
When the exit transition starts, the layer type is set to LAYER_TYPE_NONE (inside onDetachedFromWindow). In this case, clearPaint (Paint with Xfermode = PorterDuff.Mode.DST_OUT) stops working correctly.
The patch just deletes the layer type setup from onDetachedFromWindow, leaving the layer type set to LAYER_TYPE_HARDWARE.

Resolves https://github.com/material-components/material-components-android/issues/2703
Resolves https://github.com/material-components/material-components-android/pull/2792

GIT_ORIGIN_REV_ID=b05230b40529251b8b16cc02f1cfd64f3801c1d8
PiperOrigin-RevId: 459308833
2022-07-06 13:15:46 -07:00
pubiqq
0c56a45639 [MaterialTimePicker] Refine AM/PM toggle logic
Resolves https://github.com/material-components/material-components-android/pull/2803

GIT_ORIGIN_REV_ID=f5b301b86b8a91189b8199f924b8f837bd7d3fcd
PiperOrigin-RevId: 459256240
2022-07-06 13:08:18 -07:00
pubiqq
15fa4db616 [TextInputLayout] Fix "android:enabled" attribute support
Resolves https://github.com/material-components/material-components-android/issues/2766
Resolves https://github.com/material-components/material-components-android/pull/2769

GIT_ORIGIN_REV_ID=9e60355679855b57ab63edf63944d3e23d2aec9a
PiperOrigin-RevId: 458516880
2022-07-06 05:03:16 -07:00
Material Design Team
c49f9615a8 Automated g4 rollback of changelist 458476376
PiperOrigin-RevId: 458490930
2022-07-06 05:02:20 -07:00
raajkumars
2d83321a91 [Icon Buttons] Added support for toggleable Icon buttons.
PiperOrigin-RevId: 458476376
2022-07-06 05:00:00 -07:00
pekingme
5ff3930833 [FAB][Cleanup] Reorder styles.
PiperOrigin-RevId: 458305149
2022-07-06 04:57:47 -07:00
pekingme
04f4a1abc0 [ProgressIndicator] Renamed res/animator to res/anim.
PiperOrigin-RevId: 458269849
2022-07-06 04:56:28 -07:00
Manuel Mato
03c4353937 [MaterialDividerItemDecoration] When lastItemDecorated false then creates a blink with the last view contains a dropdown from visible to gone
Resolves https://github.com/material-components/material-components-android/issues/2771
Resolves https://github.com/material-components/material-components-android/pull/2782

GIT_ORIGIN_REV_ID=8f60bab8cbdcfd1db3b7ced1a508d0ac0cde0197
PiperOrigin-RevId: 458265064
2022-07-06 04:55:00 -07:00
pekingme
65a3ac555a Automated g4 rollback of changelist 457648699
PiperOrigin-RevId: 458256849
2022-07-06 04:53:45 -07:00
pubiqq
4dc3d93ac2 [NavigationView] Update foreground boundaries of menu items when setting a new foreground
Resolves https://github.com/material-components/material-components-android/pull/2737
Resolves https://github.com/material-components/material-components-android/issues/2735

GIT_ORIGIN_REV_ID=8632d22d414f592378b68a8d27f7fba73edc28f9
PiperOrigin-RevId: 458198734
2022-07-06 04:52:55 -07:00
pubiqq
1dc0e6b490 [MaterialTimePicker] Fix AM/PM toggle
Before the CL we set AM/PM selection in the listeners no matter the target view (AM/PM) is being checked or being unchecked. So the order of calling listeners of AM and PM can "revert" the selection, if the callback for being unchecked is called later.

This logic is apparently wrong - we should select AM/PM when they are being unchecked anyways.

Resolves https://github.com/material-components/material-components-android/pull/2791
Resolves https://github.com/material-components/material-components-android/issues/2788

GIT_ORIGIN_REV_ID=018e053394f44d6334827fc3f95406c2937ae582
PiperOrigin-RevId: 458027987
2022-07-06 04:51:59 -07:00
AshutoshSundresh
cd80b71817 [Resources] Remove unused public.xml resources
Resolves https://github.com/material-components/material-components-android/pull/2761

GIT_ORIGIN_REV_ID=fbc80605591c097ab56f4a8f0c9b4a2a3cbcfe10
PiperOrigin-RevId: 457959343
2022-06-29 14:39:28 +00:00
conradchen
ac7b761294 [BottomSheet] Create a drag handle view which support accessibility control
PiperOrigin-RevId: 457939228
2022-06-29 14:38:43 +00:00
conradchen
ca2da6c6a4 Automated g4 rollback of changelist 454163860
PiperOrigin-RevId: 457744460
2022-06-29 14:36:58 +00:00
Material Design Team
7e9045b8b7 Automated g4 rollback of changelist 457576897
PiperOrigin-RevId: 457648699
2022-06-29 13:40:35 +00:00