54 Commits

Author SHA1 Message Date
markwei
44dd1c6248 FAB readme.
Includes all the styles and attributes, two of the most critical pieces of information that readers come looking for.

PiperOrigin-RevId: 182858497
2018-01-25 18:20:12 -05:00
gauthams
abc9555ba5 Update button style names
PiperOrigin-RevId: 182446238
2018-01-25 18:11:50 -05:00
dcarlsson
8bd429a410 Add documentation for new MaterialCardView class
PiperOrigin-RevId: 181376638
2018-01-11 11:14:32 -05:00
travisc
0f29cbf042 Make widget its own package, change lib into a pure export package.
This also moves expandable and transformation into their own packages, as was originally intended (but they had resources, which was problematic at that time). CoordinatorLayout has been moved out of the typical source root to ease its later deletion (when it has made it into core-ui).

PiperOrigin-RevId: 180728823
2018-01-11 11:08:30 -05:00
afohrman
70da9a0659 Correct bottom nav code sample.
The code sample said to use the itemBackground attribute to set a color on the bottom nav, but that attribute is meant for the ripple and should not be overridden. Instead, clients should set android:background.

Also updated some color values to suggest colors that are closer to our guidance from spec.

PiperOrigin-RevId: 179946811
2018-01-11 11:01:12 -05:00
afohrman
8d5beaf1aa Update Bottom Nav documentation.
Correct guidance for ColorStateList creation. It now says to use state_checked instead of state_enabled.

Also includes some minor naming changes.

PiperOrigin-RevId: 179940335
2018-01-11 11:00:33 -05:00
dniz
3d8bfb14da Update Top App Bar docs to explain centered nested child
PiperOrigin-RevId: 179693853
2018-01-11 10:57:28 -05:00
travisc
ab2fec6da4 Move lib/src/ to lib/java/, and lib/jvmtests/javatests/ to lib/javatests/.
Bazel is happier if Java/Java test roots are named 'java' and 'javatests', and
this will mean that once we create a BUILD file for
android/support/design/{widget,internal}/ we'll no longer need a custom package
specified in our build (which tends to cause build problems that manifest quite
weirdly). This commit doesn't attempt to refactor the build at all yet, and is
just a pure move.

PiperOrigin-RevId: 178060739
2018-01-11 10:50:18 -05:00
dniz
4538e1ec69 Update text field documentaion for new functionality
PiperOrigin-RevId: 175669674
2017-11-14 15:07:16 -05:00
dniz
6dcf393120 Restore Catalog CTL expanded/collapsed state
PiperOrigin-RevId: 175329355
2017-11-14 15:06:27 -05:00
dniz
56f5cca116 Update TextInputLayout documentation to have notes about setting hint programmatically.
PiperOrigin-RevId: 173691474
2017-11-14 14:11:07 -05:00
gauthams
b69105e65a Update Material Button to use colorAccent rather than colorSecondary
PiperOrigin-RevId: 173618911
2017-11-14 14:10:51 -05:00
markwei
ce0aeddf4e Minor FAB documentation changes.
Use app:srcCompat instead of android:src for compat tinting support.

PiperOrigin-RevId: 171995188
2017-11-14 13:41:35 -05:00
gauthams
8c87bd00ab Add documentation for MaterialButton
PiperOrigin-RevId: 171613843
2017-11-14 13:36:42 -05:00
miguely
78fc02e266 Add high level documentation for BackLayerLayout.
Also fixes some missing stuff in javadoc.

PiperOrigin-RevId: 165744096
2017-09-21 14:32:47 -04:00
dcarlsson
c6fdfe669e Update headers for Android Material Components documentation to clarify page titles in relation to table of contents/index listings.
- Update page title for each piece of documentation to use the vernacular concept rather
than the class name for the component.
- Treat all instances of class names as proper nouns and mark them as code names.

PiperOrigin-RevId: 155705022
2017-05-11 12:57:38 -07:00
shyndman
01f8349ad1 Changes a number of links to be relative.
PiperOrigin-RevId: 155675090
2017-05-10 14:26:50 -07:00
afohrman
0a157b9975 Fix semi-broken link in TextInputLayout documentation.
The link to a method on Android's doc site had slashes in it, so it linked to the right documentation page, but not the specific method.

PiperOrigin-RevId: 155658544
2017-05-10 12:05:58 -07:00
shyndman
1689aa0f15 Changes a couple absolute paths to relative ones.
Required for the docsite link rewriting.

PiperOrigin-RevId: 155658527
2017-05-10 12:05:39 -07:00
shyndman
cc0114d65f Fixes a broken link.
PiperOrigin-RevId: 155649622
2017-05-10 11:09:41 -07:00
shyndman
0627e7d2f8 Updates the docsite index to resemble iOS's.
Uses the correct CSS classes, and names each of the steps. The last two steps were merged, and we added in a click handler.

PiperOrigin-RevId: 155561692
2017-05-09 17:19:49 -07:00
Material Design Team
56e263ff89 Replace "pixel-perfect" with "accurate" in a title.
PiperOrigin-RevId: 155557779
2017-05-09 17:18:26 -07:00
Material Design Team
17ded0f2e1 Update one-line component descriptions for consistency across the three MDC sites.
PiperOrigin-RevId: 155531666
2017-05-09 13:00:58 -07:00
shyndman
50cc15caa4 Adds screenshot mocks to the documentation of several components.
PiperOrigin-RevId: 155454192
2017-05-08 18:04:09 -07:00
shyndman
6eeec0aa8e Makes the contributing page available on the docsite.
Also removes a couple of TODOs.

PiperOrigin-RevId: 155451443
2017-05-08 17:43:56 -07:00
shyndman
8efb2c83f3 Corrects two links in the docsite index.
PiperOrigin-RevId: 155451426
2017-05-08 17:43:15 -07:00
shyndman
a14fe167cf Documentation cleanup.
I'm updating this CL as I go to fix all the issue we can find.

* Icon lists items now use correct icons, and are rearranged to be consistent.
* Removed HTML comments that were interfering with the Liquid templates.
* Added the benefits list to the docsite-index.
* Capitalized "Design" in Material Design.
* Spec links in icon list now use consistent labels.
* URLs, headings and page titles are now internally consistent within the platform.

PiperOrigin-RevId: 155445665
2017-05-08 16:48:53 -07:00
afohrman
694c28dff3 Add documentation for CollapsingToolbarLayout.
PiperOrigin-RevId: 155434267
2017-05-08 15:54:46 -07:00
afohrman
246d51ca6f Change formatting in XML example for TextInputLayout.
PiperOrigin-RevId: 155424482
2017-05-08 15:50:11 -07:00
travisc
ec1845fd32 Add CoordinatorLayout docs.
PiperOrigin-RevId: 155418527
2017-05-08 13:25:32 -07:00
afohrman
ef469ab452 Add documentation for TextInputLayout.
PiperOrigin-RevId: 155413910
2017-05-08 13:06:21 -07:00
travisc
d14fb1ac3d Add a file to display the docsite docs/ root.
PiperOrigin-RevId: 155403262
2017-05-08 12:43:29 -07:00
markwei
55c7891160 Documentation for FloatingActionButton.
PiperOrigin-RevId: 155391575
2017-05-08 12:33:46 -07:00
shyndman
68de27d5ec Adds a missing quote.
PiperOrigin-RevId: 155325964
2017-05-08 12:33:08 -07:00
travisc
656051b856 Add documentation for snackbars.
PiperOrigin-RevId: 155253839
2017-05-05 16:45:48 -07:00
markwei
67bb191837 Documentation cleanup.
PiperOrigin-RevId: 155238727
2017-05-05 16:43:39 -07:00
dcarlsson
16c5247562 Create documentation for TabLayout.
PiperOrigin-RevId: 155237136
2017-05-05 16:42:42 -07:00
markwei
e223cd734c Make titles, paths, and headers consistent.
Follows these rules:

Title is the Component Name as it appears in spec.
Justification: Formatting and display on small width screens.

Excerpt includes the CamelCase name of the java class.
Justification: This document is not a rehash of spec, it's a specific resource for Android devs. Title and excerpt are displayed in the same context.

Header is the CamelCase name of the java class.
Justification: Similar to excerpt. This is documentation on a specific Android widget.

Path is the dash-deliminated name of the java class.
Justification: Similar to header. This is documentation on a specific Android widget.
PiperOrigin-RevId: 155134932
2017-05-05 16:41:28 -07:00
miguely
3c426b74dc Fix naming for Bottom Sheet descriptions so they don't overflow on small viewports.
In order to solve overflow I have renamed the pages for BottomSheetBehavior and BottomSheetDialogFragment to "Bottom Sheets" and "Modal Bottom Sheets", reflecting their name in the spec (and usage) rather than the Android class name. This is consistent with how most other components's pages are named.

Furthermore I switched the excerpts to describe their use in the spec, and made that the first sentence in the intro for consistency.

PiperOrigin-RevId: 154995463
2017-05-05 16:37:50 -07:00
miguely
d329a40041 Fix path conflict between BottomSheetDialogFragment and BottomSheetBehavior's documentation.
PiperOrigin-RevId: 154989985
2017-05-05 16:37:20 -07:00
miguely
71db1ba735 Add documentation for BottomNavigationView
PiperOrigin-RevId: 154728409
2017-05-01 13:02:29 -07:00
miguely
58632069b1 Fix missing paragraph break in NavigationView documentation.
PiperOrigin-RevId: 154428667
2017-05-01 13:02:10 -07:00
miguely
a46bc02bbf Add documentation for the NavigationView.
PiperOrigin-RevId: 154425817
2017-05-01 13:01:01 -07:00
dcarlsson
3d88f35995 Add content for the docsite index page for Material Components Android.
PiperOrigin-RevId: 154354563
2017-04-26 17:29:07 -07:00
miguely
a63c3e3f8c Add documentation for the BottomSheetBehavior and BottomSheetDialogFragment.
PiperOrigin-RevId: 154322086
2017-04-26 12:57:01 -07:00
dcarlsson
b51d1a550b Add formatting to lists and list items for the AppBarLayout Material Design Component. This is used in the Material.io site.
PiperOrigin-RevId: 154206395
2017-04-26 12:25:45 -07:00
dcarlsson
3e12de059d Add Material Components documentation for AppBarLayout.
PiperOrigin-RevId: 153890863
2017-04-24 16:17:25 -07:00
dcarlsson
f37a53e9b6 Move component documentation under docs/ root.
PiperOrigin-RevId: 153763840
2017-04-24 16:14:48 -07:00
shyndman
574570c18d Introduces a root directory for component docs (/catalog).
PiperOrigin-RevId: 153757510
2017-04-21 14:00:48 -07:00
travisc
5f8bb4c8a1 Bump versions to 25.3.1.
This also bumps up the build tools + Android gradle plugin version, since these
were out of date, and removes a couple unused version values.

PiperOrigin-RevId: 153652782
2017-04-19 16:56:46 -07:00