168 Commits

Author SHA1 Message Date
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
Material Design Team
322cbaae8a Automated g4 rollback of changelist 264230778
PiperOrigin-RevId: 264382083
2019-08-20 11:22:09 -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
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
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
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
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
marianomartin
ad8003d8e9 Internal cleanup
PiperOrigin-RevId: 255441067
2019-07-03 13:56:54 -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
marianomartin
8002fb7954 Internal cleanup
PiperOrigin-RevId: 253615769
2019-06-18 13:41:56 -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
dniz
c3918fd332 Add docs metadata to Menu developer doc
PiperOrigin-RevId: 247082057
2019-05-07 17:30:14 -04:00
connieshi
721342f394 Fix path in documentation.
PiperOrigin-RevId: 246915530
2019-05-06 19:28:24 -04:00
connieshi
488f4873bb Add note about BadgeDrawable being under development and not supporting the full range of customization expected of a Material Android component. (e.g. themed attributes)
PiperOrigin-RevId: 246891342
2019-05-06 19:27:34 -04:00
leticiars
931bbef505 Adding documentation for the Exposed Dropdown Menu.
PiperOrigin-RevId: 246854538
2019-05-06 19:25:16 -04:00
leticiars
34df99b4bb Fixing table formatting in TextInputLayout documentation.
PiperOrigin-RevId: 246561639
2019-05-06 10:31:33 -04:00
leticiars
6f1054fe26 Updating MDC Menu documentation.
PiperOrigin-RevId: 246534389
2019-05-06 10:30:46 -04:00
connieshi
058dd0739d Add BadgeDrawable documentation. Update Bottom Navigation documentation to include information about badges.
PiperOrigin-RevId: 246309667
2019-05-03 10:57:40 -04:00
gauthams
71048025ef Update MaterialButton documentation to clarify usage of '.Icon' styles
PiperOrigin-RevId: 245317272
2019-04-29 15:52:46 -07:00
gauthams
64ad735c12 Add MaterialButtonToggleGroup docs
PiperOrigin-RevId: 243345601
2019-04-19 16:22:36 -04:00
afohrman
5d59ec05fc Update boxCornerRadius attributes in TextInputLayout's documentation to the correct names.
These attributes were renamed before our library was released as stable.

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

PiperOrigin-RevId: 241940785
2019-04-05 15:57:21 -04:00
gauthams
bc7a7e7961 Update MaterialButton documentation to include padding in clipToPadding snippet
PiperOrigin-RevId: 237881310
2019-03-22 16:04:38 -04:00
gauthams
916fd8760b Update MaterialButton documentation to include note about clipToPadding
PiperOrigin-RevId: 237537712
2019-03-22 15:57:41 -04:00
leticiars
eda47ac568 Updating TextInputLayout's documentation to include information about the end icon modes.
PiperOrigin-RevId: 237104993
2019-03-08 10:07:22 -05:00
gauthams
cbe25468bd Update ExtendedFloatingActionButton documentation
PiperOrigin-RevId: 235974516
2019-03-08 09:38:54 -05:00
gauthams
2f5c3143f1 Update ExtendedFloatingActionButton documentation
PiperOrigin-RevId: 235619027
2019-02-26 15:18:46 -05:00
marianomartin
88e2dd2f3c Update docs for MaterialCardView
PiperOrigin-RevId: 234983965
2019-02-24 14:27:22 -05:00
afohrman
beee015feb Use EditText's background for the filled text field and fix underline flakiness.
PiperOrigin-RevId: 231857938
2019-02-11 11:08:22 -08:00
afohrman
19039f7772 Automated g4 rollback of changelist 231246920
PiperOrigin-RevId: 231313735
2019-02-01 12:37:35 -05:00
afohrman
ef919e870a Use EditText's background for the filled text field and fix underline flakiness.
Use the EditText's background for the filled box text field and a MaterialShapeDrawable drawn to the canvas for the underline. This allows for many improvements to the filled text field.

This commit:
- Fixes the underline flakiness, where the underline used to not meet the edges until drawableStateChanged() was called after a layout pass (because TextInputLayout was attempting to use EditText's pre-existing underline, and the bounds of that Drawable weren't known in order to modify them until after drawableStateChanged())
- Removes the hard-coded box offset since it was only necessary when trying to use EditText's background drawable
- Brings the expanded label/hint a bit closer to the vertical center. Any more than this will require changing the bounds set on the expanded hint text and create misalignment between the expanded hint and any compound drawable that might be set

Specs: https://material.io/design/components/text-fields.html#spec

There is a possible alternative to drawing the underline manually: including the underline as part of the EditText's background. I investigated this option and rejected it, since it would require a re-architecture of the way TextInputLayout handles the box logic and many layers of box drawable nesting. It is much more straightforward and performant to draw the underline directly to the canvas than to convert the boxBackground to {LayerDrawable{MaterialShapeDrawable,{InsetDrawable{MaterialShapeDrawable}}}}.

This commit should only change the visuals of the filled text field; the outline text field should be visually untouched.

PiperOrigin-RevId: 231246920
2019-02-01 12:35:48 -05:00
gauthams
50d2d3c307 Update "Theme Attribute Mapping" section with opacities
PiperOrigin-RevId: 230631647
2019-01-25 14:01:07 -05:00