95 Commits

Author SHA1 Message Date
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
gauthams
26fb53756c Update contentDescription for icon-only buttons in button demo
PiperOrigin-RevId: 223590648
2018-12-06 11:45:41 -05:00
connieshi
b8f05271a1 Fix crash in chip group demo due to ClassCastException.
PiperOrigin-RevId: 223514614
2018-12-06 11:40:54 -05:00
connieshi
7158fe2b7f In the text field demo, when the "show error" button is pressed, do not change focus if the focus is already on a text field with an error.
PiperOrigin-RevId: 223513021
2018-12-06 11:40:34 -05:00
Material Design Team
0ccc9c0f24 Automated g4 rollback of changelist 223388533
PiperOrigin-RevId: 223398975
2018-12-06 11:38:41 -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
connieshi
e190118c6f Update the chip group demo in the catalog app to use switchmaterial.
PiperOrigin-RevId: 223339622
2018-12-06 11:34:39 -05:00
connieshi
9e05f52c5c Refactor R.layout.cat_bottom_navs_label_visibility_controls to that contents are not cut off horizontally when display size or text size is set to large.
All controls have been moved out of the 2 column GridLayout and moved into a LinearLayout that adjusts according to the screen width.

PiperOrigin-RevId: 223232173
2018-12-06 11:34:11 -05:00
afohrman
f4aae4cd3c Use string resources for slider labels.
Also organize the strings a bit.

PiperOrigin-RevId: 223226182
2018-12-06 11:33:42 -05:00
connieshi
0d2c04cf36 In the textfield demos that demonstrate showing an error when a button is pressed, request focus on the first text field to show an error so screen reader users can easily find the error.
PiperOrigin-RevId: 223181665
2018-12-06 11:33:05 -05:00
connieshi
ac9d38b4b5 Update controllable Tabs demo to improve accessibility:
- Increased the dropdown height to 48dp
       - Updated switch to using switchmaterial

PiperOrigin-RevId: 222826404
2018-12-06 11:22:30 -05:00
connieshi
9b1f8478e5 Remove chipTouchTargetDelegate attribute.
PiperOrigin-RevId: 222298640
2018-12-06 11:16:48 -05:00
connieshi
feb93d25de Show snackbar (to provide feedback) when non-checkable chips are clicked.
PiperOrigin-RevId: 222275988
2018-12-06 11:16:25 -05:00
connieshi
76d7dbac25 Update the chip demo in the catalog app to use switchmaterial.
PiperOrigin-RevId: 222243442
2018-12-06 11:14:44 -05:00
leticiars
e97d669ca9 Fixing spacing around text fields on demo.
PiperOrigin-RevId: 222137256
2018-12-06 11:14:07 -05:00
gauthams
3300bd41a7 Change GridLayout in buttons demo to collapse to 1 column if buttons are too wide for the screen
PiperOrigin-RevId: 222128018
2018-12-06 11:13:09 -05:00
leticiars
7fd9a0486b Fixing runtime crash in text fields demo.
PiperOrigin-RevId: 222080797
2018-12-06 11:11:48 -05:00
marianomartin
415e6ea003 Add a cut corners top edge treatment in the BAB demo
PiperOrigin-RevId: 222071849
2018-11-26 07:55:59 -05:00
marianomartin
2e011d8b3f Close button in gm transformation demo
PiperOrigin-RevId: 221831111
2018-11-26 07:48:19 -05:00
gauthams
a87e523853 Add contentDescription to icon-only buttons in button demo
PiperOrigin-RevId: 221782917
2018-11-16 12:22:11 -05:00
marianomartin
1ddd4a8afc Automated g4 rollback of changelist 221455586
PiperOrigin-RevId: 221622429
2018-11-16 11:59:09 -05:00
connieshi
37b3285ea9 Add chips in recyclerview demo.
PiperOrigin-RevId: 221490657
2018-11-16 11:57:24 -05:00
marianomartin
f05d18f450 [a11y] send event when hide buttons fab is tapped
PiperOrigin-RevId: 221455586
2018-11-16 11:55:27 -05:00
marianomartin
50f3d0be15 Add toggle to set default start Demo
PiperOrigin-RevId: 221439442
2018-11-16 11:51:45 -05:00
dniz
0bef80a76b Update colors for DayNight themes
PiperOrigin-RevId: 221137528
2018-11-16 11:26:51 -05:00
marianomartin
b0d6827e91 Update comment about lib only api usage
PiperOrigin-RevId: 220520792
2018-11-16 11:01:35 -05:00
marianomartin
a121bc0740 Improve menus catalog demo
PiperOrigin-RevId: 220498523
2018-11-16 10:59:47 -05:00
connieshi
60d1dfac70 Update chipDrawable to be wrapped by InsetDrawable (if needed) to ensure it meets Android's recommended minimum touch target size.
Update demo catalog app.

PiperOrigin-RevId: 220370443
2018-11-16 10:57:34 -05:00
isabellekim
26109ae837 Update MaterialCardView to use MaterialShapeDrawable, changing stroke to respect extra padding that CardView adds for shadows.
Also adds clickable Card to the catalog

PiperOrigin-RevId: 220343650
2018-11-16 10:53:15 -05:00
Material Design Team
00c3c668a8 Migrate from AndroidSupportInjectionModule to AndroidInjectionModule.
PiperOrigin-RevId: 220291186
2018-11-16 10:48:53 -05:00
ldjesper
1becd650ca MDC Catalog Icon Updates
PiperOrigin-RevId: 219307796
2018-11-01 16:10:13 -07:00
dniz
c3d6042412 Remove default Theme Switcher color options in favor of Reset option (helps for dark theme)
PiperOrigin-RevId: 219160833
2018-11-01 16:06:51 -07:00
dniz
613edaa025 Update default Catalog theme to use black for on primary color and Dark Catalog theme to use baseline MDC colors
Also update default Catalog Toolbar style to Primary

PiperOrigin-RevId: 218861912
2018-10-28 21:43:19 -04:00
marianomartin
2c551bb52e Add button to rotate FABs on catalog demo
PiperOrigin-RevId: 218722231
2018-10-28 21:41:20 -04:00
dniz
36722a874e Swap Catalog primary and secondary colors and remove Theme.Catalog.Swapped
PiperOrigin-RevId: 218684599
2018-10-28 21:40:33 -04:00
dniz
985357da26 Update text color of Catalog WIP label and buttons/tabs labels (looks better in dark theme)
PiperOrigin-RevId: 218417752
2018-10-28 19:10:46 -04:00
dniz
aded35a7a8 Prepare Catalog for Dark Theme update
PiperOrigin-RevId: 218341038
2018-10-28 18:34:05 -04:00
ldjesper
5258d3ddc1 Update Dialog Title styling to material design specs
PiperOrigin-RevId: 217565758
2018-10-28 18:27:27 -04:00
dniz
6e6692eb57 Update ActionBar to use new color system
PiperOrigin-RevId: 217321401
2018-10-28 18:14:54 -04:00
ldjesper
515e84775a Automated g4 rollback of changelist 216865347
PiperOrigin-RevId: 216874169
2018-10-28 18:11:59 -04:00
ldjesper
8942b12fff Dialog Title Styling
PiperOrigin-RevId: 216865347
2018-10-28 17:58:20 -04:00
ldjesper
d06e3cc9f2 Short text button dialog catalog demo
PiperOrigin-RevId: 216360151
2018-10-11 18:14:49 -04:00
marianomartin
b5486196e6 Use theme attributes to update menus style
PiperOrigin-RevId: 215918907
2018-10-11 18:05:28 -04:00
Material Design Team
d509eb90a6 Automated g4 rollback of changelist 215569147
PiperOrigin-RevId: 215602434
2018-10-11 18:03:54 -04:00
marianomartin
0e7f80b42b Use theme attributes to update menus style
PiperOrigin-RevId: 215569147
2018-10-11 18:00:51 -04:00
isabellekim
682f65d488 Putting bottom navigation demo controls in a ScrollView so they don't overlap with bottom navigation on smaller devices for demos with more controls.
PiperOrigin-RevId: 214821009
2018-09-28 16:58:11 -04:00
melaniegoetz
318da234b8 Add base elevation demo to catalog
PiperOrigin-RevId: 214300342
2018-09-28 16:27:25 -04:00
dniz
868e80ed6f Add support for anchoring Snackbars to Views so they can be placed above
navigational elements and FABs

This commit also disables the pushing up of FABs when an anchor view is set

PiperOrigin-RevId: 214287486
2018-09-28 16:24:01 -04:00
ldjesper
864b907e79 Dialog Demos
PiperOrigin-RevId: 213879982
2018-09-28 16:13:59 -04:00
melaniegoetz
69eebe785f TabLayout functionality to set label visibility
PiperOrigin-RevId: 213554775
2018-09-28 14:54:44 -04:00