2593 Commits

Author SHA1 Message Date
rightnao
29bed9a021 [CollapsingToolbarLayout] Exposing methods to set text size for collapsed and expanded text size
Resolves https://github.com/material-components/material-components-android/issues/775

PiperOrigin-RevId: 465391478
2022-08-05 19:10:31 +00:00
dsn5ft
2b1af84573 [TypefaceUtils] Add defensive null check for typeface passed in to util
PiperOrigin-RevId: 465333642
2022-08-04 14:49:13 -04:00
pekingme
f3952f83df [Slider] Ensured the minimum touch size of handle is 48dp
PiperOrigin-RevId: 465125601
2022-08-04 14:47:42 -04:00
pubiqq
51b605412a [MaterialDatePicker] Hide month pagination from the year picker
Resolves https://github.com/material-components/material-components-android/pull/2875

GIT_ORIGIN_REV_ID=b8c071d568282f16f8d9b498f2bbcba11be800db
PiperOrigin-RevId: 465055372
2022-08-04 14:33:29 -04:00
dsn5ft
24201b4246 [MaterialDatePicker] Add ability to customize background color to DayViewDecorator
Resolves https://github.com/material-components/material-components-android/issues/2881

PiperOrigin-RevId: 464841873
2022-08-04 14:32:40 -04:00
rightnao
63f98bf5f9 [BottomAppBar] Small bugs and padding adjustments
resolves https://github.com/material-components/material-components-android/issues/2879

PiperOrigin-RevId: 464840315
2022-08-04 14:31:53 -04:00
pfthomas
eca825fd37 [MaterialTimePicker][a11y] Fix focus when changing input mode
PiperOrigin-RevId: 464622930
2022-08-04 14:29:18 -04:00
AshutoshSundresh
aa59bddca9 [MaterialSwitch] Move public.xml to the correct directory
Resolves https://github.com/material-components/material-components-android/pull/2759

GIT_ORIGIN_REV_ID=4e1baf0e5cc535c9e346e9a406063e47a9fe5b09
PiperOrigin-RevId: 464561173
2022-08-04 14:28:43 -04:00
hunterstich
1a336b5cec [Animation] Update lerp to accept input ranges of any size.
PiperOrigin-RevId: 464517972
2022-08-04 14:27:55 -04:00
pubiqq
41d4460744 [Internal] Simplify size computations for some views
Resolves https://github.com/material-components/material-components-android/pull/2807

GIT_ORIGIN_REV_ID=199fecd89fb69acaaab2689a4f53966ea1dbd7de
PiperOrigin-RevId: 464151991
2022-08-04 14:24:11 -04:00
leticiars
079371fd10 [Checkbox] Fix pre-21 issue where a child of the layer drawable (the button and/or the icon drawables) may not have its constant state set up properly.
PiperOrigin-RevId: 464128801
2022-08-04 14:21:36 -04:00
pfthomas
ee19b01e2e [MaterialTimePicker][a11y] Update hour content description for 24h clock
PiperOrigin-RevId: 464069391
2022-08-04 13:52:19 -04:00
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