238 Commits

Author SHA1 Message Date
ldjesper
c593b0a4a4 Update Pull Request guidance
PiperOrigin-RevId: 272056811
2019-10-01 04:09:51 -04:00
connieshi
195647b64e Update BottomNavigationView's documentation to refer to updated badge api.
Resolves https://github.com/material-components/material-components-android/issues/642

PiperOrigin-RevId: 272041881
2019-10-01 04:09:26 -04:00
Gabriele Mariotti
11ec97a846 [MaterialCardView] Updated documentation with the reference of the Androidx CardView
Resolves https://github.com/material-components/material-components-android/pull/574

GIT_ORIGIN_REV_ID=2656d3dee0f43ffa3d210711e7c468c9e4260280
PiperOrigin-RevId: 271606323
2019-09-27 14:06:59 -04:00
leticiars
18cb4b41e8 Updating text field documentation with prefix and suffix attributes
PiperOrigin-RevId: 271135855
2019-09-26 17:56:20 -04:00
connieshi
fd8678371a Add missing line breaks.
PiperOrigin-RevId: 270038867
2019-09-20 10:58:23 -04:00
connieshi
bfeef49653 Fix broken Attributes tables in Android chip page on material.io
Resolves: https://github.com/material-components/material-components/issues/68
PiperOrigin-RevId: 269844828
2019-09-18 14:25:16 -04:00
ldjesper
72d54c653c Change picker package to com.google.android.material.datepicker
PiperOrigin-RevId: 267004501
2019-09-04 18:07:59 -04:00
Gabriele Mariotti
d6973405b0 Updated MaterialTextView's documentation with the right package name of the component.
Resolves https://github.com/material-components/material-components-android/pull/541

GIT_ORIGIN_REV_ID=c9d1e674187c3fe23b7f209cbbbc8008e348592b
PiperOrigin-RevId: 266214327
2019-08-29 16:28:05 -04:00
dniz
5c9ed14607 Add ExtendedFloatingActionButton as a related concept in FloatingActionButton doc
PiperOrigin-RevId: 265917318
2019-08-29 14:56:55 -04:00
dniz
fe259b05f4 Add absolute elevation utilities to ElevationOverlayProvider
Resolves https://github.com/material-components/material-components-android/issues/483
Resolves https://github.com/material-components/material-components-android/issues/521

PiperOrigin-RevId: 265907637
2019-08-29 14:54:25 -04:00
connieshi
a381260819 Update get started guide to refer to Android 9 instead of Android P or P Preview.
PiperOrigin-RevId: 265447535
2019-08-29 11:24:16 -04:00
Material Design Team
322cbaae8a Automated g4 rollback of changelist 264230778
PiperOrigin-RevId: 264382083
2019-08-20 11:22:09 -04:00
Sébastien ROUIF
ade261dff0 [Documentation] Fix component override documentation
Resolves https://github.com/material-components/material-components-android/pull/393

GIT_ORIGIN_REV_ID=f8d03ad3acfc3bf77fa54b1a0b4367e8a90f9928
PiperOrigin-RevId: 264373259
2019-08-20 11:20:20 -04:00
afohrman
04955f6421 Add placeholder text functionality to TextInputLayout.
This is the initial implementation of placeholder text; it does not contain motion. At this stage, TextInputLayout sets the placeholder text visibility based on whether or not it should show.

PiperOrigin-RevId: 264230778
2019-08-20 11:19:02 -04:00
leticiars
631c320dea Adding error icon documentation.
PiperOrigin-RevId: 261348566
2019-08-02 15:58:54 -04:00
connieshi
e1248f8771 Update BadgeDrawable's documentation to include information about badge's gravity mode.
PiperOrigin-RevId: 259775790
2019-07-24 15:11:50 -04:00
dniz
b8e36648d4 Add BadgeDrawable Javadoc link to component doc
PiperOrigin-RevId: 259539388
2019-07-23 11:24:27 -04:00
dniz
e46ce4fa6c Update Shape theming docs to use Javadoc links instead of GitHub source links
PiperOrigin-RevId: 258368759
2019-07-16 13:06:49 -04:00
dniz
499e11d0e9 Fix paths to MaterialTextView and SwitchMaterial in docs
PiperOrigin-RevId: 258258433
2019-07-15 19:25:29 -04:00
dniz
8ebf760eee Remove path from ViewDragHelper in docs
PiperOrigin-RevId: 258248066
2019-07-15 19:24:09 -04:00
dniz
eefc276e5d Remove specific version from Getting Started docs
Resolves https://github.com/material-components/material-components-android/pull/439

PiperOrigin-RevId: 258202908
2019-07-15 19:23:07 -04:00
dniz
75d079442f Update Picker doc
PiperOrigin-RevId: 257633214
2019-07-11 14:39:14 -04:00
Antoine Vianey
575ee10006 Update Dialog.md
Fix sample code

GIT_ORIGIN_REV_ID=f64acfa6e83d8cc97998b6158335ca3fb5176bbf

Resolves https://github.com/material-components/material-components-android/pull/396

PiperOrigin-RevId: 256421118
2019-07-03 15:49:53 -04:00
Nicola Corti
030354f659 Update Getting Started doc to use alpha07
Looks like the Getting Started doc is still suggesting to use the
alpha06 of MDC. Given that the alpha07 was released several weeks ago,
I'm updating the gradle implementation line to use the latest version of
MDC.

GIT_ORIGIN_REV_ID=d9b4c752f215ec2ac7f420fce6fcef6b96831c84

Resolves https://github.com/material-components/material-components-android/pull/392

PiperOrigin-RevId: 256418728
2019-07-03 15:42:39 -04:00
Amit Parameshwar
b38cfca81f Fix code highlighting (xml)
GIT_ORIGIN_REV_ID=72a594cb3465d79acb9a1820f83ada3906a5fd1e

Resolves https://github.com/material-components/material-components-android/pull/403

PiperOrigin-RevId: 256371226
2019-07-03 14:14:51 -04:00
dniz
37534561f2 Add component styles that swap between primary and surface styles depending on light vs dark theme
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application

PiperOrigin-RevId: 256208965
2019-07-03 14:11:49 -04:00
marianomartin
e2eec4aca1 Fix links that were broken during cleanup
Resolves https://github.com/material-components/material-components-android/issues/414

PiperOrigin-RevId: 256034438
2019-07-03 14:06:30 -04:00
dniz
f2db1d9ac9 Add color theme attributes that swap between primary and surface colors depending on light vs dark theme
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application

PiperOrigin-RevId: 255962470
2019-07-03 14:05:18 -04:00
marianomartin
ad8003d8e9 Internal cleanup
PiperOrigin-RevId: 255441067
2019-07-03 13:56:54 -04:00
dniz
5df3bebd63 Update elevation overlays to be based absolute elevation, factoring in the elevation of all parent views
Will follow-up with TabLayout absolute elevation separately

Resolves https://github.com/material-components/material-components-android/issues/381

PiperOrigin-RevId: 255404830
2019-07-03 13:55:49 -04:00
ldjesper
1519a1d8d5 Add Picker documentation skeleton
PiperOrigin-RevId: 255193720
2019-06-26 19:15:13 -04:00
marianomartin
d8eeb000c6 Internal cleanup
PiperOrigin-RevId: 254963494
2019-06-26 11:21:03 -04:00
Material Design Team
8715373b2c Fix some minor typos in example usage
PiperOrigin-RevId: 254803794
2019-06-24 17:31:04 -04:00
raajkumars
12024f61a6 Added MaterialTextView component, which supports the ability to pass the line height value via text appearance style.
PiperOrigin-RevId: 254790727
2019-06-24 17:30:00 -04:00
marianomartin
c946144645 Internal cleanup
PiperOrigin-RevId: 254305776
2019-06-24 17:06:45 -04:00
Subhrajyoti Sen
5084a62db9 Add note to not update Gradle to beyond 4.10
The dependency on android-maven-gradle-plugin does not compile on Gradle 5.x.
Refer: https://github.com/dcendents/android-maven-gradle-plugin/blob/develop/README.md

Resolves https://github.com/material-components/material-components-android/pull/395

GIT_ORIGIN_REV_ID=eed4df09dddae4dcae21bbe11cc47361e3937e5c
PiperOrigin-RevId: 254229290
2019-06-24 17:03:08 -04:00
marianomartin
8002fb7954 Internal cleanup
PiperOrigin-RevId: 253615769
2019-06-18 13:41:56 -04:00
dniz
6783f9e1cd Clean up naming of elevation overlay methods and attributes
PiperOrigin-RevId: 253283047
2019-06-18 13:34:29 -04:00
marianomartin
450300d973 Internal cleanup
PiperOrigin-RevId: 253249607
2019-06-18 13:30:04 -04:00
connieshi
b3980237a4 Rename Tab#showBadge to Tab#getOrCreateBadge(). No longer ensures that the badge is visible. User should call BadgeDrawable#setVisible(boolean).
PiperOrigin-RevId: 252635742
2019-06-18 11:57:19 -04:00
connieshi
6cb11c80c8 Update TabLayout documentation to add badge section.
PiperOrigin-RevId: 250510447
2019-05-29 16:28:56 -04:00
Material Design Team
1e91f1b1a8 fix typo in Switch doc.
PiperOrigin-RevId: 249661239
2019-05-24 14:23:12 -04:00
afohrman
544543d7aa Shape documentation tweaks.
PiperOrigin-RevId: 247273827
2019-05-16 12:35:44 -04:00
afohrman
c0e8dcfa3c Remove explicit MaterialCardView style from MaterialCardView example in shape theming documentation.
Widget styles are set at the theme level, so styles should not be set on widgets unless the theme's widget style should not be used.

PiperOrigin-RevId: 247240560
2019-05-16 12:34:54 -04:00
afohrman
7016a35808 Remove bidirectionality guidance from material.io docs.
PiperOrigin-RevId: 247095107
2019-05-07 17:50:48 -04:00
afohrman
8570f261e3 Change shape theming table formats.
PiperOrigin-RevId: 247083619
2019-05-07 17:32:25 -04:00
dniz
eb05c986a4 Update Dark Theme docs with information and links for Android Q Dark Theme and Material Dark Theme spec
Android Q: https://developer.android.com/preview/features/darktheme
Material Spec: https://material.io/design/color/dark-theme.html

PiperOrigin-RevId: 247082315
2019-05-07 17:31:41 -04:00
dniz
c3918fd332 Add docs metadata to Menu developer doc
PiperOrigin-RevId: 247082057
2019-05-07 17:30:14 -04:00
afohrman
01beb4a9d4 Add shape theming documentation.
PiperOrigin-RevId: 247059441
2019-05-07 17:28:09 -04:00
connieshi
721342f394 Fix path in documentation.
PiperOrigin-RevId: 246915530
2019-05-06 19:28:24 -04:00