1543 Commits

Author SHA1 Message Date
Material Design Team
c5908974c6 Pass the item ID through to the item view which is created by the RecyclerView.
PiperOrigin-RevId: 296479321
2020-02-24 18:25:08 -05:00
marianomartin
8e8d20c94f Fix interpolation for MSD round rects
PiperOrigin-RevId: 296281750
2020-02-20 16:35:56 -05:00
marianomartin
e664b98062 [MaterialDatePicker] Crash - Scroll to Min Year of CalendarConstraint
Resolves https://github.com/material-components/material-components-android/pull/981
Resolves https://github.com/material-components/material-components-android/issues/980

PiperOrigin-RevId: 296000173
2020-02-19 13:36:30 -05:00
marianomartin
7e6dfce572 Bring back CollpasingToolbarLayout MaterialThemeOverlay support
PiperOrigin-RevId: 295971324
2020-02-19 13:27:47 -05:00
cketcham
b5c3fecacc Add warning to ShapePath when an operation is being used in a situation where a compatibility shadow would normally be drawn
PiperOrigin-RevId: 295847026
2020-02-19 10:52:22 -05:00
Felipe Roriz
4ccb052d2b [MaterialDatePicker] Added a DateValidator for a bounded range.
Resolves https://github.com/material-components/material-components-android/pull/972

GIT_ORIGIN_REV_ID=29cbbd569f5284f0bdf4cc1bdad60f93f92856eb

Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 295810824
2020-02-18 18:03:44 -05:00
cketcham
9c3701a7cf Add ShapePath#cubicToPoint()
Resolves https://github.com/material-components/material-components-android/issues/924

PiperOrigin-RevId: 295775205
2020-02-18 16:53:15 -05:00
cketcham
1e1100f6a9 Clarify ShapePath#quadToPoint() will only draw native shadows
PiperOrigin-RevId: 295755346
2020-02-18 16:47:00 -05:00
isabellekim
983ee3d47b Use text buttons for framework AlertDialogs in V21+. The library does not encourage usage of the framework AlertDialog (use the AppCompat one instead), however this change is to help support areas that do use the framework AlertDialog, like preferences.
Note: the default theme (android:alertDialogTheme) for framework alert dialogs pre-21 is not a public resource and therefore we cannot inherit from that theme. For this reason, we are not changing the buttons for AlertDialogs pre-21 (they will continue to use the framework default). They will, however, look like the typical pre-21 framework AlertDialogs once MaterialButton supports android:background.
PiperOrigin-RevId: 295263002
2020-02-18 16:44:15 -05:00
cketcham
1bc4f60d81 Handle single tap for Slider in scrollable container
PiperOrigin-RevId: 295160709
2020-02-14 17:13:07 -05:00
haodong
5a99d6ac92 [Math] Add floorMod functions in MathUtils.
PiperOrigin-RevId: 295158443
2020-02-14 12:15:01 -05:00
marianomartin
934c407d7d Add a setter for maxInlineActionWidth
PiperOrigin-RevId: 295033109
2020-02-14 11:30:12 -05:00
onats1
89e0e5628e [Date Picker] Created a date validator class to handle resctrictions from previous dates until the current date.
Resolves https://github.com/material-components/material-components-android/pull/946

GIT_ORIGIN_REV_ID=442df27d6bd2d7c01de471328ba3a44eff82660d

Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 294982034
2020-02-13 13:57:28 -08:00
hunterstich
70f447d77e Fix gradle build and lint errors for transition package.
PiperOrigin-RevId: 294971841
2020-02-13 13:55:08 -08:00
hunterstich
a3a9793fb1 Fix container transform crash on API 21 and 22 due to path unioning.
PiperOrigin-RevId: 294924927
2020-02-13 13:49:21 -08:00
marianomartin
d7fbdba796 Automated g4 rollback of changelist 294487710
PiperOrigin-RevId: 294746271
2020-02-13 10:24:47 -05:00
cketcham
767915868d Fix Slider rounding error caused by floats
PiperOrigin-RevId: 294686381
2020-02-13 10:24:03 -05:00
cketcham
340cdea60d Add a11y support to Slider
This includes support for Range slider when there is more than one thumb. Each thumb can receive focus and behaves as if it was it's own SeekBar.

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

PiperOrigin-RevId: 294681995
2020-02-13 10:23:18 -05:00
marianomartin
56e4c61057 Remove obsolete TODO from Extended Floating Action Button style
PiperOrigin-RevId: 294680868
2020-02-13 10:22:40 -05:00
klblk
a67932de13 [MaterialDatePicker] Change to standalone month format
Resolves https://github.com/material-components/material-components-android/pull/1000

GIT_ORIGIN_REV_ID=24a02c2ce3daa40add8f1ec3bbd6860fcc4b6be1
PiperOrigin-RevId: 294516910
2020-02-12 10:13:32 -05:00
marianomartin
57beb64ddf Remove stub from Extended Floating Action Button
PiperOrigin-RevId: 294487710
2020-02-11 16:14:40 -05:00
johan12345
d7554adce3 Add catalog demo for CollapsingToolbarLayout with mutliple lines
Resolves https://github.com/material-components/material-components-android/pull/413
Resolves https://github.com/material-components/material-components-android/issues/6

PiperOrigin-RevId: 294481434
2020-02-11 14:36:03 -05:00
isabellekim
4abe78eec6 Add attributes for dialogs that should be public to public.xml
PiperOrigin-RevId: 294473825
2020-02-11 14:35:34 -05:00
marianomartin
739a2b03f6 Add popupMenuBackground to public.xml
PiperOrigin-RevId: 294470436
2020-02-11 14:35:08 -05:00
isabellekim
55200c3a8f Fix ExtendedFloatingActionButton to be WRAP_CONTENT when extended so that it will resizes on setText().
Resolves https://github.com/material-components/material-components-android/issues/449

PiperOrigin-RevId: 294261399
2020-02-10 17:29:35 -05:00
marianomartin
83e4e47d22 Initial support for Multiline CollapsingToolbarLayout
This cl adds the capabilities to set multiline on CollapsingToolbarLayout while keeping single line toolbars unchanged.

Co-Authored-By: johan12345 <johan.forstner@gmail.com>
PiperOrigin-RevId: 294256516
2020-02-10 14:32:15 -05:00
haodong
d6b2da8b50 [DatePicker] Added workaround for Samsung and LG devices to show URL keyboard when enter date in text.
PiperOrigin-RevId: 294219052
2020-02-10 14:31:45 -05:00
cketcham
9de1c97979 Add RTL support for Slider
PiperOrigin-RevId: 294114681
2020-02-10 10:01:30 -05:00
afohrman
594e5cd446 Add missing attributes to button res/public.xml.
Adds the following attributes:
-iconGravity
-checkedButton

This commit also:
- deletes iconTintMode, which is not declared in the button package and does not need to be included in the list of attributes in public.xml
- rearranges the ordering of the attributes for clarity

PiperOrigin-RevId: 294018694
2020-02-10 10:00:47 -05:00
Material Design Team
5a396edbb6 Always use padding in drawable state so that it can survive newDrawable()
Previously padding was set to both drawableState.padding and this.padding, but only retrieved from this.padding, which results in lost padding after newDrawable() and makes drawableState.padding useless.

PiperOrigin-RevId: 293878104
2020-02-10 09:59:00 -05:00
connieshi
def1b55632 Add explanation for why ?attr/chipSurfaceColor is not exposed publicly.
PiperOrigin-RevId: 293869990
2020-02-10 09:58:23 -05:00
cketcham
b467d65bc4 Add attributes from AppBar to public.xml
PiperOrigin-RevId: 293847895
2020-02-10 09:57:20 -05:00
cketcham
2cb8909027 Add attributes from BottomSheetBehavior to public.xml
PiperOrigin-RevId: 293841078
2020-02-10 09:56:42 -05:00
isabellekim
497cb97ef0 Expose common attributes that should be public.
PiperOrigin-RevId: 293840542
2020-02-10 09:56:09 -05:00
isabellekim
1f9de68025 [All] Add support for materialThemeOverlay
Resolves https://github.com/material-components/material-components-android/pull/948

GIT_ORIGIN_REV_ID=5a8bb35a56c1b813df47d964de8482a26e0da66d
PiperOrigin-RevId: 293839172
2020-02-10 09:55:19 -05:00
connieshi
4ffc1efebc Add comment explaining why certain attributes should remain private.
PiperOrigin-RevId: 293816051
2020-02-10 09:34:59 -05:00
isabellekim
1cdd0428ed Add public attributes to public.xml and add setter & getter for cardForegroundColor to Card.
PiperOrigin-RevId: 293675127
2020-02-07 10:34:25 -05:00
isabellekim
e7b729523b Add public attributes to public.xml for bottom navigation and FAB.
PiperOrigin-RevId: 293649570
2020-02-07 10:30:17 -05:00
haodong
5d3de5e34c Adding Color utility method.
PiperOrigin-RevId: 293629980
2020-02-07 10:29:21 -05:00
Guillermo Mazzola
7ef37a05dd [BottomSheetBehavior] Resolving behavior_expandedOffset as a dimen
Using an integer will remain allowed, however using a dimen will be preferred.

Resolves https://github.com/material-components/material-components-android/pull/836

GIT_ORIGIN_REV_ID=4a02d95855569a076e5ee7a682ea5e8c9988eab9
PiperOrigin-RevId: 293623878
2020-02-06 17:25:57 -05:00
connieshi
cd7d38854a Add private attributes that should be public to public.xml.
PiperOrigin-RevId: 293608989
2020-02-06 17:25:29 -05:00
cketcham
5076e0ac30 Prevent Slider from intercepting the the back key
This prevents Slider from intercepting the back key when you'd expect the activity to handle it.

PiperOrigin-RevId: 293605504
2020-02-06 17:24:58 -05:00
marianomartin
50b020aec7 Resubmit Modify CollapsingTextHelper to use a StaticLayout instead of canvas.drawText.
PiperOrigin-RevId: 293443677
2020-02-05 17:30:20 -05:00
vipulasri
c859bf556c [TabLayout] added smooth scroll functionality in TabLayoutMediator
Resolves https://github.com/material-components/material-components-android/pull/951

GIT_ORIGIN_REV_ID=23c7ef34682c2eb55fcb18db677c54f006e3cb15
PiperOrigin-RevId: 293397927
2020-02-05 17:29:43 -05:00
connieshi
625a5d6da1 Add private attributes that should be public to public.xml.
PiperOrigin-RevId: 293279871
2020-02-05 17:29:07 -05:00
marianomartin
30ec731a28 Remove experimental annotation from ShapeableImageView
PiperOrigin-RevId: 293251962
2020-02-05 17:28:32 -05:00
cketcham
246b56faef Prevent the FAB from being moved up when anchored to BottomAppBar
PiperOrigin-RevId: 293211000
2020-02-04 17:33:39 -05:00
marianomartin
1673924a23 Automated g4 rollback of changelist 293151496
PiperOrigin-RevId: 293184366
2020-02-04 17:33:05 -05:00
marianomartin
7822b6d05e Modify CollapsingTextHelper to use a StaticLayout instead of canvas.drawText.
This will allow to support multiple lines.

PiperOrigin-RevId: 293151496
2020-02-04 17:32:07 -05:00
cketcham
4c99e53db4 Add support for D pad and keyboard control for Slider
This adds support for selecting an active thumb as well as changing the value of the currently selected thumb.

https://github.com/material-components/material-components-android/issues/827

PiperOrigin-RevId: 293008598
2020-02-04 17:30:25 -05:00