710 Commits

Author SHA1 Message Date
Material Design Team
1cc0a2b4e4 Automated g4 rollback of changelist 236879782
PiperOrigin-RevId: 236896313
2019-03-08 10:00:53 -05:00
ldjesper
8c9f9d5e01 Date Range Picker
PiperOrigin-RevId: 236879782
2019-03-08 09:59:54 -05:00
marianomartin
01874ad4e9 Change setElevation in MSD to use default offset
PiperOrigin-RevId: 236858323
2019-03-08 09:58:58 -05:00
marianomartin
77ac869283 Add single selection attr to resources package
PiperOrigin-RevId: 236851563
2019-03-08 09:58:19 -05:00
gauthams
cad9d7d5f5 Add MaterialButtonToggleGroup
PiperOrigin-RevId: 236745008
2019-03-08 09:56:58 -05:00
isabellekim
6f965da141 Move content padding to be inside the intermediate FrameLayout in MaterialCardView. This allows clipping to the inside of the stroke as the FrameLayout bounds and the stroke bounds will be the same.
PiperOrigin-RevId: 236646347
2019-03-08 09:55:07 -05:00
leticiars
4690a8893d Fixing end icon tint always being overriden by old password toggle tint.
PiperOrigin-RevId: 236645688
2019-03-08 09:51:23 -05:00
gauthams
e1c8b13064 Add package-private methods to set shape appearance on MaterialButton
PiperOrigin-RevId: 236355481
2019-03-08 09:50:08 -05:00
gauthams
1deb4cc1db Add state_checkable to MaterialCardView drawable state, if isCheckable()
PiperOrigin-RevId: 236116032
2019-03-08 09:46:49 -05:00
gauthams
bc33a8042f Update MaterialButton checked colors
PiperOrigin-RevId: 235987525
2019-03-08 09:42:40 -05:00
marianomartin
fd4d66227d Remove background from MaterialComponents Fab style
PiperOrigin-RevId: 235983820
2019-03-08 09:41:58 -05:00
connieshi
93c5fc737b Add TextDrawableHelper, a class that helps drawables support drawing text.
PiperOrigin-RevId: 235979500
2019-03-08 09:41:15 -05:00
marianomartin
68357af199 [MaterialCardView] Fix clipping logic to inset by stroke
PiperOrigin-RevId: 235979330
2019-03-08 09:40:38 -05:00
connieshi
3bd6fd4688 Composite chip surface and background color to reduce ovedraw.
PiperOrigin-RevId: 235979248
2019-03-08 09:39:53 -05:00
dniz
c0de00cdac Fix MaterialShapeDrawable bug that causes compat shadows to be drawn for round rects on lollipop+
PiperOrigin-RevId: 235786787
2019-02-27 18:00:21 -05:00
leticiars
168a468f29 Refactoring TextInputLayout's end icon initialization to always have the end icon view ready. Also refactoring OnEndIconInitializedListener to OnEditTextAttached listener.
PiperOrigin-RevId: 235781672
2019-02-27 17:59:10 -05:00
gauthams
1db449c897 Refactor dpToPx method into ViewUtils
PiperOrigin-RevId: 235243747
2019-02-24 14:38:37 -05:00
isabellekim
6c3b51022e Adds itemRippleColor attribute to the BottomNavigationView as an alternative for itemBackground to support using ripples based on theme attributes pre-23. And update BottomNavigationView ripples to match TabLayout ripples.
PiperOrigin-RevId: 235237859
2019-02-24 14:37:45 -05:00
leticiars
b7f520d0f6 Fix padding of TextInputEditText when an icon is present.
PiperOrigin-RevId: 235236593
2019-02-24 14:36:44 -05:00
isabellekim
db94f66f86 Updating MDC library build files to add testing of each target.
PiperOrigin-RevId: 235203056
2019-02-24 14:35:32 -05:00
Material Design Team
3745cc5960 There is no need to use deprecated Space class from support library. Space was added in API 14 in platform and hasn't changed since.
PiperOrigin-RevId: 235055577
2019-02-24 14:33:42 -05:00
cketcham
1f6314cc2f Fix menu position bug in BottomAppBar
Fixes bug where the MenuView would not be positioned correctly if the first call to replaceMenu() happened after the view was laid out.

PiperOrigin-RevId: 235046970
2019-02-24 14:33:02 -05:00
gauthams
f354ff9df0 Add missing a11y info to MaterialButton
PiperOrigin-RevId: 235042404
2019-02-24 14:32:18 -05:00
isabellekim
3e6219ceb2 Rolling forward using colorControlActivated instead of colorSecondary for the activated color of MaterialCheckbox, MaterialRadioButton, and SwitchMaterial.
By default, colorControlActivated is set to colorAccent. Non-bridge themes set colorAccent to colorSecondary.

PiperOrigin-RevId: 235041384
2019-02-24 14:31:35 -05:00
connieshi
59bc6c3ebe Add boilerplate code (getters, setters, override abstract methods) define custom attributes for new custom drawable, BadgeDrawable.
PiperOrigin-RevId: 235037646
2019-02-24 14:30:54 -05:00
marianomartin
7087f8e5d7 Update MaterialCardView javadocs
PiperOrigin-RevId: 235026790
2019-02-24 14:29:55 -05:00
isabellekim
8ffff9c658 Automated g4 rollback of changelist 234987118
PiperOrigin-RevId: 235019920
2019-02-24 14:29:13 -05:00
isabellekim
7b79678f9b Use colorControlActivated instead of colorSecondary for the activated color of MaterialCheckbox, MaterialRadioButton, and SwitchMaterial.
By default, colorControlActivated is set to colorAccent. Non-bridge themes set colorAccent to colorSecondary.

PiperOrigin-RevId: 234987118
2019-02-24 14:27:59 -05:00
dniz
fdbd553fc4 Set ActionMode background in Primary and Surface theme overlays
PiperOrigin-RevId: 234791713
2019-02-24 14:25:47 -05:00
Material Design Team
76a9b23443 Add SCROLL_FLAG_NO_SCROLL flag for AppBarLayout.LayoutParams
PiperOrigin-RevId: 234683507
2019-02-24 14:25:13 -05:00
leticiars
56859415e8 Adding support for a custom end icon for the TextInputLayout.
A user-specified icon can now be set via app:endIconMode="custom" and attributes app:endIconDrawable and app:endIconContentDescription. It is also possible to set a custom OnClickListener via TextInputLayout's end icon API.

PiperOrigin-RevId: 234671237
2019-02-24 14:23:57 -05:00
connieshi
b641bf706f Avoid infinite loop in Chip#SetLayoutDirection.
PiperOrigin-RevId: 234604880
2019-02-24 14:22:05 -05:00
marianomartin
8449d0e7dc Change opacity of dragged state in cards
PiperOrigin-RevId: 234603183
2019-02-24 14:21:10 -05:00
cketcham
5287b8eb45 Add bridge themes for Dialog
PiperOrigin-RevId: 234216058
2019-02-24 14:20:27 -05:00
gauthams
441877f7cc Add checked state to MaterialButton
PiperOrigin-RevId: 234214200
2019-02-24 14:19:05 -05:00
marianomartin
8dcee7dc09 Resubmit make CircularRevealCardView extend MaterialCardView
PiperOrigin-RevId: 234198980
2019-02-24 14:17:29 -05:00
marianomartin
991927fd8f Add an attribute for materialButtonOutlinedStyle
It's a common use case to want to mix up buttons with outlined buttons and an attribute facilitates reusing layouts with different themes.

PiperOrigin-RevId: 234189427
2019-02-24 14:16:47 -05:00
cketcham
76727ecc84 Add documentation to addTransformationListener() and removeTransformationListener()
PiperOrigin-RevId: 234174194
2019-02-24 14:16:07 -05:00
leticiars
4882a4f131 Adding clear text button end icon to TextInputLayout.
PiperOrigin-RevId: 234141273
2019-02-24 14:15:28 -05:00
marianomartin
f59949a297 Fix card ripple bug
PiperOrigin-RevId: 233960735
2019-02-24 14:14:49 -05:00
gauthams
3ad575dad1 Enable drawing surface-color stroke under regular stroke in MaterialButton
PiperOrigin-RevId: 233860616
2019-02-24 14:14:07 -05:00
cketcham
7c72808f96 Fix FAB vertical offset bug when BAB is hidden
Because the FAB is anchored to the top of the BAB, the animation which hides the BAB also moves down the FAB. This removes the extra animation for the FAB. Because the two animations were running at the same time, the distance between the FAB and the BAB was being calculated incorrectly. This was causing the BAB to think the FAB was higher than it was which resulted in the cutout being drawn too high.

PiperOrigin-RevId: 233844627
2019-02-24 14:13:07 -05:00
gauthams
b7ff433981 Remove corner radius adjustment for MaterialButton
PiperOrigin-RevId: 233840694
2019-02-24 14:11:27 -05:00
marianomartin
87a9e5aba9 Shape sizes
Allow the ThemeSwitcher to change shape sizes also change it to a BottomSheetdialogFragment to see the content more clearly.

PiperOrigin-RevId: 233839250
2019-02-24 14:10:20 -05:00
dniz
679abf1218 Delete colorBackgroundFloating attr definition (it's defined in AppCompat and we don't use it anymore)
PiperOrigin-RevId: 233761304
2019-02-24 14:09:38 -05:00
leticiars
ee66029e6c Adding back padding to the text field end icon.
PiperOrigin-RevId: 233668308
2019-02-24 14:08:11 -05:00
leticiars
4c2e9c4004 Changing the TextInputLayout's password toggle implementation into a generic API implementation, which will allow for easier support of future end icons. Also deprecating current password toggle end icon methods and attributes.
This change doesn't include support of a custom end icon yet.

PiperOrigin-RevId: 233645798
2019-02-24 14:07:11 -05:00
marianomartin
5d52b81e49 Automated g4 rollback of changelist 233595839
PiperOrigin-RevId: 233607169
2019-02-24 14:05:53 -05:00
marianomartin
f42e4327bf make CircularRevealCardView extend MaterialCardView
PiperOrigin-RevId: 233595839
2019-02-24 14:05:03 -05:00
connieshi
6f73e58e9d Update chipSpacingHorizontal to 8dp to match spec.
PiperOrigin-RevId: 233487590
2019-02-24 13:58:42 -05:00