591 Commits

Author SHA1 Message Date
isabellekim
0055c665af Remember the selected item when adding items to BottomNavigation's menu
PiperOrigin-RevId: 227140261
2019-01-10 15:53:25 -05:00
isabellekim
bd994a109a Update icon tint alpha for colored BottomNav to be 0.6 per spec.
PiperOrigin-RevId: 227056603
2019-01-10 15:50:41 -05:00
connieshi
6c70169e8d Update chipgroup spacing attribute documentation to clarify that it doesn't apply to hidden chips.
PiperOrigin-RevId: 226498090
2018-12-21 16:29:20 -05:00
gauthams
11ae93ddc1 Refactor custom view inflation logic into shouldInflateAppCompatButton method, and make it protected rather than private.
PiperOrigin-RevId: 226256921
2018-12-21 11:34:51 -05:00
gauthams
b07eb82f31 Fix MaterialButton inflation issue for API 24 and 25
PiperOrigin-RevId: 226235558
2018-12-21 11:33:46 -05:00
ldjesper
46ce278ebb Add Dialogs to ShapeThemeingDemo and fix Overlay ordering
PiperOrigin-RevId: 226213645
2018-12-21 11:32:29 -05:00
ldjesper
52c5e72d81 Remove top level dialog attributes in favor of materialAlertDialogTheme
PiperOrigin-RevId: 226210511
2018-12-21 11:30:35 -05:00
marianomartin
6a7b1b2ce2 Mutate background drawable before changing tint
PiperOrigin-RevId: 226181425
2018-12-21 11:25:39 -05:00
connieshi
50d133ef03 Update chip to support dynamically changing texts in RTL layout.
PiperOrigin-RevId: 226174458
2018-12-21 11:24:38 -05:00
connieshi
3d23dbeac2 Fix logic to delegate text rendering to ChipDrawable instead of Chip.
Delegating text rendering to ChipDrawable breaks the api contract so this is for testing purposes only.

PiperOrigin-RevId: 226001080
2018-12-21 11:15:02 -05:00
Material Design Team
56c22ed0f7 Migrate Cardview android support libraries to androidx.
PiperOrigin-RevId: 225886550
2018-12-21 11:13:36 -05:00
marianomartin
055a791ae2 Support materialThemeOverlay on FloatingActionButton
PiperOrigin-RevId: 225857520
2018-12-21 11:09:03 -05:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
Material Design Team
649828b6df Automated g4 rollback of changelist 225407398
PiperOrigin-RevId: 225418035
2018-12-21 10:47:43 -05:00
ldjesper
198b614e21 Remove new top level attributes in favor of scoped materialAlertDialogTheme
PiperOrigin-RevId: 225407398
2018-12-21 10:43:26 -05:00
marianomartin
a083017520 Add backgroundTint support to BottomNav
PiperOrigin-RevId: 225384496
2018-12-21 10:41:14 -05:00
melaniegoetz
4cf6ece413 Automated g4 rollback of changelist 225064028
PiperOrigin-RevId: 225088658
2018-12-12 16:24:24 -05:00
melaniegoetz
220456295b Fix expanded state appearance to match spec and ShapeAppearanceModel reference in BottomSheetBehavior
PiperOrigin-RevId: 225064028
2018-12-12 16:24:02 -05:00
melaniegoetz
403973284e Automated g4 rollback of changelist 224522042
PiperOrigin-RevId: 225060461
2018-12-12 16:23:30 -05:00
gauthams
a48a9af060 Shape system changes for MaterialButton
PiperOrigin-RevId: 225050954
2018-12-12 16:22:46 -05:00
marianomartin
55cfdb0480 Invalidate BorderDrawable when changing shapeAppearance
PiperOrigin-RevId: 224826056
2018-12-12 16:21:08 -05:00
melaniegoetz
73f7681101 Automated g4 rollback of changelist 224370498
PiperOrigin-RevId: 224522042
2018-12-10 14:15:46 -05:00
melaniegoetz
16822d6344 Shape Theming for BottomSheet
PiperOrigin-RevId: 224370498
2018-12-10 14:14:05 -05:00
isabellekim
fa528c4403 Remove padding from large text for BottomNavigation to match small text. Guidance is to use short text in bottom navigation so this should not have a visual effect since the width of each item is equally divided with a max width (in other words, the padding doesn't affect the width). However, when system font size is increased, even short text can be cut off by the padding and this gives a little more room for the text.
PiperOrigin-RevId: 224345637
2018-12-06 12:07:07 -05:00
marianomartin
9837721733 Replace circular border drawable with a drawable for any shape.
PiperOrigin-RevId: 224205053
2018-12-06 12:05:36 -05:00
marianomartin
cf69538c9c Refactor path logic out of MSD
PiperOrigin-RevId: 224182175
2018-12-06 12:05:06 -05:00
marianomartin
61f426afca Remove (get/set)PaintFlags from MSD
PiperOrigin-RevId: 224162294
2018-12-06 12:04:30 -05:00
cketcham
d206a5c915 Set status bar to the correct color in the light theme
PiperOrigin-RevId: 224152065
2018-12-06 12:03:53 -05:00
leticiars
3bde8fa13a Fixing label, helper and counter texts contrast issues in MDC text fields.
PiperOrigin-RevId: 224151234
2018-12-06 12:03:33 -05:00
ldjesper
bca2bd0e00 Creates a new builder for Alert Dialog's that supports the Material Shape system.
PiperOrigin-RevId: 223985990
2018-12-06 12:03:16 -05:00
cketcham
7a69df4abf Add transition feedback for accessibility when the BottomDrawer opens or closes
PiperOrigin-RevId: 223977494
2018-12-06 12:02:12 -05:00
afohrman
530a7a8f9e Automated g4 rollback of changelist 223552187
PiperOrigin-RevId: 223870917
2018-12-06 11:47:52 -05:00
cketcham
7a2c2823ee Only recalculate the path if it has changed
PiperOrigin-RevId: 223826749
2018-12-06 11:47:06 -05:00
marianomartin
d75fb6513c Fix constant state in MSD
PiperOrigin-RevId: 223802087
2018-12-06 11:46:29 -05:00
afohrman
cf5e35c624 Turn off theme enforcement for ShapeAppearanceModel.
ShapeAppearanceModel doesn't support theme attributes, so it doesn't make sense to check for our theme in the style reference when creating it.

PiperOrigin-RevId: 223796338
2018-12-06 11:46:00 -05:00
Material Design Team
f152b75e1a Automated g4 rollback of changelist 223558824
PiperOrigin-RevId: 223564801
2018-12-06 11:43:02 -05:00
marianomartin
c75482b473 Fix constant state in MSD
PiperOrigin-RevId: 223558824
2018-12-06 11:42:42 -05:00
afohrman
671f785662 Automated g4 rollback of changelist 223530191
PiperOrigin-RevId: 223552187
2018-12-06 11:42:22 -05:00
afohrman
ead212fbff Support shape theming in TextInputLayout.
PiperOrigin-RevId: 223530191
2018-12-06 11:41:19 -05:00
Material Design Team
191bf6c971 Export getActionMenuViewTranslationX() to make subclass be available to customize position of menu view.
PiperOrigin-RevId: 223468200
2018-12-06 11:40:11 -05:00
cketcham
cce3b93a9d Remove binary incompatibility between 27.1.1 and 28.0.0 for TabLayout
PiperOrigin-RevId: 223444074
2018-12-06 11:39:28 -05:00
cketcham
3ad01eceda Ignore empty header and dividers when counting the number of items in NavigationView for accessibility
PiperOrigin-RevId: 223407274
2018-12-06 11:39:08 -05:00
Material Design Team
0ccc9c0f24 Automated g4 rollback of changelist 223388533
PiperOrigin-RevId: 223398975
2018-12-06 11:38:41 -05:00
marianomartin
bf024ebed9 Remove stroke shader from MSD
PiperOrigin-RevId: 223397575
2018-12-06 11:38:24 -05:00
ldjesper
e5ad8ffe43 Creates a new builder for Alert Dialog's that supports the Material Shape system.
PiperOrigin-RevId: 223388533
2018-12-06 11:35:10 -05:00
isabellekim
14f41bd14d Update MaterialButton to use a themed context in order to get attributes defined on the materialThemeOverlay.
PiperOrigin-RevId: 223218118
2018-12-06 11:33:25 -05:00
leticiars
b769bac91a Increasing padding of Dense outlined text field style in order for the minimum touch target to be maintained when the default text appearance gets updated.
PiperOrigin-RevId: 223063198
2018-12-06 11:32:36 -05:00
marianomartin
3bf777db8a Implement Mutate in MaterialShapeDrawable
PiperOrigin-RevId: 223059565
2018-12-06 11:31:50 -05:00
isabellekim
71891af8df Add shape appearance attributes to MaterialCardView. This maintains current behavior of stroke width / content padding.
When content can be clipped to the shape (round rect, Lollipop+), the content will be clipped to the interior of the stroke.

When preventCornerOverlap is true, if the content cannot be clipped, extra padding is added such that the entirety of the content is inside the stroke. Any contentPadding is additional to this padding. In order to keep centered content centered, the same amount of padding is added in each direction when preventCornerOverlap is true.

PiperOrigin-RevId: 223045615
2018-12-06 11:25:27 -05:00
cketcham
95cf55f04b Remove option to use paint shadow
PiperOrigin-RevId: 223017988
2018-12-06 11:25:01 -05:00