733 Commits

Author SHA1 Message Date
afohrman
73cb135c15 Update vertical motion for TextInputLayout's error text.
Motion additions/updates in this change:
- Added animation for error text's translation down
- Updated durations and interpolators for the opacity in and out animations

These changes roll forward changes that were previously rolled back because they broke screenshot tests.

PiperOrigin-RevId: 158881906
2017-06-14 16:38:11 -07:00
travisc
06b88e84ad Remove the split base/ics/lollipop directories.
The implementation in ics/ was the only remaining implementation of that class,
so it made sense to move it directly into src/. Most of the implementations in
base/ were the only remaining implementations, and thus also made sense to move
into src/.

The remaining classes were already post-fixed with Lollipop, so I see very
little value in maintaining separate source directories for them (and I know
these separate directories have also been flagged as confusing). They've all
been moved into src/ as well now. I also renamed FloatingActionButtonLollipop
to FloatingActionButtonImplLollipop here, as that better describes what it is
a version of.

PiperOrigin-RevId: 158187999
2017-06-14 16:37:39 -07:00
afohrman
94947cde8a Broke some screenshot tests.
PiperOrigin-RevId: 157239931
2017-06-14 16:33:59 -07:00
afohrman
63acb542ed Update motion for TextInputLayout's error state.
Motion additions/updates in this change:
- Added animation for error text's translation down
- Updated durations and interpolators for the opacity in and out animations

PiperOrigin-RevId: 157220100
2017-06-14 16:32:30 -07:00
gauthams
9ea1918ef8 Update BottomNavigationViewTest to cover shifting mode cases
PiperOrigin-RevId: 157039884
2017-05-24 16:37:23 -07:00
gauthams
60549808c5 Fix divide-by-zero crash when building BottomNavigationMenu with <2 children and shifting mode enabled.
PiperOrigin-RevId: 156888556
2017-05-24 16:37:07 -07:00
gauthams
c8052c3e2f Modify setShiftingMode() in BottomNavigationItemView to call setChecked() if the item view has already been initialized, so that shifting mode changes are immediately visible without having to re-initialize the view.
Also setting shifting mode before initializing view in BottomNavigationMenuView's updateMenu(), for consistency with buildMenu().

PiperOrigin-RevId: 156800545
2017-05-24 16:36:29 -07:00
afohrman
78eb50a405 Update motion for TextInputLayout's active state.
Motion updates in this change:
- Shortened the duration for the label scale
- Changed the interpolators from linear to FastOutSlowIn

PiperOrigin-RevId: 156553820
2017-05-24 16:35:55 -07:00
miguely
644139fb99 Add a BackLayerLayout and BackLayerSiblingBehavior + tests.
These are the foundation for the back layer functionality. The behavior
does the heavy lifting to measure the adjacent content view.

As of now this only lays out the views correctly in the hidden state, it doesn't support exposing the back layer at all, yet. Full of TODOs, this is just a skeleton.

PiperOrigin-RevId: 156334640
2017-05-24 16:33:21 -07:00
gauthams
08c783554a Update documentation for methods to set and get shifting mode on BottomNavigationView
PiperOrigin-RevId: 156251192
2017-05-24 16:31:55 -07:00
gauthams
eb96b9a358 Fix crash in BottomNavigationMenuView when updateMenuView is called while mMenu or mButtons is null
PiperOrigin-RevId: 156243521
2017-05-16 16:03:49 -07:00
gauthams
8493677be9 Add option to disable shifting mode even on BottomNavigationViews with 3+ children
Fixes #22.

PiperOrigin-RevId: 156126715
2017-05-16 16:02:31 -07:00
Travis Collins
4302673218 Upgrade complete codelab to gradle 2.3.2. 2017-05-16 15:46:21 -07:00
Travis Collins
9596d15435 Fix starter project build, can't use library attributes before we depend on the library. 2017-05-16 15:40:37 -07:00
gauthams
32b1f744e4 Update BottomNavigationView onMeasure to properly measure with invisible children
PiperOrigin-RevId: 155899080
2017-05-12 13:18:19 -07:00
gauthams
71c3e81905 Don't skip adding non-visible children in BottomNavigationView to avoid NPE when accessing those
PiperOrigin-RevId: 155893998
2017-05-12 13:18:02 -07:00
gauthams
d15d791fb7 Fix NPE on bottom nav menu update, and add test for this case.
PiperOrigin-RevId: 155776319
2017-05-11 13:00:34 -07: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
gauthams
e442abe704 Tweak animation for bottom nav hiding behavior
PiperOrigin-RevId: 155563392
2017-05-09 17:20:07 -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
travisc
cadd258f4e Add README badges. Merges #35.
PiperOrigin-RevId: 155540959
2017-05-09 13:01:29 -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
Travis Collins
e9cb00fd9f Merge pull request #36 from material-components/revert-35-patch-1
Revert "Added badges"
2017-05-09 12:41:30 -07:00
Travis Collins
dd34ad849e Revert "Added badges" 2017-05-09 12:40:33 -07:00
Miguel Andrés Yáñez Barreto
10b62e746f Merge pull request #35 from appsforartists/patch-1
Added badges
2017-05-09 11:50:43 -04:00
Brenton Simpson
fecbc5f06e Added badges 2017-05-09 00:18:09 -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
69fe4d4e5d Adds the repo_stable_branch field to the doc site metadata.
Used when building links to GitHub.

PiperOrigin-RevId: 155329717
2017-05-08 12:33:26 -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
gauthams
7957a2d8aa Update shifting BottomNavigationView behavior to size active view width based on label size, rather than defaulting to maxWidth.
PiperOrigin-RevId: 155252923
2017-05-05 16:44:28 -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
gauthams
5c9ac9798b Suppress flaky AppBarLayout tests on API 15
PiperOrigin-RevId: 155236892
2017-05-05 16:42:16 -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
gauthams
81573c4357 BottomNavigationView menu item visibility can now be set using setVisible
PiperOrigin-RevId: 155120882
2017-05-05 16:41:10 -07:00