85 Commits

Author SHA1 Message Date
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
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
73d1c6f148 Update links in material component docs
PiperOrigin-RevId: 195898245
2018-05-08 20:10:49 -04:00
gauthams
93212a2161 Update table style
PiperOrigin-RevId: 195456359
2018-05-04 15:45:00 -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
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
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
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
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
marianomartin
50803c06d5 [material] fix documentation for bottom app bar
PiperOrigin-RevId: 194241279
2018-04-30 12:01:45 -04:00
dniz
375eb8220b Update docs to point to new widget class locations
PiperOrigin-RevId: 193539651
2018-04-30 11:34:37 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00
dniz
3f6ba81d6e Remove library references to widget package
PiperOrigin-RevId: 191302154
2018-04-03 12:07:57 -04:00
cketcham
848795fa39 Add Documentation for BottomAppBar
PiperOrigin-RevId: 189775730
2018-04-03 11:45:43 -04:00
shyndman
cd308f93d1 Fixes more CoordinatorLayout.md links.
I think I got all of them this time.

PiperOrigin-RevId: 188793949
2018-03-12 19:33:31 -04:00
shyndman
1ba50c54ca Fixes a broken link to CoordinatorLayout in the documentation.
I opted to link to Android Developers, rather than remove the link entirely.

PiperOrigin-RevId: 188725152
2018-03-12 12:57:48 -04:00
dniz
5014817935 Update AppBarLayout Behavior to support snapping to child view's margins
PiperOrigin-RevId: 188368805
2018-03-12 12:55:50 -04:00
Material Design Team
856ed8d313 Changed "wrap" to "wrap_content" in Chip XML definitions for layout_width and layout_height.
PiperOrigin-RevId: 185690618
2018-03-12 12:40:36 -04:00
gauthams
28ea9a4fdd Update MDC button documentation
PiperOrigin-RevId: 184761550
2018-03-12 12:36:27 -04:00
dniz
c31ef1f1d7 Update Gradle and Maven configurations
PiperOrigin-RevId: 183872033
2018-03-02 14:58:51 -05:00
markwei
d36b0a9db0 Add styles and attributes to TabLayout documentation.
PiperOrigin-RevId: 183324248
2018-03-02 14:53:06 -05:00
markwei
19c081b025 Use common style header for TextInputLayout
PiperOrigin-RevId: 183316060
2018-02-27 13:21:50 -05:00
markwei
1bc7c013d1 Add updated Material theme guidance on top of component documentation.
The goal is that this snippet can be copied and pasted across all of our component documentation.

PiperOrigin-RevId: 183315682
2018-02-27 13:05:53 -05:00
markwei
077d371f39 Add styles and attributes to MaterialCardView documentation.
PiperOrigin-RevId: 183306995
2018-02-27 12:06:10 -05:00
markwei
8f026e65a8 Flesh out FAB doc examples.
PiperOrigin-RevId: 183143764
2018-01-25 18:25:38 -05:00
markwei
8f269672e1 Add chip documentation.
PiperOrigin-RevId: 183139001
2018-01-25 18:25:09 -05:00
markwei
710f3cd065 Touch up MaterialCardView docs.
Fix invalid icon. Add to side nav.

PiperOrigin-RevId: 183075794
2018-01-25 18:23:35 -05:00
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