marianomartin
bb0bfe1835
[BottomSheet] Fixed issue where peekHeight is more than the height of the contents
...
PiperOrigin-RevId: 329722448
(cherry picked from commit e944d1b2a6ee5d9d5a338de0c0061f7b02790f77)
2020-09-02 13:58:28 -04:00
cketcham
ec7f7cb236
[Slider] Adds a warning message if the stepSize or any values are set to float values with a decimal to suggest using integers.
...
PiperOrigin-RevId: 327685433
(cherry picked from commit 7e37eaa252db6f0622f8dcec7eb54c6f4f2b551e)
2020-08-28 13:35:57 -04:00
Tad Fisher
8059ac1020
[NavigationView] Fix obtaining Activity in setupInsetScrimsListener
...
Resolves https://github.com/material-components/material-components-android/pull/1628
Resolves https://github.com/material-components/material-components-android/issues/1627
GIT_ORIGIN_REV_ID=4042d13c8326144184e46795b217b9172b6552ad
PiperOrigin-RevId: 327446397
(cherry picked from commit a6a750b4ae816098bae29b7cdbae7d89f0b0ce9e)
2020-08-28 13:35:26 -04:00
cketcham
194a0aa136
[Slider] Fix the validation of the slider step size and values.
...
Resolves https://github.com/material-components/material-components-android/issues/1587
PiperOrigin-RevId: 327419448
(cherry picked from commit 5004d5a521775e3ec7d737c954f2e26474a8d031)
2020-08-28 13:34:13 -04:00
connieshi
475e63b9b0
[MaterialCardView] Fixed NPE if android:onClick is defined in the layout
...
Resolves https://github.com/material-components/material-components-android/issues/1054
Resolves https://github.com/material-components/material-components-android/pull/1614
GIT_ORIGIN_REV_ID=b19044de3093f19313e362d378f5cc3b810c5727
PiperOrigin-RevId: 326486876
(cherry picked from commit 1b0cfaeaceb2cf7a08a6681079257db47ac6485d)
2020-08-28 13:34:06 -04:00
dniz
53d49e3d89
[BottomSheet] Changed bottom gesture inset handling to ensure a minimum peek height with a buffer built in, instead of always adding the inset to the peek height (when gesture nav is enabled)
...
PiperOrigin-RevId: 325866040
(cherry picked from commit 0df77248d508ee59d0f2d9966e88f08f73a89610)
2020-08-28 13:33:58 -04:00
hunterstich
42b03b365c
[Motion] Removed internal listener from container transform after transition ends.
...
Resolves https://github.com/material-components/material-components-android/issues/1601
PiperOrigin-RevId: 325798894
(cherry picked from commit 05e0496cf9dbee1e65e7500eb449d86f1deec5a7)
2020-08-28 13:33:46 -04:00
marianomartin
821bf2684f
[ShapeableImageView] Fixed shadows for non round rects
...
https://github.com/material-components/material-components-android/issues/1562
PiperOrigin-RevId: 325069672
(cherry picked from commit fbefa5a0ec6af754a278810845c9b0df296b0bc6)
2020-08-28 13:33:40 -04:00
dniz
c9e2ba0e73
[Motion] Improved MaterialContainerTransform approximation of native elevation shadows by using location of bounds on screen
...
Resolves https://github.com/material-components/material-components-android/issues/1543
Follow-up to https://github.com/material-components/material-components-android/issues/1126
PiperOrigin-RevId: 324807509
(cherry picked from commit 23d610007d7b209a982e504eedbfb5b82ee42b54)
2020-08-28 13:33:29 -04:00
Mattia
775d28672a
[BottomSheet] Added missing defensive checks to viewDragHelper calls
...
Resolves https://github.com/material-components/material-components-android/issues/1295
Resolves https://github.com/material-components/material-components-android/pull/1392
GIT_ORIGIN_REV_ID=cadca3f7e20c387562ab8088227f62f4cd6a40de
PiperOrigin-RevId: 323870916
(cherry picked from commit 38216643d6bf7957ee40d8abd863da8f78a62d04)
2020-08-28 13:33:20 -04:00
Mattia
86ab1aed40
[Slider] Added XML enabled property to constructor attrs evaluation
...
Resolves https://github.com/material-components/material-components-android/issues/1531
Resolves https://github.com/material-components/material-components-android/pull/1534
GIT_ORIGIN_REV_ID=79a45af769f604f3fb1c4f0f82fb05f36f0934aa
PiperOrigin-RevId: 323783892
(cherry picked from commit 57a31caef516c451d0569e5002044c37a4dd5a59)
2020-08-28 13:33:10 -04:00
Mattia
bc7b10880d
[ViewOverlays] Removed re-throw of exception on ViewOverlayApi14
...
Resolves https://github.com/material-components/material-components-android/issues/1486
Resolves https://github.com/material-components/material-components-android/pull/1516
GIT_ORIGIN_REV_ID=c2eb7ecd99c9a7f56028510d4591cc4a60ff48ab
PiperOrigin-RevId: 323416732
(cherry picked from commit 99145162769bd3f476334ea0b1c414e741e9cef8)
2020-08-28 13:32:26 -04:00
dniz
34df6d91f1
[BottomSheet] Fixed NullPointerException when calling updatePeekHeight with null viewRef
...
PiperOrigin-RevId: 323107185
2020-08-04 11:18:29 -04:00
dniz
10473709af
[BottomSheet] Updated gesture inset bottom to be saved in separate field to fix compounding peek height issue
...
Follow up for https://github.com/material-components/material-components-android/issues/1472
PiperOrigin-RevId: 323079427
2020-08-04 11:18:04 -04:00
dniz
e72c00135e
[Motion] Removed extra transition background fade duration from MaterialContainerTransformSharedElementCallback in favor of nulling out sharedElementReenterTransition to prevent extra transition from happening
...
Related to https://github.com/material-components/material-components-android/issues/1433
Related to https://github.com/material-components/material-components-android/issues/1344
PiperOrigin-RevId: 322614608
2020-08-04 11:15:04 -04:00
dniz
661c6a1127
[Motion] Added extra transition background fade duration to MaterialContainerTransformSharedElementCallback to prevent extra Activity transition from happening
...
Resolves https://github.com/material-components/material-components-android/issues/1433
Mentioned in https://github.com/material-components/material-components-android/issues/1344
PiperOrigin-RevId: 321550602
(cherry picked from commit 889fca55a2c48d3f8d3a00b42fbe07923fc763de)
2020-07-16 10:30:53 -04:00
marianomartin
3101ef0ef4
[Slider] Fixed exception when restoring instance state
...
Resolves https://github.com/material-components/material-components-android/issues/1284
PiperOrigin-RevId: 321392036
(cherry picked from commit cc031962d42e3d1fde050f8aec18a5221b33b9e5)
2020-07-15 16:31:51 -04:00
Frantisek Nagy
491f1bc97e
[CollapsingToolbarLayout] Fix CollapsingToolbar multiline position
...
GIT_ORIGIN_REV_ID=7dbd8905bf58eb5811c4661ee77512d4d9c59c19
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 321294325
(cherry picked from commit 8210b3ac01355bde3a1443afdfeb8a02b3f913ea)
2020-07-15 16:31:00 -04:00
marianomartin
a1e0883bc8
[Slider] Move static inner classes outside base slider class
...
Resolves https://github.com/material-components/material-components-android/issues/1342
Resolves https://github.com/material-components/material-components-android/issues/1471
PiperOrigin-RevId: 320607441
(cherry picked from commit 34f621d22ce678b279b1fe61aeede6ed43103bc7)
2020-07-15 16:27:01 -04:00
dniz
2664ee958a
[Bottom Sheet] Updated peek height gesture inset behavior to only add extra inset if necessary
...
Previously on Q the peek height would have the bottom gesture inset size added to it regardless of whether edge to edge mode or gesture navigation were enabled. Now the extra inset will only be added if it is needed due to a system gesture conflict, in order to give the user some space to drag the sheet.
Resolves https://github.com/material-components/material-components-android/issues/1472
PiperOrigin-RevId: 320606747
(cherry picked from commit 7b620035a78f15284aed82ec6c09d5f6eb4249dc)
2020-07-15 16:25:45 -04:00
marianomartin
ca0110df0b
[RangeSlider] Fixed number of values changing in RangeSlider
...
https://github.com/material-components/material-components-android/issues/1460
https://github.com/material-components/material-components-android/issues/1393
PiperOrigin-RevId: 319980426
(cherry picked from commit 4eea03dff55efc14e6dc21e2d0a219ee0fd78e3d)
2020-07-15 16:16:04 -04:00
dniz
0e41541150
[Motion] Changed MaterialContainerTransform to skip transition instead of crash when no view bounds
...
Resolves https://github.com/material-components/material-components-android/issues/1377
PiperOrigin-RevId: 319977600
(cherry picked from commit 6b63c117fd4bf7e1cde3ebce5ff3589e38ca931d)
2020-07-15 16:15:23 -04:00
leticiars
a2a238a7d5
[TextInputLayout] Fixed padding for prefix/suffix and label in RTL being wrong.
...
PiperOrigin-RevId: 319873647
(cherry picked from commit 7b5aea2ca37cc7a17c07c2748846a8ddcd2e9b09)
2020-07-15 16:11:22 -04:00
marianomartin
d51ae6734e
[MaterialShapeDrawable] Fixed exception with int division
...
Resolves https://github.com/material-components/material-components-android/issues/937
PiperOrigin-RevId: 319778531
(cherry picked from commit 26fc10cfc99c9ac3b7a4747f2c80e6a48a6bec5f)
2020-07-15 16:10:03 -04:00
hunterstich
b9d70d3d86
[Motion] Fix zero-length motion path container transform bug.
...
getPosTan, which calculates the translation of the conatienr bounds, no-ops if the startView doesn't move to a new position (when the startView and endView are top aligned and centered horizontally on one another). This was causing motionPathPositions, the int array holding the x and y of the animated bounds to never be initialized, defaulting to 0, and throwing off the bounds calculation.
This CL updates the int array with actual default x and y values so when getPosTan no-ops, the motionPathPosition array contains the correct values.
Resolves https://github.com/material-components/material-components-android/issues/1161
PiperOrigin-RevId: 319247326
(cherry picked from commit 3c9096d45128f11f3a84dca9f650373ff196cdce)
2020-07-15 16:09:04 -04:00
marianomartin
47ab8502fb
[ExtendedFloatingActionButton] Fixed ripple issue
...
Resolves https://github.com/material-components/material-components-android/issues/1359
PiperOrigin-RevId: 319038380
(cherry picked from commit 61e927ed5afddddde387abbae10d99a30b1f1563)
2020-07-15 16:08:14 -04:00
connieshi
b1dfadb873
[Chip] Include font padding.
...
Resolves https://github.com/material-components/material-components-android/issues/1424
PiperOrigin-RevId: 318817230
(cherry picked from commit 8544f7acc2ece2779ed4ac8a0954d49b54ac298e)
2020-07-15 16:07:18 -04:00
marianomartin
0bcf9d47c0
[DatePicker] Fixed crash when GridView has not rendered the last child
...
Resovles https://github.com/material-components/material-components-android/issues/1338
PiperOrigin-RevId: 318811845
(cherry picked from commit 811d45216bfe1f7082ab416668b794b482100337)
2020-07-15 16:06:28 -04:00
Robert Williams
b545ae8982
[CollapsingToolbarLayout] Use correct layout to calculate expanded bounds
...
Resolves https://github.com/material-components/material-components-android/pull/1432
GIT_ORIGIN_REV_ID=6041d791702d16e7501289f939fa01874b16b32c
PiperOrigin-RevId: 318639226
(cherry picked from commit 77a0a87fb14187253bcabf022da8edd55cb29008)
2020-07-15 16:06:08 -04:00
marianomartin
e5430f9488
[Slider] Changed slider thumbs to prevent crossing each other
...
PiperOrigin-RevId: 318502401
(cherry picked from commit 71fcb73c7ff52da799f578fd895041fc69372d54)
2020-07-15 16:04:57 -04:00
leticiars
a97a555c10
[ExposedDropDownMenu] Changed the editable exposed dropdown menu's a11y class name to be EditText instead of a drop down since the primary action for the user is to type.
...
PiperOrigin-RevId: 317650366
(cherry picked from commit 023e5182bf6676bf547b9d6361fede1baccb825c)
2020-07-15 15:57:59 -04:00
Sven Obser
f248f60de3
[CollapsingToolbarLayout] Fixed slight misalignment during transition in multiline mode
...
Resolves https://github.com/material-components/material-components-android/pull/1408
GIT_ORIGIN_REV_ID=9b29f85a8f9e9c52b256fbb4ce3148e19ee503fc
PiperOrigin-RevId: 317322732
(cherry picked from commit 74508c89c87f3f17db8f952319ccb4daee60a260)
2020-07-15 15:57:05 -04:00
dniz
79cd05741d
[Theming] Move Design widget styles back to full themes from Bridge themes
...
Makes the Bridge themes a more true no-op when migrating from a Theme.AppCompat or Theme.Design theme and using legacy Widget.Design component styles
Resolves https://github.com/material-components/material-components-android/issues/740
PiperOrigin-RevId: 317306206
(cherry picked from commit 8851f703d86c3d80cae21d3d117fe5a80560297d)
2020-07-15 15:56:02 -04:00
Eugen Pechanec
134c73e6f8
[Slider] Keyboard navigation fix, part 2
...
Resolves https://github.com/material-components/material-components-android/pull/1395
GIT_ORIGIN_REV_ID=7762807c9e2b58c4156267c04ae9fbb080ed8835
PiperOrigin-RevId: 317126080
(cherry picked from commit a49e8867e95d4134c3d98369a6176b53709c376d)
2020-07-15 15:53:19 -04:00
dniz
2092e2a3c6
[Motion] Updated MaterialElevationScale default scale value to 0.85
...
PiperOrigin-RevId: 316905583
(cherry picked from commit ef64df5adc09392600b7e2fbfad2a83b344d0015)
2020-07-15 15:52:49 -04:00
marianomartin
f8d0466f64
[Slider] Changed slider to support very small widths
...
Resolves https://github.com/material-components/material-components-android/issues/1243
PiperOrigin-RevId: 316741418
(cherry picked from commit ba9c2e63ef5692dbfe411684d77eea0ffb7588a2)
2020-07-15 15:52:27 -04:00
dniz
c438a26c11
[Motion] Added MaterialElevationScale transition
...
Useful as an exit transition and reenter transition in conjunction with MaterialContainerTransform
PiperOrigin-RevId: 316708216
(cherry picked from commit 3379c4598078d290a3927a26be1619456225beb5)
2020-07-15 15:51:42 -04:00
raajkumars
d9b98743e5
[datepicker]Fixed issue that causes the Datepicker to highlight the wrong day as today.
...
Resolves https://github.com/material-components/material-components-android/issues/882
PiperOrigin-RevId: 315317701
(cherry picked from commit 712a2ce92040b6fc90530ad853633ecd7f258dfc)
2020-07-15 15:50:28 -04:00
leticiars
1b6bb8928a
[TextInputLayout] Fixed clear icon and placeholder text being displayed when the text field is initialized with input text.
...
Resolves https://github.com/material-components/material-components-android/issues/1379
PiperOrigin-RevId: 315317199
(cherry picked from commit 9b0a8d90e6720bc644913564b8f848ccb9fdcac3)
2020-07-15 15:46:30 -04:00
Eugen Pechanec
49d4068a15
[Slider] Keyboard navigation fix
...
Resolves https://github.com/material-components/material-components-android/pull/1364
GIT_ORIGIN_REV_ID=8a0fb870fafba516db529ffee13ea448964b0a9b
PiperOrigin-RevId: 315302829
(cherry picked from commit 3e3bc41abb49dc3fa1dff63e886da787b592cf2a)
2020-07-15 15:28:58 -04:00
dniz
943234fc84
[Color] Added @color/material_on_surface_stroke to res-public
...
PiperOrigin-RevId: 314924864
(cherry picked from commit a65dbfc746ca1605be86b4712766cd64519150fd)
2020-07-15 15:26:17 -04:00
connieshi
ed66710595
[MaterialButtonToggleGroup] Do not update the checked state of any child buttons during onPressedChanged callback.
...
Resolves https://github.com/material-components/material-components-android/issues/1365
PiperOrigin-RevId: 314798502
(cherry picked from commit 15c048c0fa2fdececdab843659856cc47fc3363f)
2020-07-15 15:25:17 -04:00
Yurii Blinov
f5708f780c
[MaterialAutoCompleteTextView] NullPointerException on Meizu devices closes #1347
...
Resolves https://github.com/material-components/material-components-android/pull/1354
Resolves https://github.com/material-components/material-components-android/issues/1347
GIT_ORIGIN_REV_ID=506d9c8197cab69d63c1415237f2e75a0af1b155
PiperOrigin-RevId: 314222991
(cherry picked from commit c59acae371b5139171081cbf07abc5e15af4e890)
2020-07-15 15:21:39 -04:00
Material Design Team
c2addf191b
Fix MaterialButton$SavedState ClassNotFoundException
...
PiperOrigin-RevId: 313512256
(cherry picked from commit 7cfc63ed35262b2f68a241ecc426484860b183ce)
2020-07-15 15:17:28 -04:00
marianomartin
3d8dae52c9
[ShapeableImageView] Improve default style
...
PiperOrigin-RevId: 313428562
(cherry picked from commit efc0a7f8276b1679ea15bcb058a2c236d18badd2)
2020-05-27 15:14:04 -04:00
marianomartin
549d21452a
[ShapeableImageView] Add Shape appearance attributes for consistency and to fix autocomplete
...
PiperOrigin-RevId: 313414124
(cherry picked from commit 30c7b247542bf8601b0a5159f9a9235633f8bc11)
2020-05-27 15:14:04 -04:00
Ethan Hsu
4518be3b35
[ShapeableImageView] Allow ShapeableImageView to dynamically update shape appearance
...
In some cases setShapeAppearanceModel will be called after onSizeChanged but before the first draw. This results in the mask being out of date.
Resolves https://github.com/material-components/material-components-android/pull/1328
GIT_ORIGIN_REV_ID=3d99c7857595ff0ba61c1aaa65963909c1950c10
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 313402813
(cherry picked from commit 2b676b46a9fa0296edb43eef32cd94b88006cfd5)
2020-05-27 15:14:04 -04:00
dniz
a310f904bb
[MaterialDatePicker] Disable positive button when invalid or incomplete dates are selected
...
Resolves https://github.com/material-components/material-components-android/issues/1270
Resolves https://github.com/material-components/material-components-android/pull/1271
PiperOrigin-RevId: 313390751
(cherry picked from commit 796509884947b903177594960fb703836de50ba3)
2020-05-27 15:14:04 -04:00
marianomartin
2a37868ee3
[ShapeableImageView] Change strokeWidth to float and support null for stroke color
...
Resolves https://github.com/material-components/material-components-android/issues/1330
Resolves https://github.com/material-components/material-components-android/issues/1331
PiperOrigin-RevId: 313390374
(cherry picked from commit 24f9c0639635e8d3a50dd821fc8eb3a9920dabd2)
2020-05-27 15:14:04 -04:00
connieshi
89f2248bbf
Set buttonBarButtonStyle in full Material Component themes to use @style/Widget.MaterialComponents.Button.TextButton.
...
Fixes regression in elevation demo introduced when MaterialButton added support for the android:background attribute.
PiperOrigin-RevId: 313390366
(cherry picked from commit 68ccc33dad625fd143bd76449e6dae7889075d61)
2020-05-27 15:14:04 -04:00