1986 Commits

Author SHA1 Message Date
marianomartin
9f791574ec [TimePicker] Use MaterialColors to correctly read CSLs with theme attributes
PiperOrigin-RevId: 345068246
2020-12-02 10:00:18 -05:00
raajkumars
aca5bfb6f7 [Bottom Navigation] Extracted common logic from bottom navigation component into navigation package.
PiperOrigin-RevId: 345029590
2020-12-02 09:55:26 -05:00
Carsten Hagemann
1f76fcc70f [Slider] Improve listener documentation, fix #1900
Resolves https://github.com/material-components/material-components-android/issues/1900
Resolves https://github.com/material-components/material-components-android/pull/1901

GIT_ORIGIN_REV_ID=70b2b0a1f2bc5798165913cb7dd2e015ff55abdf
PiperOrigin-RevId: 345003325
2020-12-01 09:30:36 -05:00
dniz
7e578e4b13 [Motion] Changed motionPath theme attr format to enum|string
PiperOrigin-RevId: 344865393
2020-12-01 09:28:06 -05:00
connieshi
725d78deb5 [i18n] Added or updated string translations for i18n / l10n
PiperOrigin-RevId: 344821092
2020-11-30 13:42:11 -05:00
Sasikanth Miriyampalli
890b727dcb [MaterialTimePicker] Make default theme overlay public
Resolves https://github.com/material-components/material-components-android/pull/1892

GIT_ORIGIN_REV_ID=da647ca589d4da3f2cebcfaef422ff7504296f09
PiperOrigin-RevId: 344275691
2020-11-29 11:12:58 -05:00
isabellekim
738cccb433 [Chip] Update javadocs @see methods to match the actual methods.
PiperOrigin-RevId: 344160354
2020-11-25 10:28:33 -05:00
haodong
4ab8cb1d4c [ProgressIndicator] Added sized styles for circular type.
PiperOrigin-RevId: 344141496
2020-11-25 10:26:48 -05:00
dniz
5154eeae32 [Motion] Applied easing, duration, and path theme attributes to MaterialContainerTransform
Also removed custom dagger container transform config from Catalog so that these motion theme changes are observable

PiperOrigin-RevId: 344118337
2020-11-25 10:25:26 -05:00
Mattia Pagini
2b95793ea6 [BaseTransientBottomBar] Check for nullable AccessibilityService
Resolves https://github.com/material-components/material-components-android/issues/1885
Resolves https://github.com/material-components/material-components-android/pull/1888

GIT_ORIGIN_REV_ID=35572a920b4bdd66e416d428c55416df7c498db6
PiperOrigin-RevId: 343873267
2020-11-23 14:41:28 -05:00
haodong
379519765a [ProgressIndicator] Corrected comments for javadoc.
PiperOrigin-RevId: 343570043
2020-11-23 09:07:44 -05:00
dniz
186d5ed023 [Motion] Added easing, duration, and path theme attributes, as well as utilities to read them
PiperOrigin-RevId: 343380483
2020-11-20 15:00:13 -05:00
haodong
9d7ae04e0e [ProgressIndicator] Renamed some attributes.
PiperOrigin-RevId: 343299956
2020-11-19 12:33:42 -05:00
haodong
5ff62d3098 [ProgressIndicator] Hided AnimatorDurationScaleProvider from API.
PiperOrigin-RevId: 343124032
2020-11-18 16:11:21 -05:00
cketcham
b163458a3a [BottomSheet] Updates the way BottomSheet handles insets
This updates ThemeOverlay styles to prevent drawing a transparent nav bar and updates BottomSheetBehavior and BottomSheetDialog to handle insets correctly so content isn't drawn behind the status bar or navigation bar.

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

PiperOrigin-RevId: 343006492
2020-11-18 10:40:16 -05:00
Drew Hamilton
c4f7de167f [ShapeableImageView] Support contentPadding
Resolves https://github.com/material-components/material-components-android/pull/1871

GIT_ORIGIN_REV_ID=42b91686512ed77d38f5a70a26cc52157ff4184b
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 342906676
2020-11-17 15:52:38 -05:00
haodong
a99966a162 [ProgressIndicator] Made BaseProgressIndicator and BaseProgressIndicatorSpec abstract.
PiperOrigin-RevId: 342737029
2020-11-17 15:50:41 -05:00
haodong
be6ed3da48 [ProgressIndicator] Updated class visibility.
PiperOrigin-RevId: 342664697
2020-11-16 16:40:34 -05:00
connieshi
fd3639092e [Tabs] Show tooltip with tab text or content description (if tab is icon only) when long press.
PiperOrigin-RevId: 342411547
2020-11-14 10:16:08 -05:00
Drew Hamilton
af73a1771e [ShapeableImageView] Call invalidateOutline when shape is changed
Resolves https://github.com/material-components/material-components-android/pull/1769

PiperOrigin-RevId: 342118551
2020-11-14 10:12:36 -05:00
haodong
e1d979631d [ProgressIndicator] Combined attributes show/hideBehaviorLinear and show/hideBehaviorCircular.
PiperOrigin-RevId: 342086777
2020-11-14 10:07:06 -05:00
haodong
b1ef02a16b [ProgressIndicator] Cleaned up deprecated class and resources.
PiperOrigin-RevId: 342076767
2020-11-12 13:53:23 -05:00
haodong
c76665bc11 [ProgressIndicator] Deprecated LINEAR type in ProgressIndicator and ProgressIndicator.
PiperOrigin-RevId: 342069665
2020-11-12 13:49:35 -05:00
haodong
a5890bfe6b [ProgressIndicator] Fixed incorrect visibility when Recyclerview is used.
Resolves https://github.com/material-components/material-components-android/issues/1662

PiperOrigin-RevId: 341845553
2020-11-12 10:55:00 -05:00
DHM47
492e50f873 [Badge] Updated getBadgeText to return a string representation of the number formatted using system Locale.
Resolves https://github.com/material-components/material-components-android/issues/1859
Resolves https://github.com/material-components/material-components-android/pull/1860

GIT_ORIGIN_REV_ID=53544cc548c041c7337a257474abdbb4025cb6f3
PiperOrigin-RevId: 341656773
2020-11-10 15:17:10 -05:00
Sasikanth Miriyampalli
c6351c45d6 [MaterialTimePicker] Fixed typo in TextAppearance.MaterialComponents.TimePicker.Title
Resolves https://github.com/material-components/material-components-android/pull/1858

GIT_ORIGIN_REV_ID=c4ff46a1d0400da631df37537e9e610b3cae3c01
PiperOrigin-RevId: 341608315
2020-11-10 11:11:39 -05:00
dniz
ad1d173018 [Motion] Updated MaterialContainerTransform to support overshoot and added OvershootInterpolator, AnticipateOvershootInterpolator, and BounceInterpolator options to Catalog demos
Allows overshoot for the translation and width/height scale parts of the container transform's animation, not the fade part of the animation.

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

PiperOrigin-RevId: 341432972
2020-11-09 13:34:50 -05:00
Maxim Sutkovenko
b2b87dd434 [Slider] Fixed slider doesn't slide in Horizontal Recycler View
Resolves https://github.com/material-components/material-components-android/pull/1847
Resolves https://github.com/material-components/material-components-android/issues/1843

GIT_ORIGIN_REV_ID=21cfc4d93954cdcb6ffbac00f085a3ca3b6ed2de
PiperOrigin-RevId: 340658479
2020-11-04 14:28:22 -05:00
hunterstich
6ad8301fb6 [I18n] Update string translations
PiperOrigin-RevId: 340622036
2020-11-04 11:22:36 -05:00
Material Design Team
9659a536b9 [Snackbar] Add support for passing a Context to Snackbar.make()
Currently Snackbar.make() will use the context of the parent view (typically CoordinatorLayout or decor content view) to inflate the Snackbar view. This is not desirable for cases where there may be a ContextThemeWrapper below that parent view, e.g. for a Fragment that uses material theme.

The behavior of existing methods without Context argument remain unchanged.

PiperOrigin-RevId: 340286851
2020-11-03 11:12:55 -05:00
raajkumars
be616abf49 [internal] Moved common ids from bottom navigation to central location so that it can be reused.
PiperOrigin-RevId: 340255767
2020-11-03 11:11:54 -05:00
isabellekim
22467b4994 [TimePicker] Add default style attribute (materialClockStyle) to the time picker theme overlay for the clock face and clock hand, making all colors on the clock customizable.
materialClockStyle respects the following attributes:
+ clockFaceBackgroundColor: color of the clock face
+ clockHandColor: color of the clock hand
+ clockNumberTextColor: color of the numbers on the clock (CSL, selected state is used on top of the clockHandColor)

PiperOrigin-RevId: 339469022
2020-10-29 15:16:28 -04:00
hunterstich
d4d0dcdbc6 [Motion] Update ScaleProvider and SlideDistanceProvider to respect and restore a targets original scale/translation.
PiperOrigin-RevId: 339309231
2020-10-28 09:46:39 -04:00
leticiars
7bb8c4da01 [TextFields] Added comments explaining edit text padding values.
PiperOrigin-RevId: 339295143
2020-10-28 09:45:18 -04:00
leticiars
c9f2caaf9d Automated g4 rollback of changelist 339130013
PiperOrigin-RevId: 339279131
2020-10-28 09:40:41 -04:00
Material Design Team
8f6b39d860 Automated g4 rollback of changelist 339053684
PiperOrigin-RevId: 339130013
2020-10-27 10:21:11 -07:00
leticiars
948bb327f9 [ExposedDropdownMenu] Update paddings to match spec.
PiperOrigin-RevId: 339053684
2020-10-27 10:18:36 -07:00
haodong
8b38e32829 [ProgressIndicator] Added attribute tests and parameter tests for LinearProgressIndicator.
PiperOrigin-RevId: 338754297
2020-10-27 05:09:24 -07:00
haodong
298dbe75f6 [ProgressIndicator] Made LinearProgressIndicator functional and optimized readability of CircularProgressIndicator.
PiperOrigin-RevId: 338753954
2020-10-27 05:08:39 -07:00
haodong
757b4fac85 [ProgressIndicator] Use LinearProgressIndicatorSpec in LINEAR type.
PiperOrigin-RevId: 338753632
2020-10-27 04:36:39 -07:00
haodong
b6643204a6 [ProgressIndicator] Added LinearProgressIndicator and LinearProgressIndicatorSpec.
PiperOrigin-RevId: 338738646
2020-10-27 04:35:45 -07:00
Material Design Team
cf9027f098 [TabLayout] Add a localized a11y string for a tab
PiperOrigin-RevId: 338706340
2020-10-23 12:31:51 -07:00
isabellekim
7ef5308c14 [TimePicker] Update title color to be in typography.
PiperOrigin-RevId: 338666608
2020-10-23 12:30:36 -07:00
Material Design Team
5c83026c17 [ExtendedFloatingActionButton] Add support for initial show animation.
This adds setAnimateShowBeforeLayout() method to override the default behavior. With this change a button which is initially hidden (Visibility.GONE) can be animated in by calling show().

PiperOrigin-RevId: 338508716
2020-10-22 19:21:43 -04:00
hunterstich
5d0e0322b1 [Motion] Updated FadeProvider and FadeThroughProvider to support Activity alpha.
PiperOrigin-RevId: 338448088
2020-10-22 17:40:15 -04:00
marianomartin
37c7f26793 [TimePicker] Increased touch target size of AM/PM toggle
PiperOrigin-RevId: 338328586
2020-10-21 15:55:50 -07:00
marianomartin
4aeb6a9dbb [TimePicker] Update image button appearance
PiperOrigin-RevId: 338316939
2020-10-21 15:54:20 -07:00
connieshi
93f4f161cd [Chip] If a close icon is purely decorative (e.g. no closeIconClickListener is specified), the close icon should not intercept the click and instead let the superclass manages the touch event for the overall chip.
PiperOrigin-RevId: 338260731
2020-10-21 15:51:08 -07:00
connieshi
bc1bd23375 [chip] Avoid flickering when using downlodable fonts.
PiperOrigin-RevId: 338258136
2020-10-21 15:49:00 -07:00
haodong
e019b02bb5 [ProgressIndicator] Fixed attribute's references and added spec validation to setting indicatorSize in CircularProgressIndicator.
PiperOrigin-RevId: 338163182
2020-10-21 15:47:52 -07:00