87 Commits

Author SHA1 Message Date
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
melaniegoetz
baa8cb404d Elevation Demo Skeleton
PiperOrigin-RevId: 213061884
2018-09-28 14:43:11 -04:00
leticiars
42faf266f2 Adding textfield with leading icon demo to catalog.
PiperOrigin-RevId: 212473526
2018-09-14 10:56:21 -04:00
melaniegoetz
8f02385c84 Color subsystem updates for MDC-FAB
PiperOrigin-RevId: 212311827
2018-09-14 10:53:01 -04:00
gauthams
63a23c7ed1 Fix padding in RTL button demos
PiperOrigin-RevId: 211143213
2018-09-07 11:36:04 -04:00
connieshi
52ff5e1eb3 Add GM chipgroup style. Configure GM Catalog's chip group example to meet Android's recommended min touch target.
PiperOrigin-RevId: 210903536
2018-08-31 11:12:41 -04:00
dniz
6a1d85f08c Action Bar typography styling
PiperOrigin-RevId: 210604964
2018-08-29 11:31:51 -04:00
Material Design Team
56ee534de2 Creates and colors SwitchMaterial
PiperOrigin-RevId: 210574240
2018-08-28 16:44:02 -04:00
gauthams
14e9a020a1 Update TabLayout to use new color attributes
PiperOrigin-RevId: 210553777
2018-08-28 16:42:54 -04:00