125 Commits

Author SHA1 Message Date
dniz
18e1aa0d71 Add note about using <chip tag for ChipDrawable
PiperOrigin-RevId: 199172023
2018-06-20 17:22:41 -04:00
dniz
ad573c764b Clarify sizing for FloatingActionButton
PiperOrigin-RevId: 198914008
2018-06-04 10:51:12 -04:00
Bernat Borrás Paronella
d85b0f79cf Remove backslash from Floating Button style ref.
There was an unnecessary backlash in the style example.

PiperOrigin-RevId: 198911163
2018-06-04 10:49:52 -04:00
afohrman
f2ebf56e21 Rename text field outlined style from "Outline" to "Outlined".
This commit updates the style names for the outlined text field box from "Outline" to "Outlined.

Widget.MaterialComponents.TextInputLayout.OutlineBox -> Widget.MaterialComponents.TextInputLayout.OutlinedBox, and
Widget.MaterialComponents.TextInputEditText.OutlineBox -> Widget.MaterialComponents.TextInputEditText.OutlinedBox.

This name matches spec and is closer to what is used on the other platforms.

PiperOrigin-RevId: 198768731
2018-05-31 16:39:44 -04:00
afohrman
bdb25ff7e3 Use android:padding attributes instead of boxPadding attributes for text field dimensions.
Move to use native android:padding attrs instead of custom boxPadding attributes for text fields. This is accomplished by creating box styles for TextInputEditText, and setting android:padding attributes in those.

The TextInputLayout box styles set the appropriate TextInputEditText style on its child by wrapping the TextInputEditText style in theme overlays. This is kind of neat, since it allows for the user not to have to set a style on both the TextInputLayout and TextInputEditText - the user does not even have to know about the TextInputEditText styles with this pattern. It should also help clear up some confusion over where to set the hint and other areas of haziness between TextInputLayout and TextInputEditText.

The default editTextStyle is set to the filled box style, to match the default TextInputLayout style.

This change removes the box padding attributes, and it also removes the dimension resources in favor of setting them in the style to improve readability.

This commit also changes TextInputEditText constructors to both use a theme attribute in the 3-arg constructor and call through to the TextInputEditText overloaded constructors rather than call the super's constructor from each. This allows the theme attribute set in the theme overlays to take effect.

PiperOrigin-RevId: 198051251
2018-05-30 17:35:13 -04:00
gauthams
9122d5d6be Update docs to call out spacing differences in MaterialButton
PiperOrigin-RevId: 197806996
2018-05-30 17:30:59 -04:00
connieshi
a71326896a Use the android:text attribute instead of chipText attribute to specify text label for ChipDrawable.
This is one in a series of planned changes that aim to delegate rendering a Chip's text to TextView instead of ChipDrawable.

PiperOrigin-RevId: 197780081
2018-05-30 17:19:38 -04:00
dniz
f2eae2b2e4 Fix AppBarLayout lift on scroll doc line length
PiperOrigin-RevId: 197607663
2018-05-30 17:18:26 -04:00
dniz
49b6f396ba Update AppBarLayout to support lift on scroll behavior
PiperOrigin-RevId: 197607028
2018-05-30 17:17:09 -04:00
dniz
81c4ece8f7 Remove colorPrimaryLight, colorSecondaryLight, and colorSecondaryDark
PiperOrigin-RevId: 197093793
2018-05-22 13:56:47 -04:00
cketcham
a15a8b9606 Add AppCompatActivity requirement to the docs
PiperOrigin-RevId: 196858321
2018-05-16 14:17:50 -04:00
dniz
7426624bc8 Update Getting Started docs to have more info about dependencies and Android P
PiperOrigin-RevId: 196838813
2018-05-16 13:30:09 -04:00
afohrman
6709e6af1e Remove escape characters from links in TextInputLayout documentation.
PiperOrigin-RevId: 196504132
2018-05-16 11:43:25 -04:00
afohrman
4d4923e00a Fix formatting for text field attribute table.
GitHub was failing to render the table with multi-line rows.

PiperOrigin-RevId: 196501962
2018-05-16 11:43:00 -04:00
cketcham
999872fdc6 Add Downloadable Fonts to Typography docs
PiperOrigin-RevId: 196029894
2018-05-16 11:42:04 -04:00
cketcham
73d1c6f148 Update links in material component docs
PiperOrigin-RevId: 195898245
2018-05-08 20:10:49 -04:00
Adrian Secord
f880fef926 Create Bidirectionality.md with metadata
PiperOrigin-RevId: 195677554
2018-05-07 13:38:19 -04:00
cketcham
a4f5cdb568 Use shared resources for BottomAppBar and BottomDrawer demos
PiperOrigin-RevId: 195463305
2018-05-07 13:37:16 -04:00
Adrian Secord
ebfeda0123
Add metadata to Bidirectionality.md 2018-05-04 19:36:10 -04:00
Adrian Secord
c8f3b75735
Create Bidirectionality.md 2018-05-04 19:09:18 -04:00
gauthams
93212a2161 Update table style
PiperOrigin-RevId: 195456359
2018-05-04 15:45:00 -04:00
dniz
c8861c7398 Specify version number in docs
PiperOrigin-RevId: 195439701
2018-05-04 13:58:50 -04:00
dniz
c806c46d08 Fix Snackbar short link to guidance
PiperOrigin-RevId: 195428846
2018-05-04 12:48:34 -04:00
gauthams
d9ad50ce87 Add headers for button styles
PiperOrigin-RevId: 195319431
2018-05-03 18:34:42 -04:00
afohrman
0d4687cedd Update BottomNavigationView documentation.
Add updated styles and a few minor corrections/improvements.

PiperOrigin-RevId: 195318566
2018-05-03 18:34:21 -04:00
gauthams
41ecd8f757 Update button docs
PiperOrigin-RevId: 195312822
2018-05-03 18:32:44 -04:00
afohrman
dd740297d8 Update FAB documentation.
PiperOrigin-RevId: 195306628
2018-05-03 17:04:04 -04:00
afohrman
f8fddb2d96 Change references to theme name examples from "MyAppTheme" to "Theme.MyApp".
To promote good naming practices for themes.

PiperOrigin-RevId: 195306230
2018-05-03 17:03:27 -04:00
dniz
567d36c714 Replace Top App Bar links to Material design guidance with short links
PiperOrigin-RevId: 195302691
2018-05-03 16:40:29 -04:00
afohrman
0be120515e Update shape spec link.
PiperOrigin-RevId: 195301292
2018-05-03 16:39:22 -04:00
afohrman
84e36b5347 Add shape theming documentation.
PiperOrigin-RevId: 195299227
2018-05-03 16:15:09 -04:00
cketcham
1dd7b63bde Add documentation for typography
PiperOrigin-RevId: 195299136
2018-05-03 16:14:37 -04:00
dniz
7f66cfea6b Theming Guide that links to individual theming systems
PiperOrigin-RevId: 195284308
2018-05-03 14:37:47 -04:00
dexterr
690eb0e797 Placeholder documentation for SideSheetBehavior.
Correction to Switch description.

PiperOrigin-RevId: 195266147
2018-05-03 12:55:04 -04:00
dniz
e4c8535352 Remove backlayer and materialswitch
PiperOrigin-RevId: 195148145
2018-05-02 17:07:28 -04:00
gauthams
64f950c429 Update MaterialButton docs
PiperOrigin-RevId: 195140077
2018-05-02 17:06:48 -04:00
gauthams
03c0dc3837 Update table style in TabLayout docs
PiperOrigin-RevId: 195137848
2018-05-02 17:06:25 -04:00
dniz
d0e4cc93a9 Set up MDC Catalog build and docs
PiperOrigin-RevId: 195135469
2018-05-02 15:45:21 -04:00
gauthams
b8ce66ae69 Add shortlinks for Material tools
PiperOrigin-RevId: 195129201
2018-05-02 15:09:20 -04:00
gauthams
4a6bbd7968 Update color scheme doc
PiperOrigin-RevId: 195121890
2018-05-02 14:23:46 -04:00
dniz
5837aa43a1 Add getting started/migration docs for dependency and theme setup
PiperOrigin-RevId: 195105970
2018-05-02 14:13:25 -04:00
dniz
b134230f72 Update developer.android.com class documentation links to point to new location
PiperOrigin-RevId: 195093183
2018-05-02 14:12:09 -04:00
cketcham
5e20eda1dc Update bottom app bar documentation link
PiperOrigin-RevId: 194998628
2018-05-02 14:11:34 -04:00
dexterr
5e2222d97d Create Placeholder documentation for components
PiperOrigin-RevId: 194993387
2018-05-01 17:12:57 -04:00
dniz
20298b6be1 Rename schemes to theming in docs
PiperOrigin-RevId: 194992899
2018-05-01 17:12:26 -04:00
afohrman
a7e00582f9 Change docsite generation code for howto guide.
And delete index.md. It was a duplicate of howto.md.

PiperOrigin-RevId: 194955100
2018-05-01 17:11:27 -04:00
Material Design Team
87b5e046c4 Replace links to Material design guidance with short links as appropriate.
PiperOrigin-RevId: 194927609
2018-05-01 17:10:56 -04:00
afohrman
14d5b84355 Add shapes scheming documentation stub.
PiperOrigin-RevId: 194836273
2018-05-01 17:09:52 -04:00
gauthams
54d7f8f620 Add schemes directory to docs
PiperOrigin-RevId: 194786206
2018-04-30 15:11:23 -04:00
marianomartin
50803c06d5 [material] fix documentation for bottom app bar
PiperOrigin-RevId: 194241279
2018-04-30 12:01:45 -04:00