hunterstich
8be3efc199
[BottomAppBar] Updated FAB Alignement and menu replacement to fix different length menu res translation x bug
...
PiperOrigin-RevId: 326652655
2020-08-14 15:08:25 -04:00
Material Design Team
431e092649
[DatePicker] Made some MaterialCalendar related methods/classes public, but still restricted.
...
PiperOrigin-RevId: 326494150
2020-08-13 16:53:54 -04:00
connieshi
1b0cfaeace
[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
2020-08-13 16:51:44 -04:00
leticiars
bc4c6e47ae
[TextFields] Adjusted label position and edit text padding of filled text field for large font support. Also removed margin of icons when font is large.
...
PiperOrigin-RevId: 326486771
2020-08-13 16:50:06 -04:00
Gabriele Mariotti
fcea6e8ab2
[TextInputLayout] Added method to set hint with a String resource
...
Resolves https://github.com/material-components/material-components-android/issues/959
Resolves https://github.com/material-components/material-components-android/pull/1598
GIT_ORIGIN_REV_ID=c156ad372ca4055f70a7021db89d91b915db8b4c
PiperOrigin-RevId: 326249688
2020-08-12 14:19:57 -04:00
connieshi
db4275fbd3
[a11y][Bottomsheet] Add custom action to drag bottomsheet half expanded.
...
PiperOrigin-RevId: 326237250
2020-08-12 14:17:36 -04:00
haodong
78aa3eac95
[ProgressIndicator] More cleanup of renaming indicatorWidth to indicatorSize.
...
PiperOrigin-RevId: 326064408
2020-08-11 14:47:40 -04:00
Material Design Team
fb23efff45
[DatePicker] Allow RangedDateSelectors with multiples ranges in different months to be shown correctly.
...
PiperOrigin-RevId: 326054201
2020-08-11 14:46:48 -04:00
haodong
4d866b060a
[ProgressIndicator] Corrected the behavior and comment of the setProgress to align with the framework ProgressBar API.
...
PiperOrigin-RevId: 326040256
2020-08-11 14:42:59 -04:00
dniz
0df77248d5
[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
2020-08-11 14:41:15 -04:00
Material Design Team
b12c5c5b00
[DatePicker] Speed up calendar performance by only updating certain views when a day is clicked, instead of recreating and redrawing all of them.
...
PiperOrigin-RevId: 325850735
2020-08-11 14:39:26 -04:00
dniz
cbc7af2054
[BottomNavigationView] Added setItemOnTouchListener method to support custom touch handling
...
PiperOrigin-RevId: 325814575
2020-08-10 13:25:26 -04:00
hunterstich
05e0496cf9
[Motion] Removed internal listener from container transform after transition ends.
...
Resolves https://github.com/material-components/material-components-android/issues/1601
PiperOrigin-RevId: 325798894
2020-08-10 13:21:50 -04:00
marianomartin
edbfd15c82
[MaterialShapeDrawables] Fixed compat shadows after ShapePathProvider change
...
PiperOrigin-RevId: 325797837
2020-08-10 13:20:07 -04:00
leticiars
1f8e76b3a1
[TextInputLayout] Fixed helper text position for large font sizes.
...
PiperOrigin-RevId: 325521228
2020-08-10 13:18:03 -04:00
haodong
416eab583c
[ProgressIndicator] Improved inflation performance.
...
- Deferred animator initialization to the moment animations start.
- Improved inflation time (1k times) from 1478 ms to 325 ms. For the framework ProgressBar, it's about 190 ms.
PiperOrigin-RevId: 325455356
2020-08-07 15:23:41 -04:00
marianomartin
c59c04639c
[MaterialShapeDrawable] Convert ShapeAppearancePathProvider to a singleton.
...
Also allocate less path objects.
PiperOrigin-RevId: 325287653
2020-08-06 21:10:36 -04:00
marianomartin
fbefa5a0ec
[ShapeableImageView] Fixed shadows for non round rects
...
https://github.com/material-components/material-components-android/issues/1562
PiperOrigin-RevId: 325069672
2020-08-05 16:26:06 -04:00
haodong
77582b5e21
[ProgressIndicator] Renamed indicatorWidth with indicatorSize to eliminate the confusion of indicatorWidth controlling view height in LINEAR types.
...
Resolves https://github.com/material-components/material-components-android/issues/1491
PiperOrigin-RevId: 325045868
2020-08-05 16:25:19 -04:00
dniz
b0240d9a77
[Resources] Fixed the types of some public attrs
...
Resolves https://github.com/material-components/material-components-android/issues/1560
PiperOrigin-RevId: 325010287
2020-08-05 10:59:36 -04:00
dniz
23d610007d
[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
2020-08-04 10:47:27 -04:00
connieshi
5c9e250c46
[Tab] Added getter in TabLayoutMediator to return whether a TabLayout and a ViewPager2 are linked together.
...
Resolves https://github.com/material-components/material-components-android/issues/1506
PiperOrigin-RevId: 324608263
2020-08-03 21:32:38 -04:00
Gabriele Mariotti
5fb7964372
[Slider] Added option to show/hide tick marks in discrete mode
...
Resolves https://github.com/material-components/material-components-android/pull/1545
GIT_ORIGIN_REV_ID=6c5dc94df08ad7ec202722d5b546795f436de404
PiperOrigin-RevId: 324263710
2020-07-31 15:44:30 -04:00
marianomartin
dbbd27cefc
[TimePicker] Removed newInstance method in favor of Builder Class
...
Resolves https://github.com/material-components/material-components-android/issues/1512
PiperOrigin-RevId: 324248187
2020-07-31 15:42:47 -04:00
Gabriele Mariotti
2ccc71624e
[TimePicker] Added listeners
...
Resolves https://github.com/material-components/material-components-android/pull/1517
GIT_ORIGIN_REV_ID=be2559a45bff94592537183d46659df5a2a91056
PiperOrigin-RevId: 324215552
2020-07-31 15:05:17 -04:00
marianomartin
5f9aa7f622
[TimePicker] Fixed size on edit text smaller than on chip button
...
PiperOrigin-RevId: 324208729
2020-07-31 11:23:20 -04:00
David Sucharda
84fd465cea
[TabLayout] Added support for preserving the indicator drawable's intrinsic color
...
Setting app:tabIndicatorColor="@null" (or app:tabIndicatorColor="@android:color/transparent") will now result in the intrinsic color of the indicator drawable being respected. To hide the indicator completely, instead set app:tabIndicator="@null".
Resolves https://github.com/material-components/material-components-android/issues/1481
Resolves https://github.com/material-components/material-components-android/pull/1483
GIT_ORIGIN_REV_ID=7926b2671fb119a6472cc180b77ea6fe1b63fbd1
PiperOrigin-RevId: 323928586
2020-07-30 00:21:33 -04:00
Gabriele Mariotti
6050bd4347
[MaterialDatePicker] Added placeholder text in text input mode to show date format
...
Resolves https://github.com/material-components/material-components-android/pull/1528
GIT_ORIGIN_REV_ID=a4e436bbbc270d4716f78e9919f50315da75c5b3
PiperOrigin-RevId: 323879097
2020-07-30 00:20:55 -04:00
Mattia
38216643d6
[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
2020-07-30 00:19:39 -04:00
marianomartin
dd254c536a
[TimePicker] Fixed incorrect offset applied to shaders
...
Resolves https://github.com/material-components/material-components-android/issues/1537
PiperOrigin-RevId: 323783957
2020-07-29 10:42:12 -04:00
Mattia
57a31caef5
[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
2020-07-29 10:41:35 -04:00
Gabriele Mariotti
e6f05bca7e
[NavigationView] Support for shapeAppearance and shapeAppearanceOverlay attributes
...
Resolves https://github.com/material-components/material-components-android/pull/1535
GIT_ORIGIN_REV_ID=f676794634c788fb906bc36c0feadb1628e36fb4
PiperOrigin-RevId: 323783155
2020-07-29 10:39:14 -04:00
Aidan Pieper
70d659db60
[MaterialButtonToggleGroup] Fixed margins on MaterialButtonToggleGroup when changing orientations
...
Resolves https://github.com/material-components/material-components-android/pull/1521
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
GIT_ORIGIN_REV_ID=c87c9ec3258c52fd3e6e2824b8dca2823b9500a5
PiperOrigin-RevId: 323781705
2020-07-29 10:38:35 -04:00
marianomartin
8ea36ae200
[TimePicker] Removed checkable from timepicker mode button
...
PiperOrigin-RevId: 323616442
2020-07-29 09:16:41 -04:00
haodong
5a1c183b16
[ProgressIndicator] Fixed canvas state leak in IndeterminateDrawable.
...
PiperOrigin-RevId: 323615617
2020-07-29 09:16:08 -04:00
haodong
0b82e81a8b
[ProgressIndicator] Added a new attribute to delay show actions.
...
Resolves https://github.com/material-components/material-components-android/issues/1524
PiperOrigin-RevId: 323586499
2020-07-29 09:15:31 -04:00
marianomartin
4e62f960ec
[TabLayout] Add a setId method that can be used for espresso
...
PiperOrigin-RevId: 323570079
2020-07-29 09:14:46 -04:00
haodong
eaa0a7f510
[ProgressIndicator] Improved the readability of initializeDrawables() function.
...
PiperOrigin-RevId: 323568162
2020-07-29 09:14:09 -04:00
dniz
b82d41fe55
[MaterialDatePicker] Fixed orientation of next/previous month button icons for RTL languages
...
Resolves https://github.com/material-components/material-components-android/issues/1485
Resolves https://github.com/material-components/material-components-android/pull/1518
Co-authored-by: Mattia <darksoulcyber@hotmail.it>
PiperOrigin-RevId: 323566996
2020-07-28 10:29:58 -04:00
marianomartin
f837cb76ab
[MaterialButton] Support setting vertical insets programatically
...
Resolves https://github.com/material-components/material-components-android/issues/526
PiperOrigin-RevId: 323450357
2020-07-28 10:28:38 -04:00
Mattia
9914516276
[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
2020-07-28 10:27:19 -04:00
Mattia
6daf233982
[ChipGroup] Generate a valid ID for Chip view on any API level
...
Resolves https://github.com/material-components/material-components-android/issues/1493
Resolves https://github.com/material-components/material-components-android/pull/1515
GIT_ORIGIN_REV_ID=6b39b596c6d79b09ffb76c791cdda35403081578
PiperOrigin-RevId: 323385654
2020-07-27 13:23:17 -04:00
dniz
96674d59ab
[BottomSheet] Fixed NullPointerException when calling updatePeekHeight with null viewRef
...
PiperOrigin-RevId: 323107185
2020-07-27 13:21:54 -04:00
dniz
9fa9f1e8ea
[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-07-27 13:21:20 -04:00
marianomartin
162205b9df
[TimePicker] Fixed exception when shrinkResources is enabled
...
Resolves https://github.com/material-components/material-components-android/issues/1508
PiperOrigin-RevId: 323018869
2020-07-27 13:20:06 -04:00
leticiars
be8fc51596
[ExposedDropdownMenu][a11y] Fixed dropdown list not focusing for editable dropdown menus.
...
Focusing on the layout will let user type, while the arrow icon is what will trigger showing/hiding the dropdown list (which gains focus automatically).
PiperOrigin-RevId: 322846934
2020-07-27 13:19:21 -04:00
dniz
5bd64f42d3
[DatePicker] Updated text input mode to respect custom theme res id
...
Resolves https://github.com/material-components/material-components-android/issues/966
PiperOrigin-RevId: 322809365
2020-07-27 13:17:42 -04:00
marianomartin
b92261f847
[TimePicker] Fix lint issue with edit texts
...
PiperOrigin-RevId: 322804881
2020-07-23 12:48:18 -04:00
haodong
ea9cce8c29
[ProgressIndicator] Fixed incorrect visibility change when the component's parent is not visible.
...
PiperOrigin-RevId: 322771684
2020-07-23 11:42:07 -04:00
dniz
88ca5c9eeb
[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-07-22 14:25:30 -04:00