• Home
  • History
  • Annotate
  • only in /frameworks/support/design/src/android/support/design/widget/
History log of /frameworks/support/design/src/android/support/design/widget/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
17f3424b84d9550e6cb97a06dff4c67f82d36c4f 02-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix CoordinatorLayout edge building process." into oc-support-26.0-dev
d388d36cc2f2cf43b51f7958a268a29865ad6497 02-Jun-2017 Aurimas Liutikas <aurimas@google.com> Fix error prone warning in CoordinatorLayout.

Fixes:
CoordinatorLayout.java:630: warning: [ClassNewInstance] Class.newInstance()
bypasses exception checking; prefer getDeclaredConstructor().newInstance()

Test: ./gradlew support-design:assembleErrorProne
Change-Id: I16b3b10494b0f765cad078a782ecdf40631b9201
oordinatorLayout.java
952c28b8cf957ff6df921e352385d02b4da285be 15-May-2017 Frantisek Nagy <frantisek.nagy.ml@gmail.com> Fix CoordinatorLayout edge building process.

There was a bug in the way the dependency graph was filled on the first
measure/layout pass. We iterated over all child views and for each child
A we iterated every other child and for each other child B we checked if
B depends on A and if so, we added an edge A->B to the dependency graph.
For anchors, on the first run, each child's LayoutParams only have info
about its anchorId and not the anchor view itself. This is resolved by
calling LayoutParams.findAnchorView(). Until this call, checking
LayoutParams.dependsOn() returns false. In current implementation we
only called findAnchorView() for child A, but then we checked
dependsOn() for child B.

This fixes this issue with inverting the check, so we check if A depends
on B and if it does, we add an edge B->A to the dependency graph.

Bug: 31622224
Test: Added CoordinatorLayoutTest.testAnchorDependencyGraph() test case
that fails without this fix.

Change-Id: Idcdf82031cce02340b2733aad1e30feb6f9359bb
oordinatorLayout.java
2e146a7b9f8805ae177e2de8b87d03bb3b30407f 24-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix ViewStructure.getHint() for autofill on child of TextInputLayout." into oc-support-26.0-dev
fa63b7faf6a3ca0c06b06f58aced3c0f6796188a 18-May-2017 Felipe Leme <felipeal@google.com> Fix ViewStructure.getHint() for autofill on child of TextInputLayout.

TextInputLayout resets its child's hint; this change saves the original value
and temporary restores it on dispatchProvideAutofillStructure() so the child's
ViewStructure is properly set.

Fixes: 38324864
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.TextInputLayoutTest#testDispatchProvideAutofillStructure

Change-Id: I13a1652ac9320b86c44af669ab8e40040dea0845
extInputLayout.java
ee1b969af871a7015fc2df11f8d342a4e6cf40f0 17-May-2017 Hyundo Moon <hdmoon@google.com> MediaRouter: Fix errprone warnings

Bug: 38276537
Test: ./gradlew support-mediarouter-v7:lintErrorProne
./gradlew createArchive
Change-Id: I88aeeae5cb84f1b131fa615b17aec0851b7ffa66
ppBarLayout.java
ollapsingToolbarLayout.java
oordinatorLayout.java
iewUtils.java
101d1376f87b5d4e82942a0b264c99a9a009b521 16-May-2017 Kirill Grouchnikov <kirillg@google.com> Revert "Move CoordinatorLayout from design to core-ui"

This reverts commit 0a63a3570132fb830b87f757ce50ee114d0229f2.

Bug: 30240339
Change-Id: I40ec3f2a562262b5ee577ddf11eac677382cf9c6
ppBarLayout.java
ollapsingToolbarLayout.java
oordinatorLayout.java
irectedAcyclicGraph.java
iewGroupUtils.java
0a63a3570132fb830b87f757ce50ee114d0229f2 05-May-2017 Kirill Grouchnikov <kirillg@google.com> Move CoordinatorLayout from design to core-ui

Bug: 30240339
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.CoordinatorLayoutTest
Change-Id: Ibf011249eee99bada6af610ab9518dd3377018a6
ppBarLayout.java
ollapsingToolbarLayout.java
oordinatorLayout.java
irectedAcyclicGraph.java
iewGroupUtils.java
ad1b0e82100ee31e70040d77bfa4d847b2bf0864 02-May-2017 Aurimas Liutikas <aurimas@google.com> Fix and suppress an assortment of ErrorProne warnings.

Test: ./gradlew assembleErrorProne now has fewer warnings
Change-Id: I445c7dfd36b33243771eb7821562ca468851ad8a
ollapsingTextHelper.java
oordinatorLayout.java
extInputLayout.java
76daed103193a1756535d1f59b165e98e1d17445 13-Dec-2016 Chris Banes <chrisbanes@google.com> Nested scrolling++

This CL adds a number of overloads for the support
implementation of the nested scrolling APIs, to
add the 'type' parameter. This allow developers to
differentiate between direct touch scrolls, and
other non-direct scrolls. Primarily this is to support
dispatching the nested scrolling APIs from when a
scrolling view settles from a fling.

NestedScrollView and RecyclerView have both been updated
to dispatch these events from a fling settle. AppBarLayout
has also been updated to consume these new events.

The way the interfaces have been implemented allow us to
be API compatible without breaking anyone. Yes, the names
are fugly but so be it. If developers wish to support the
new APIs they just need to change the interface they
implement.

This CL also fixes some scroll issues in NSV and RV:
- NSV: fling not starting if scroll is completely
consumed (since it doesn't think it is dragging).
- RV: intercept setting the wrong X/Y start values
sometimes causing flinging in the wrong direction.

BUG: 22780822
Test: included for RV

Change-Id: I37de005e4fb33b5b443852058f3e1ab22ef98e20
ppBarLayout.java
oordinatorLayout.java
f055439eb1303027f37a50bd90ec50cb1f7740dd 20-Apr-2017 Kirill Grouchnikov <kirillg@google.com> Rename colorTextError to colorError for consistency with FW

Bug: 33829062
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.TextInputLayoutTest
Test: visual inspection
Change-Id: I518d47ae98a5a01bcebaf0b135004f1f6b8ff429
extInputLayout.java
0ee1c0c987447646fb7a4ff86caed452947c1878 20-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make support toolbars into keyboard navigation clusters" into oc-dev
d2d90794ffd1ab661708ec28c1f5e000c813aaf8 18-Apr-2017 Evan Rosky <erosky@google.com> Make support toolbars into keyboard navigation clusters

This also makes them match framework.

Bug: 32804858
Bug: 32117594
Test: Manually checked against support-v7-demos and support-design-demos
Change-Id: Iec32f5fa366da0df503cdb42d0616564b548d12f
ppBarLayout.java
779fb113b229176c5e9cacc56a4fdd5f09a4852e 18-Apr-2017 Kirill Grouchnikov <kirillg@google.com> Don't crash in AppBarLayout inflation
am: ee01b9bca7

Change-Id: I5a003ad6ff020cc1d60eec2024a8f2a31841d5f8
ee01b9bca75c41beddce986596a91ecec12eca5e 18-Apr-2017 Kirill Grouchnikov <kirillg@google.com> Don't crash in AppBarLayout inflation

Specific attributes used in AppBarLayout's theme will cause
the super constructor to call onCreateDrawableState before
class-level fields are initialized. Move the creation of temp
array to be on-demand.

Bug: 37460722
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.AppBarWithScrollbarsTest
Change-Id: I086f25c676201876fd76cd3684afcab7e09436d0
ppBarLayout.java
fa2e2acf79d791a90410025daad438968550d18c 31-Mar-2017 Alan Viverette <alanv@google.com> Remove unnecessary casts on calls to findViewById

Updates Android.mk where applicable.

Bug: 24137209
Test: make -j32
Change-Id: I04084b2d05ddd7afaa160a76efe0b0d0c8eb5f00
ollapsingToolbarLayout.java
751f614021e9e8dd24b88de04639ddfe02d5d4c7 06-Apr-2017 Yuichi Araki <yaraki@google.com> resolve merge conflicts of 08aea1c647 to oc-dev

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I3b1d202ab847a42eadd25cfb0d8471e0ad23edd1
96eebaf2a86b305835dc73bd96387f8b17dbf6d6 04-Apr-2017 Yuichi Araki <yaraki@google.com> Status bar background for BottomSheetDialog

Bug: 31303656
Test: Manual & existing tests on 15, 18, 19, 21 and 25
Change-Id: I72240894848ae1e9505679f2e4517c152fa3c4bf
ottomSheetDialog.java
b0ec0584ef4618908ddcc77b1701e5f22c458347 31-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Replace usage of design MathUtils with core-utils version of MathUtils." into oc-dev
12e0a308d1ab838cb05c395baa6f1251fcbb2363 30-Mar-2017 Aurimas Liutikas <aurimas@google.com> Replace usage of design MathUtils with core-utils version of MathUtils.

android.support.design.widget.MathUtils class had duplicate functionality to
android.support.v4.math.MathUtils. This CL replaces the usage and deletes
design version of MathUtils.

Test: ./gradlew assemble
Change-Id: I1e821deac0a421ced01dcefa04c44162dfa065fe
ppBarLayout.java
ottomSheetBehavior.java
ollapsingTextHelper.java
ollapsingToolbarLayout.java
oordinatorLayout.java
eaderBehavior.java
eaderScrollingViewBehavior.java
98ec0d5b378c8417156037af6389e90f0074a26e 30-Mar-2017 Aurimas Liutikas <aurimas@google.com> Clean up an assortment of Error-Prone warnings.

Test: ./gradlew assembleError prone still works (and now with fewer warnings TM)
Change-Id: I9e0af18b49a3eff1dd7ac8edc5a2873f93bb844e
oordinatorLayout.java
d1a3eb935cfb5deac478ac26860bcff54b21bc22 13-Mar-2017 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout height when wrap_content

If there is a top window inset we need to make sure
that we expand our height to allow the Toolbar
to be offset.

BUG: 36126318
Test: included
Change-Id: I179fc6764166d80d92a8a995c93d54650365c2bf
ollapsingToolbarLayout.java
a972a99dddff41d5f54a18629185a7290a63d1f9 10-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce android.support.v7.widget.TooltipCompat"
05944c3367279f44345963acc40674b1653f6418 08-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "A pass at fixing unchecked javac warnings."
d307f4573da0437751dfcefd111e946dbc25b60c 07-Mar-2017 Aurimas Liutikas <aurimas@google.com> Merge "Prevent potential NPE" am: 2dca7c82d1 am: 7c421bdee8
am: 98c8c2faa2

Change-Id: I9ff492284e45e8463888b5171bbd97ee5e1d323b
6539c6f5b7d82ef3a20ce07d8cb499d8181f483e 07-Mar-2017 Kirill Grouchnikov <kirillg@google.com> Merge "Remove unnecessary null check" into nyc-support-25.3-dev am: 82f70a69e5
am: 8d0f10f75f

Change-Id: Ia2b09179f00ab3ab9a0ca280cd7456c2a2364040
d8caf68f46768a9d919dcdd29f4bd2de20369f93 06-Mar-2017 Kirill Grouchnikov <kirillg@google.com> Remove unnecessary null check

If that variable is null, it would crash in the previous line

Bug: 34129526
Test: run a few design lib tests
Change-Id: Ic403d4ccf79899f4d2978856fbb02ffc65de0f3f
hemeUtils.java
a4c6825b4b077cb12adb4f14b825001b6fd0e865 03-Mar-2017 Vladislav Kaznacheev <kaznacheev@google.com> Introduce android.support.v7.widget.TooltipCompat

Backport com.android.internal.view.TooltipPopup with
as much style and behavior details as practically possible.
Make it available through the new TooltipCompat class.

Bug: 35669189
Test: Support7Demos > AppCompat > Action Bar >
Action Bar Usage, hover mouse over action buttons.

Change-Id: I7077d01536d5d7ca9e6865a0c169a2e0dcf34b6b
abLayout.java
d1e6ea34363dbb189490bb793692c86c2ebecf47 06-Mar-2017 Geoffrey Métais <geoffrey.metais@gmail.com> Prevent potential NPE

Ignore scroll events if mNestedScrollingChildRef is not set yet.
It happens if BottomSheetBehavior view is inflated from a ViewStub for
example, input events can arrive too soon.

bug: https://code.google.com/p/android/issues/detail?id=232646

Test: nullity check, existing unit tests still pass.
Change-Id: I25847ce70437d33b864b0d1b27a28d215a7c1ab3
ottomSheetBehavior.java
27644c071b7fc0e1e4f91194f2a08b4aa2cf1465 05-Mar-2017 Aurimas Liutikas <aurimas@google.com> Remove unused imports in support library classes.

Test: ./gradlew assebmle assembleAndroidTest
Change-Id: I429f0abb742bfed9288f84a7d6a3208063068f23
ollapsingTextHelper.java
rawableUtils.java
hemeUtils.java
abc73958d264e1eed7fd401a18be1d9ede8304eb 06-Mar-2017 Aurimas Liutikas <aurimas@google.com> A pass at fixing unchecked javac warnings.

Add types where needed.
Suppress places where we intentionally skip types.

Test: ./gradlew assemble still works
Change-Id: If1350e896948c7e27c212cf7b1a94f08b9131193
irectedAcyclicGraph.java
e2104f4b5c8e3ad63570306a25e61502dfe4c418 05-Mar-2017 Aurimas Liutikas <aurimas@google.com> Add all missing @Override annotations.

Historically, we could not add @Override for certain methods due to
using older SDKs to build support library. That is no longer the case
so we can add @Override everywhere now.

Test: ./gradlew assemble assembleAndroidTest still works
Change-Id: I85e3c1157f0e253e3eab7584189f3bf95cf030e9
loatingActionButton.java
4b25d63ff53d4676150ac54897851e4ff9f1049f 25-Feb-2017 Aurimas Liutikas <aurimas@google.com> Clean up ParcelableCompat after minSdk 14 bump.

Bug: 32794064
Test: ./gradlew assemble

Change-Id: I87d35d527e80d55ac4a2a626a6040fcdaff63ae3
ppBarLayout.java
ottomNavigationView.java
ottomSheetBehavior.java
oordinatorLayout.java
avigationView.java
extInputLayout.java
3035be16658d7652fdc472f971c81d8f7ffb60fd 15-Feb-2017 Aurimas Liutikas <aurimas@google.com> Deprecate ScrollerCompat after minSdk 14 bump.

ScrollerCompat can be completely replaced by OverScroller that was
added in API14 which ScrollerCompat wraps.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: Ice79dd122b00e1b3c92dea3a95446ac897135a84
eaderBehavior.java
91d64e6db04c54baa0e99b4812d51ecc2c0e49c5 15-Feb-2017 Xin Li <delphij@google.com> Merge commit 'f6db31b17c025cca81005028fa9ce4952f27c357' from
nyc-support-25.1-dev to stage-aosp-master.

Test: local build tests
BUG: 35383336
Change-Id: Id9e261f4e950ba6aa0203856cb3e5aec76be6588
bb8c2e3cddc2d2b8270ea995948285a9fdee0337 14-Feb-2017 Aurimas Liutikas <aurimas@google.com> resolve merge conflicts of 089a27366d to master

Change-Id: I0e702034211d4000e01e65284f962f136a6d7a76
eb0922a6531ce1debff929814fff4b3df4159a45 14-Feb-2017 Geoffrey Métais <geoffrey.metais@gmail.com> Prevent potential NPE

Ignore scroll events if mNestedScrollingChildRef is not set yet.
It happens if BottomSheetBehavior view is inflated from a ViewStub for
example, input events can arrive too soon.

bug: https://code.google.com/p/android/issues/detail?id=232646

Test: nullity check, existing unit tests still pass.
Change-Id: I0535a63ed834d64fcbf20dd8b268d109232c5077
ottomSheetBehavior.java
618627e88b517f56e932e1ec44042d21e34c5837 10-Feb-2017 Aurimas Liutikas <aurimas@google.com> Fix setLayoutDirection behavior for TabLayout.

There was a bug in Android before M that LinearLayout did not relayout
its children when the RtlProperties changed. It was fixed in LayoutManager
in ag/701717.

Bug: 34686900
Test: Now TabLayoutTest#setScrollPositionRtl passes.
Change-Id: Ib494e97ee482f6b221ad957518af8b4885e88d89
abLayout.java
6c3fec5f2bc62c363c459b97bdd39d91631a93fc 08-Feb-2017 Jonathan Koren <jdkoren@google.com> resolve merge conflicts of 53118fb315 to master

Change-Id: Ia5991d8adef351e5791266b5f13fc59020afa5cc
86d6a88c4d98bf6f125d4a514004bdf86a2a215a 30-Jan-2017 Jonathan Koren <jdkoren@google.com> Fix TabLayout#setScrollPosition() in RTL

Bug: 34686900
Test: Added new test in TabLayoutTest

Change-Id: I2bdee71d55e8b68377124fc4d8a7b94a01a567ba
abLayout.java
6b2f67b466a0aa75c854536bf62ef50146a69b20 07-Feb-2017 Aurimas Liutikas <aurimas@google.com> Merge "Deprecate and remove usage of MotionEventCompat methods."
ee55bf441b2728d359675d9899c6b5efa7bf6a60 07-Feb-2017 Aurimas Liutikas <aurimas@google.com> Deprecate and clean up usage of ConfigurationHelper.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: I7b92c5a6d846336c22b893fe228521bed239e337
loatingActionButton.java
6ed40c1f86bcb172a1f0f069cde1c571a7781aee 07-Feb-2017 Aurimas Liutikas <aurimas@google.com> Deprecate and remove usage of MotionEventCompat methods.

We bumped our minSdk to 14 and now most of MotionEventCompat methods and
constants are no longer needed.

Bug: 32794064
Test: ./gradlew assemble assembleAndroidTest
Change-Id: I5fc698fc8243107cd969743b7500163818f8c258
ottomSheetBehavior.java
oordinatorLayout.java
eaderBehavior.java
wipeDismissBehavior.java
3c686509330158f83ade5be36db66efeee574f14 31-Jan-2017 Jonathan Koren <jdkoren@google.com> Add item reselected listener to BottomNavigationView
am: 6b3a399a8e

Change-Id: I7922cc8815904189f39d1aafc7684cfd1fa1592b
6ee689e1aa3b1ba5ce50aa2e8fb13fc35c22af5f 30-Jan-2017 Jonathan Koren <jdkoren@google.com> Merge commit 'e4c7e61dbe94a77c5389eb20952d6b7ed6536caf'

Change-Id: Iaf5782172dc5235f21cd9f2f5842c88858e5702d
73adf7b8032d4e4d55678e0d8ba2a61b057612f2 30-Jan-2017 Jonathan Koren <jdkoren@google.com> Merge changes Id48cde63,I2acbacae into nyc-support-25.2-dev

* changes:
Add item reselected listener to BottomNavigationView
Add setSelectedItemId() to BottomNavigationView
f30607dabc24bc191803ca5ffe601256d4a1e588 30-Jan-2017 Aurimas Liutikas <aurimas@google.com> Merge "Deprecated methods in VelocityTrackerCompat that got after before API 14."
0dc11147fb1096fb1078f2730ee728f876ab2431 30-Jan-2017 Aurimas Liutikas <aurimas@google.com> Merge "Deprecated ViewCompat methods that were added in API 11."
bdc60a0a8230af24a5433021e8f9bfee5979e948 30-Jan-2017 Alan Viverette <alanv@google.com> Fix TextInputLayout's hint not expanding

Happens when the EditText is populated with
text from the layout, etc. Caused by some
state being set wrong in the constructor,
which makes the proceeding state update
no-op, since it thinks it is already in the
state.

BUG: 33585556
Test: included
Change-Id: I34c6e9aca3c41f864974ad32fcdbb6dc829645b8
extInputLayout.java
01d2fca146296f270e82467a36800a6b18aeb94d 30-Jan-2017 Aurimas Liutikas <aurimas@google.com> Fix BottomNavigationView example to use AAPT1 style. am: 15bb0011d0
am: 362f15a668

Change-Id: Ib76ccb5e05d1daccd513f04ff48abbb91fa9d2df
362f15a668db8b91aa216d903278157a7775e073 30-Jan-2017 Aurimas Liutikas <aurimas@google.com> Fix BottomNavigationView example to use AAPT1 style.
am: 15bb0011d0

Change-Id: I160b8c0d61b249e37cdb5819e4747da4962dd612
fa0f82f629bf95681c14ed559922f77a3030aa18 30-Jan-2017 Aurimas Liutikas <aurimas@google.com> Deprecated ViewCompat methods that were added in API 11.

Deprecated all the ViewCompat methods that were APIs added to View
since API 11. Additionally this removes usages of these APIs in support
library.

Bug: 32794064
Test: ./gradlew assemble assembleAndroidTest still works
Change-Id: I18fb0cc1ebc67c911eeb30aada7b8315afc15835
aseTransientBottomBar.java
oordinatorLayout.java
wipeDismissBehavior.java
extInputLayout.java
374cad6778dfb6923f35bfc28290a9baad22743e 30-Jan-2017 Aurimas Liutikas <aurimas@google.com> Deprecated methods in VelocityTrackerCompat that got after before API 14.

Deprecated methods in VelocityTracker and removed their usage in the rest
of the support library.

Bug: 32794064
Test: ./gradlew assemble still works.
Change-Id: Ia805a39aeebce9ff69278836c6dad55218b8b2d5
ottomSheetBehavior.java
eaderBehavior.java
15bb0011d065eea84c845087118f2b7f8209d400 29-Jan-2017 Aurimas Liutikas <aurimas@google.com> Fix BottomNavigationView example to use AAPT1 style.

Many of support library users are still not using AAPT2 so
switch to use res-auto and app namespace for the example snippet.

Bug: 34690787
Test: None
Change-Id: I677cab381cc52803fcb9a5b6bb7a630ec8469a0d
ottomNavigationView.java
6b3a399a8ed6afa4c9da88690a61efca61b61d21 29-Jan-2017 Jonathan Koren <jdkoren@google.com> Add item reselected listener to BottomNavigationView

Adds an additional listener in for developers that want to discern
between item selection and reselection without tracking the current
selection. This maintains backward compatibility with existing uses
of OnNavigationItemSelectedListener by itself in client code; new
behavior is only observed if an OnNavigationItemReselectedListener is
added.

Bug: 34576220
Test: Modified tests in BottomNavigationViewTest,
Updated support-design-demos

Change-Id: Id48cde6395dd73a01ce68e3be1783161229f8939
ottomNavigationView.java
e4c7e61dbe94a77c5389eb20952d6b7ed6536caf 24-Jan-2017 Jonathan Koren <jdkoren@google.com> Add setSelectedItemId() to BottomNavigationView

Also fixes a bug where programmatic selection of an item (previously
by calling setChecked(true) on a menu item) does not invoke the
OnNavigationItemSelectedListener and does not animate properly.

Bug: 34627065
Bug: 33002556
Test: Added new tests in BottomNavigationViewTest
Change-Id: I2acbacaedb6cf7a05135ba90137f939b690190da
ottomNavigationView.java
0cc34ddefffaf515b5a4eb3fc8690df2e8fbdb9b 27-Jan-2017 Jonathan Koren <jdkoren@google.com> resolve merge conflicts of b01c03a178 to master

Change-Id: I3567b099b9a17606f4747f419a9b42e923569a9e
4f41598d9df4edcec4e600c2569ad93fcd535852 27-Jan-2017 Jonathan Koren <jdkoren@google.com> Merge "Fix BottomNavigationView not saving state" into nyc-support-25.2-dev
b01c03a178cb74302b83e20820fb98a817b47e3e 23-Jan-2017 Jonathan Koren <jdkoren@google.com> Fix BottomNavigationView not saving state

Bug: 32995862
Test: Added new test to BottomNavigationViewTest
Change-Id: Id66e262e8264c2d09c01580f4f0055d026300684
ottomNavigationView.java
cda5febca0f9d4925a6572b15214798fab0b3fa3 24-Jan-2017 Chris Banes <chrisbanes@google.com> Fix Snackbar touch handling
am: e855c308ce

Change-Id: I83419e9ed95b14487aaeb3850a998d7e7ba6018f
e855c308ce795c6ac382b94670c264fc368ba882 24-Jan-2017 Chris Banes <chrisbanes@google.com> Fix Snackbar touch handling

This fixes the issue where the timeout is
not restored when the user swipes up
from the Snackbar.

Test: included (and passing)
BUG: 33931084
Change-Id: I2a10936bed97c0344cc3dac66b908e2733f2ffa0
aseTransientBottomBar.java
nackbarManager.java
52151cc4906f7a1f5925fcee872fa915606590c7 24-Jan-2017 Chris Banes <chrisbanes@google.com> resolve merge conflicts of 2d50d87217 to master

Change-Id: I5a815cd9b473cf72b8418b9df9ded32092ea4bbd
5eb1be561420ec881e32cc01de46f697b2dba3bb 24-Jan-2017 Chris Banes <chrisbanes@google.com> resolve merge conflicts of e6c9959fe4 to stage-aosp-master

Change-Id: I11e94e0c01d76dbdf85f27663b990c770baf143d
e39334439ed2c85bc9d2ad863f0aa4fd21957655 23-Jan-2017 Yuichi Araki <yaraki@google.com> resolve merge conflicts of 9d4807ff52 to master

Test: BottomSheetDialogTest on 15, 18, 19, and 25
Change-Id: If42171d937dcd4f741e4316725373edf9f34a25f
9d4807ff527645e117d741479a21dc27ae1b3407 23-Jan-2017 Yuichi Araki <yaraki@google.com> Fix BottomSheetDialog after swiping it down

BottomSheetDialog now collapses the bottom sheet when it is shown,
making it possible to use the same instance more than once after user
swipes it down.

Test: BottomSheetDialogTest#testHideThenShow on 15, 18, 19, and 25
Bug: 34214747
Change-Id: I464625eadb41cf42fdaacafe12e32324c21903cb
ottomSheetDialog.java
e337f69585dee67d926bba7558b6c35acc44aa54 19-Jan-2017 Vladislav Kaznacheev <kaznacheev@google.com> Rename View.setTooltip/getTooltip to setTooltipText/getTooltipText

Bug: 34454987
Test: Support7Demos -> Action Bar Usage
Change-Id: Idee511cabee413270ac6b4d2c76c328f51217836
abLayout.java
47a4a1aac79f0ad2279c7a3eeaad1673646f4d81 30-Oct-2016 Kassim Maguire <kassimmaguire@gmail.com> Use enabled scrolling child in BottomSheetBehavior

Modification of findScrollingChild() that only returns a view if
it has nested scrolling enabled (instead of just implementing
NestedScrollingChild). As to prevent an incorrect view being
referrenced, leading to incorrect behavior when scrolling.

Test: added BottomSheetBehaviorTest.testFindScrollingChildEnabled()
that tests that an enabled NestedScrollView contained within a disabled
NestedScrollView parent is returned by findScrollingChild(parent)

Change-Id: I9841db9c67520f858913a5109dc08ffed9e53568
ottomSheetBehavior.java
e308f98b5b0f3f7517304f2a79c8fc3817520be1 18-Jan-2017 Chris Banes <chrisbanes@google.com> Fix scroll|enterAlways when we have a top inset
am: 116332176f

Change-Id: I4e82c1b062266066f0a1ab92686b38c1bdd28b5a
b410951e4543e078da1983e0ea637f9d985766f0 18-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix scroll|enterAlways when we have a top inset" into nyc-support-25.2-dev
116332176fa904af2f701011de8d4f2524c10a8e 18-Jan-2017 Chris Banes <chrisbanes@google.com> Fix scroll|enterAlways when we have a top inset

Currently AppBarLayout scrolls too far. This
CL fixes that.

Test: included
BUG: 33934454
Change-Id: Id835c255dddef3ce4fdedd5a4e18a7bd493c5f9a
ppBarLayout.java
22f13fd48fb232a9a29b43dc2e11dfaeef121ca3 18-Jan-2017 Chris Banes <chrisbanes@google.com> Fix some issues caught via a static analyzer
am: f83358389f

Change-Id: I75ae8adf22fe2383c554b6416e6a8ba2329885cb
725ce5fa4206ac43a772bddff1ba6ab5bbd93c23 18-Jan-2017 Chris Banes <chrisbanes@google.com> Merge "Fix some issues caught via a static analyzer" into nyc-support-25.2-dev
a347d3328db90b2d2a0cf92721a38df592ec34a9 12-Jan-2017 Yuichi Araki <yaraki@google.com> Fix gravity handling in CoordinatorLayout
am: b3db610105

Change-Id: I8477489e5ffd889f9365f87f6ec46b42f8c09888
ef58d273d3ee07366593a6dff680a1dddfe0afaa 12-Jan-2017 Yuichi Araki <yaraki@google.com> Merge "Fix gravity handling in CoordinatorLayout" into nyc-support-25.2-dev
3c651e3bbdc33a2318216261395e22925cdf6746 11-Jan-2017 Aurimas Liutikas <aurimas@google.com> Merge "Cleanup FloatingActionButton code to remove unneeded code."
898f1525796d953811fb817dfb6999fa6fdfa9a3 11-Jan-2017 Kirill Grouchnikov <kirillg@google.com> Remeasure snackbar inner layout if it's MATCH_PARENT in width
am: 1197ecfe52

Change-Id: I4c6a369d42627a48de46b7d0a00738be79b0a342
1197ecfe52db364deb52022f1496d003aaa938d3 10-Jan-2017 Kirill Grouchnikov <kirillg@google.com> Remeasure snackbar inner layout if it's MATCH_PARENT in width

Test: all the tests pass, also visual inspection on tablets
Bug: 34186126
Change-Id: I135136563647261cd842e1aec2ae9b78e1ca6901
nackbar.java
f83358389f0c4ea37a7e7d9e493857f99baf0440 07-Jan-2017 Chris Banes <chrisbanes@google.com> Fix some issues caught via a static analyzer

I concentrated on the resource leaks rather than
any possible null dereferences.

Test: all pass
Change-Id: I2eab70648068058111b6dc82ba7494a1ff0ecb32
nackbar.java
522c70ab180af24bf9777cec0a1a9b804c77c8d9 06-Jan-2017 Aurimas Liutikas <aurimas@google.com> Cleanup FloatingActionButton code to remove unneeded code.

Remove code that is no longer needed since minSdk for support library is API 14.
This code collapses FloatingActionButtonImpl, FloatingActionButtonGingerbread
and FloatingActionButtonIcs into one class.

Bug: 32794064
Test: ./gradlew clean assemble still works
Change-Id: Id20c0d1807e08ab11ece63883debe2682cfa815f
loatingActionButton.java
eb316dbe383d6bba158527b2eafa9b7c982dbd99 06-Jan-2017 Aurimas Liutikas <aurimas@google.com> Simplify ViewGroupUtils code.

We can delete the different pre API 11 implementation since now
minSdk for support library is API 14.

Bug: 32794064
Test: ./gradlew clean assemble still works
Change-Id: I6ada8869060539b1a5fd7039a343bad766c5aced
iewGroupUtils.java
ae7189188acb2bc972b08d9fbd59939f341c7829 06-Jan-2017 Aurimas Liutikas <aurimas@google.com> Move to using ValueAnimator directly instead of compat versions.

ValueAnimator can now be used directly given that our minSdk is 14.

Bug: 32794064
Test: ./gradlew clean assemble still works
Change-Id: Ibf0111b104eaea10acf33c8d54a3275fdfa0c1a4
ppBarLayout.java
aseTransientBottomBar.java
ollapsingToolbarLayout.java
loatingActionButton.java
abLayout.java
extInputLayout.java
iewUtils.java
b3db61010514ef829b0bd9b17c598138b3c27f73 20-Dec-2016 Yuichi Araki <yaraki@google.com> Fix gravity handling in CoordinatorLayout

When a child without behavior or anchor has only one axis specified as
its layout_gravity, CoL was centering the child for the other axis.

Bug: 33655774
Test: CoordinatorLayoutTest#testLayoutChildren on 9, 15, 19, 25
Change-Id: Ie56afa62491251b01355b269c9f4c0d79658da4d
oordinatorLayout.java
f60f77905f4c9f69445c99866907aae47abcb803 29-Dec-2016 Alan Viverette <alanv@google.com> resolve merge conflicts of 586091d to nyc-support-25.2-dev
am: a02811d96a

Change-Id: Ib9b279280c6edaa36fb0aa70dba01f05ea049179
a02811d96abdf33bc2690a7a6d135df2f7c9ce06 28-Dec-2016 Alan Viverette <alanv@google.com> resolve merge conflicts of 586091d to nyc-support-25.2-dev

Change-Id: Iac72334503589d12913656fff93f4d483598e760
586091d6c5a505e5c5d93c1f5017284f31494909 23-Dec-2016 Chris Banes <chrisbanes@google.com> Fix password toggle taking FOCUS_DOWN events

Pressing the TAB key sends a FOCUS_DOWN event, and
now that the EditText floats in the center, the
password toggle is actually the next vertically top focusable
view.

This CL fixes it by ensuring that the EditText has the same
min-height as the password toggle, thus making the EditText
the next focusable view.

BUG: 33771077
Test: included
Change-Id: I18f5a7e419fa6ae2b13d4081e6f3e369b67ccdbe
extInputLayout.java
f2acb8f93089ca875e08b4562f5897ccc888ba7d 15-Dec-2016 Chris Banes <chrisbanes@google.com> Stop nested scolling calling onDependentViewChanged
am: e53397216e

Change-Id: I75a7ad349f2fddd5cdda6a37356091c896e5b3e8
b3842b2bcba824ae1751b4c6d50ddc88d6295580 15-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Stop nested scolling calling onDependentViewChanged" into nyc-support-25.2-dev
5cd66d78350b76af7bf9b36290c133106206c2f6 15-Dec-2016 Chris Banes <chrisbanes@google.com> Fix AppBarLayout elevation jump on API 21-23
am: df2d45b762

Change-Id: I533af90d811bd71a9ec0d86da990b9c4bb975128
44fbe8f1ba441bab8e4130cd473c4debc3fa4e2b 15-Dec-2016 Chris Banes <chrisbanes@google.com> Fix various AppBarLayout restoration bugs
am: 2bab57ed97

Change-Id: If10d165d8593ac839a6aa449810138e48603faa1
a71f1ca7b507a6a7412b0cd19e72c803c172464d 15-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix AppBarLayout elevation jump on API 21-23" into nyc-support-25.2-dev
df2d45b76203a9c4101629005eb27059d7f80297 15-Dec-2016 Chris Banes <chrisbanes@google.com> Fix AppBarLayout elevation jump on API 21-23

Since we use a SLA now to control elevation
changes, we've hit the issue where draw dispatching
is skipped before the Activity transition finishes
on API 21-23 devices.

This results in the SLA running, but visually you see a
jump in elevation after the activity animation has
finished (and draw commences). To combat this, we now
jump the elevation change in layout.

Test: manual (impossible to automate it)
BUG: 29598367
Change-Id: Ia4f1c2168d363297b7e94ca9f4a0113e4f8ab271
ppBarLayout.java
e53397216e013cc251ed82e5645ac8e1e8947603 15-Dec-2016 Chris Banes <chrisbanes@google.com> Stop nested scolling calling onDependentViewChanged

onDependentViewChanged() should only be called if
the dependent view has moved or changed size.
Theres currently a code path where the method
can be called if a nested scroll is in progress.
This CL fixes it by gating the movement bounds
check more widely.

Test: included
BUG: 33655283
Change-Id: I06d34147c4ff6136168b1cfd6568a6fce336566e
oordinatorLayout.java
2bab57ed97f284a8152d180cca796739afa3a71d 13-Dec-2016 Chris Banes <chrisbanes@google.com> Fix various AppBarLayout restoration bugs

- Not restoring elevation
- Not restoring on min-height with status bar insets
- Not restoring when expanded="true" set in layout

Test: included
BUG: 33471543
BUG: 33510949
BUG: 33511540

Change-Id: I43b2afeaf1c2cebf0a87045314830064554e2c5d
ppBarLayout.java
598f0ea03865e69bdec0198cd5b2c6e877e92505 14-Dec-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout's hint not expanding
am: 4a3d735307

Change-Id: I2c06f648e587956fc06e1f2168d6ec348d147489
4a3d735307903fcaf89354f8c906af8381452f58 14-Dec-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout's hint not expanding

Happens when the EditText is populated with
text from the layout, etc. Caused by some
state being set wrong in the constructor,
which makes the proceeding state update
no-op, since it thinks it is already in the
state.

BUG: 33585556
Test: included
Change-Id: I34c6e9aca3c41f864974ad32fcdbb6dc829645b8
extInputLayout.java
f4ec5719a376f2d68080bbb6599dd3e38f702fbe 13-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce ViewCompat.setTooltip"
daa85ce5c5aa5d44fabf6675ede7e7be55a79034 23-Nov-2016 Vladislav Kaznacheev <kaznacheev@google.com> Introduce ViewCompat.setTooltip

This calls View.setTooltip on API26+. The fallback
implementation is a Toast-based tooltip.

Use the new method in ActionMenuItemView,
MediaRouteButton, ScrollingTabContainerView and
TabLayout.

Bug: 31516506
Test: manual in Support7Demos and SupportDesignDemos
Change-Id: I23832a2fd5b589769225a0542c2a0ce4778e673c
abLayout.java
68bc2d5e52eebadcd898427e0ae670057e2c5fb6 09-Dec-2016 Kirill Grouchnikov <kirillg@google.com> Extend offsetTopBottom vs setTranslationY to KK platform as well

Bug: 32439902
Test: CoordinatorSnackbarWithFabTest
Change-Id: Iebd264d2dc97c7c1add4dc5ee80a02938b259e6c
aseTransientBottomBar.java
499eb99fa511c40ae6970045e10e82ff0f58febf 09-Dec-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheetBehavior settling state"
bec3a177c308e2291fc3fe4c42477f6a29ae2838 08-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove unnecessary @TargetApi annotations"
c56258256768c8377a8bd527583a00a58e6585ed 08-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove deprecated isDirty method"
e22ae93397361d1bd5568fa51d82e2f7553712e1 08-Dec-2016 Alan Viverette <alanv@google.com> Remove unnecessary @TargetApi annotations

Bug: 33412815
Test: ./gradlew assemble
Change-Id: I0be3358fb97d6e637357c253f3f43f39355a643a
ppBarLayout.java
ollapsingToolbarLayout.java
loatingActionButton.java
abLayout.java
496b76b95dab1892d44cf2a5ed0fa3bdde3c7458 29-Nov-2016 Kirill Grouchnikov <kirillg@google.com> Move the now-deprecated setCallback to Snackbar

This is where it was originally, and this is where it remains
for backwards-compatibility reasons. Also fix broken tests.

This is a cherry-pick of ag/1662259 from nyc-support-25.1-dev

Test: run tests in SnackbarTest
Bug: 33192595
Change-Id: I8a12fa3bd3a8028a0f4d073b674e92227b4c58d5
aseTransientBottomBar.java
nackbar.java
724523e2596f1eb6c71e34d4437658ed22b26ff2 07-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Perform API backwards compatibility check as part of support checkApi"
62ff5d95c37aa76ab28449ae2f099b5370073727 07-Dec-2016 Alan Viverette <alanv@google.com> Perform API backwards compatibility check as part of support checkApi

Works around Doclava API check limitations in Snackbar and v17 classes.
Removes @removed code. Restores GuidedActionsStylelist API that was
removed without prior deprecation. Adds 26.0.0 to work around
non-binary-compatible changes that have been OK'ed by API Council.

Bug: 30434567
Test: ./gradlew checkApi
Change-Id: I58c8a869f4e620d2aca8765a73105c95c185c791
aseTransientBottomBar.java
nackbar.java
9a4c3517c7f2445031c9469a4989bac9dc2799cc 06-Dec-2016 Chris Banes <chrisbanes@google.com> Remove deprecated isDirty method

It was deprecated in 24.1.0 so it is long
due to be removed.

Test: compiled
BUG: 30110671
Change-Id: I95ca0cb691fd78fc7cca1ff65079f2a964f94e46
oordinatorLayout.java
5cd172fce5c3b09b5c040bbe1b8e84a170ac4f25 05-Dec-2016 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout scrim not being drawn
am: cf5f5d47bd

Change-Id: Ib341f86416232eea092c8e49740b66faa2d23dc2
42878eddd9211e296584203aca44bf4f90cbc95c 05-Dec-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of abf273c to master

Change-Id: Ib5cb55f522a95628b2b242dc533fc28cf527f1fa
e13fc03945b4ad6f24914cc010ead3640a6233f2 05-Dec-2016 Chris Banes <chrisbanes@google.com> Document Behavior handling of touch events
am: 68b5181ede

Change-Id: Id26580c77441d7a4b9d2a2729e885e0a5eaf0106
9e34c75622e53a85a686a8d457e9b648633e67da 05-Dec-2016 Chris Banes <chrisbanes@google.com> Merge "Fix CollapsingToolbarLayout scrim not being drawn" into nyc-support-25.1-dev
0b64d3f72fc638f84dd2142d48f0e232fd278042 05-Dec-2016 Chris Banes <chrisbanes@google.com> Merge "Move CoordinatorLayout to use a pool for temp Rects" into nyc-support-25.1-dev
ac12f4a608837cf1cb2a7a01f1ed8753bb9b3674 05-Dec-2016 Chris Banes <chrisbanes@google.com> Merge "Document Behavior handling of touch events" into nyc-support-25.1-dev
abf273c417a019cc52aaa7f2c096bd40f8fd55a2 28-Nov-2016 Chris Banes <chrisbanes@google.com> Move CoordinatorLayout to use a pool for temp Rects

Removes the hacky mTmpRect[*] variables which are
easy to mess up and re-use with interleaving
code-paths.

Test: all pass
BUG: 33158318

Change-Id: I4750c5cdd3f054a60ca9a228fcfe2d7bfa9b4e41
oordinatorLayout.java
b2a5b5286d801081c28e6a76ff143ac1c5448f87 01-Dec-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of c88a088 to nyc-support-25.1-dev

Change-Id: I22b9f7cfe49e76b97803a7f22b7408282a3ad867
c88a0889137e9caf87d8bd2e825cb9e7599e4eee 01-Dec-2016 Chris Banes <chrisbanes@google.com> Fix dodge rect contains check

Seems that Rect#contains() checks for non-empty
as well as contains. Fix the check so that only
views with non-empty bounds are actually dodged.

Also moved some of the code around so that we
don't do any unnecessary work just to fail fast.

Test: included
BUG: 31528047

Change-Id: I3ee0e0fe87577d02dee22a8ebd8a9e1dc031796e
oordinatorLayout.java
d7283f666ec5b3d4e3fff2b328ec04ad1022bfd3 25-Nov-2016 Yuichi Araki <yaraki@google.com> Fix Talkback on BottomSheetDialog

The bottom sheet is no longer marked as clickable.

Bug: 32548431
Test: BottomSheetDialogTest#testTouchInside, #testClickContent
Change-Id: I0870ae90f6f51fd705486f715d7e8e6e970998da
ottomSheetDialog.java
ca9c74379e9fb2b38965253836a2ab0e36990c45 29-Nov-2016 Kirill Grouchnikov <kirillg@google.com> Move the now-deprecated setCallback to Snackbar

This is where it was originally, and this is where it remains
for backwards-compatibility reasons. Also fix broken tests.

Test: run tests in SnackbarTest
Bug: 33192595
Change-Id: I644c03b6a284d7f7177916347c07fc30558e08b8
aseTransientBottomBar.java
nackbar.java
cf5f5d47bd55cd69c287b1cbd3a65b852e527ade 29-Nov-2016 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout scrim not being drawn

Test: included
BUG: 31229511
Change-Id: I0d741b58918379d451c83260958663140d4bd03a
ollapsingToolbarLayout.java
68b5181ede5cfe0c3abe42cda59e28fd73315b62 29-Nov-2016 Chris Banes <chrisbanes@google.com> Document Behavior handling of touch events

Adds sentence about how we handle view visibility.

BUG: 33134309
Test: docs build
Change-Id: If72c95d84598cafb97170be3ac4fc1ade1c096cc
oordinatorLayout.java
6a16e82d7733cfdb0dab807772c477c1ee1471ac 29-Nov-2016 Chris Banes <chrisbanes@google.com> Revert "Don't dispatch touch events to Behaviors to all views"
am: d50f319494

Change-Id: I49c41833a1917f845dae6f78de68b461158d328a
ab324436c729ab39010d8d6869519d16c7be563b 29-Nov-2016 Chris Banes <chrisbanes@google.com> Merge "Revert "Don't dispatch touch events to Behaviors to all views"" into nyc-support-25.1-dev
d50f31949492e65ffc49b0ef74bebecdc2dc417e 29-Nov-2016 Chris Banes <chrisbanes@google.com> Revert "Don't dispatch touch events to Behaviors to all views"

This reverts commit 4a5dd898048a920452692c99896ef8782d71e09b.

Change-Id: I9d29930c367d562a60ff173adf53799156d56179
oordinatorLayout.java
5347bf6b48710e49eb2058403329bf821883959f 25-Nov-2016 Yuichi Araki <yaraki@google.com> Fix BottomSheetBehavior settling state

BottomSheetBehavior#checkSetState was stuck in settling state if the
peek height is as tall as the expanded state.

Test: BottomSheetBehaviorTest#testExpandedPeekHeight
Bug: 31756143
Change-Id: I6e3c4145d545d799b028e5f4fb0ff205f4ec1d0f
ottomSheetBehavior.java
0b6dc078c2f2eaf6e19af1fd08a39911554a53b0 28-Nov-2016 Chris Banes <chrisbanes@google.com> Fix CoordinatorLayout inset tests am: f073132a9b
am: 5449394ea3

Change-Id: I1c60ce37e02da2a240ba773751ec5c9a2ac1e331
5449394ea30fd42d5051db1af8843b16b98ba36e 28-Nov-2016 Chris Banes <chrisbanes@google.com> Fix CoordinatorLayout inset tests
am: f073132a9b

Change-Id: I87fc111451c80b6f010548959350eed613dc1218
4b9c89ae01d9aed5c593735339195504794daba8 28-Nov-2016 Chris Banes <chrisbanes@google.com> Small TextInputLayout label fixes
am: 964604ee8f

Change-Id: Ie2bc4ff82ef71c45faba0362e871dcf2892f88f5
b1d1c0478c81b1319d1c3fb2970e09380adf2091 28-Nov-2016 Chris Banes <chrisbanes@google.com> Merge "Small TextInputLayout label fixes" into nyc-support-25.1-dev
342b65186bfdd84f82f9c80a32b202469344d1b4 28-Nov-2016 Chris Banes <chrisbanes@google.com> Don't dispatch touch events to Behaviors to all views
am: 4a5dd89804

Change-Id: I2678b37c81adf6432e559e9a044f05f5cb0e6653
4a5dd898048a920452692c99896ef8782d71e09b 28-Nov-2016 Chris Banes <chrisbanes@google.com> Don't dispatch touch events to Behaviors to all views

We should only be dispatching these events to
Behaviors with views which are visibile.

BUG: 33134309
Test: included
Change-Id: I3c9b442dfa00bc6e0fbe1e0ea5969536f988e663
oordinatorLayout.java
f073132a9b840d5bf3137e067d35264d0c4bad92 28-Nov-2016 Chris Banes <chrisbanes@google.com> Fix CoordinatorLayout inset tests

Caused by a Rect being re-used when it shouldn't
be. Fixed for now by adding another temporary
rect.

Test: passes on 10-24
BUG: 31528047
Change-Id: I4053127a792799b4b4b4f184e8a296d4a76f0edd
oordinatorLayout.java
7d8735080c47c533dd58d2ce661c66eed5b5e6c0 25-Nov-2016 Aurimas Liutikas <aurimas@google.com> Clarify how to select BottomNavigationView active item.
am: bd9914de4a

Change-Id: I37d1bc94900b6eb36e9e9047cd7cbef6b5b3ee05
84e1e864c52ceb18dfa76eeabc9726f84d774b63 25-Nov-2016 Chris Banes <chrisbanes@google.com> Possibly fix IllegalArgumentException for dodge insets am: c3e71f0d47 am: 406a0125b1 am: e427066cde
am: 43ecd0a543

Change-Id: Ibd3d0e410e30bd53e21959f0bc27fc37056f2594
245f6b0f5f502171d2e0d82df42f5b29895711df 25-Nov-2016 Chris Banes <chrisbanes@google.com> Possibly fix IllegalArgumentException for dodge insets
am: c3e71f0d47

Change-Id: I791373a8463dd3592334920233f08a9e089eb0ba
fd9094cf547f3b30ba63c32ba456c828daacff52 25-Nov-2016 Chris Banes <chrisbanes@google.com> Fix FAB showing as pressed when the user drags off it
am: cd2d929720

Change-Id: I810945af0c5c5685a3f077c72e870b3f59d07510
964604ee8fa1edb130f90a0e9957fc2a12bdd55f 22-Nov-2016 Chris Banes <chrisbanes@google.com> Small TextInputLayout label fixes

- Uses AppCompatTextView to support themeable CSLs
for text colors.
- Makes setTypeface() work for all TIL managed and created
text.
- Added setErrorTextAppearance

Test: included
BUG: 31502101
BUG: 32959058

Change-Id: I34f4381b4cf9784342ef457dc99810724edf1751
extInputLayout.java
bd9914de4a913ba96c5039076dbcc37f1ecff232 24-Nov-2016 Aurimas Liutikas <aurimas@google.com> Clarify how to select BottomNavigationView active item.

Test: generateDocs still works
Change-Id: I543f27e0306b4800b6faa4595c84d0dd3a22703e
ottomNavigationView.java
099115399b63ce5e24da28017a2266379bd26930 23-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix FAB showing as pressed when the user drags off it" into nyc-support-25.1-dev
c3e71f0d47d0b80ee0538e595cc9e98538ed380a 23-Nov-2016 Chris Banes <chrisbanes@google.com> Possibly fix IllegalArgumentException for dodge insets

Using intersect for the check is actually incorrect,
since we want the resulting rect to be within the
view's bounds, therefore contains() is more appropriate.

Also added more debug info to the exception in case this
doesn't fix it.

Test: haven't been able to repro
BUG: 31528047
Change-Id: I4e72e3f8788b98d9234eb2ed4366045e29f1d72e
oordinatorLayout.java
77d397d533d04dfec663939692f2e048a072ee5b 23-Nov-2016 Alan Viverette <alanv@google.com> Perform API backwards compatibility check as part of support checkApi

Works around Doclava API check limitations in Snackbar and v17 classes.
Removes @removed code. Restores GuidedActionsStylelist API that was
removed without prior deprecation.

Bug: 30434567
Change-Id: I58c8a869f4e620d2aca8765a73105c95c185c791
aseTransientBottomBar.java
nackbar.java
cd2d92972081d8f69c31620f54a9d6d32b0b00c5 16-Nov-2016 Chris Banes <chrisbanes@google.com> Fix FAB showing as pressed when the user drags off it

Test: included
BUG: 30588752

Change-Id: I7a4062c57076316e16baccc68d31bd8e595f06c0
loatingActionButton.java
1256b3e56242cdc6fc297bc26b27857149972db2 22-Nov-2016 Chris Banes <chrisbanes@google.com> Fix accessibility for password toggle button
am: 907eab4454

Change-Id: Ice7371d773e2242170b9efa832bb2d11e78a4419
ce68d2b2f605e85c22fe6453d10610d2d40d09f1 22-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix accessibility for password toggle button" into nyc-support-25.1-dev
ae7724db7d0732cc0abd1f8d5d9cb5d9b45d19c0 22-Nov-2016 Chris Banes <chrisbanes@google.com> Don't dispatch nested scroll events to GONE views
am: 829400b805

Change-Id: Ib8266a7d907ade8845ff8ebbae62646131dc0703
e47578f12b31591ae984b97a9746e6beeaeb093b 22-Nov-2016 Chris Banes <chrisbanes@google.com> Merge "Don't dispatch nested scroll events to GONE views" into nyc-support-25.1-dev
00834368f8f1ad9bae181b5b34ff65ac572dae2e 21-Nov-2016 Aurimas Liutikas <aurimas@google.com> resolve merge conflicts of 8e10080 to master

Change-Id: I48e02631e7622097e9c556602485a7cdf96dcf21
829400b80567896e71227641fbdba8da2ad79b91 21-Nov-2016 Chris Banes <chrisbanes@google.com> Don't dispatch nested scroll events to GONE views

Also added a test which tests the basics
of nested scrolling dispatching in CoordinatorLayout.

Test: included
BUG: 32906215
Change-Id: Ie7f736d18d6536aecd0375330efe9acc21e117c3
oordinatorLayout.java
907eab44547b2f590b3e3c75758ab6ef2e68528f 21-Nov-2016 Chris Banes <chrisbanes@google.com> Fix accessibility for password toggle button

- Set default content description for password toggle
- Ensure it is at least 48dp wide/tall

Test: included
BUG: 31011316
BUG: 32623221

Change-Id: I9c0c1659b37f40a072b5bf1c01c7049a1e02adbd
extInputLayout.java
8e10080c914d1ad0784394fa3026b85535535847 18-Nov-2016 Aurimas Liutikas <aurimas@google.com> Move from GROUP_ID to LIBRARY_GROUP annotations

- GROUP_ID was deprecated in favor of LIBRARY_GROUP.
- Fix import order in touched files.

Test: ./gradlew assemble assembleAndroidTest
Change-Id: I2a774e93215090f42262fb86cf8e841f2a546a4f
ppBarLayout.java
aseTransientBottomBar.java
ottomSheetBehavior.java
heckableImageButton.java
ollapsingToolbarLayout.java
oordinatorLayout.java
loatingActionButton.java
avigationView.java
nackbar.java
wipeDismissBehavior.java
abLayout.java
b66a8bd5efdcd71a2c2da8cff473e74e3659fbbf 16-Nov-2016 Yuichi Araki <yaraki@google.com> Handle ACTION_DISMISS in BottomSheetDialog
am: 4d6a96371a

Change-Id: Ide3cf4219bf3f51754632ec6eab2def757a627fb
7f0e561c79e57d67d05c6bd758525b767a57ee5f 15-Nov-2016 Kirill Grouchnikov <kirillg@google.com> Use a different API to slide snackbars on JB

Working around what appears to be a platform flakiness
with setTranslationY

Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTestWithFAB
Bug: 32439902
Change-Id: Icde0f4ccac57421a158d2b4818654109a5fca6ba
aseTransientBottomBar.java
4d6a96371a65d788a43b938df91c0dc936a19f0d 14-Nov-2016 Yuichi Araki <yaraki@google.com> Handle ACTION_DISMISS in BottomSheetDialog

Bug: 32308520
Test: manual
Change-Id: I633a5e9eada680b5a58640ea069f2ee3d888ba83
ottomSheetDialog.java
514965dc8399a04aed0aaf39f48cf6666f3e213f 10-Nov-2016 Kirill Grouchnikov <kirillg@google.com> Switch Snackbar slides to ValueAnimatorCompat.

Bug: 32439902
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTestWithFAB
Change-Id: I1f56ed7a8ac565ff2a016682d315b2f2cbe3bdf2
aseTransientBottomBar.java
27a0a2bf0a4b208294eba542aaa1c53940f52378 09-Nov-2016 Chris Banes <chrisbanes@google.com> Stop measure/layout on GONE views in CoordinatorLayout am: 5435163672
am: 5504bf1693

Change-Id: Ib32e3baa47875d1b16b3334a415324b701df06b5
5504bf16938b16c0456a52714d2297062fd7cd8e 09-Nov-2016 Chris Banes <chrisbanes@google.com> Stop measure/layout on GONE views in CoordinatorLayout
am: 5435163672

Change-Id: Ifabc1403aa3d16ce9eeaf79263dec71b5019f76e
5435163672470b5b49eeeeeab37c44ece0148e92 08-Nov-2016 Chris Banes <chrisbanes@google.com> Stop measure/layout on GONE views in CoordinatorLayout

Test: included and passes on 10-24
BUG: 32713682
Change-Id: Ie785fe3f64420850642664a0d7451e1625721127
oordinatorLayout.java
7740d10473c790b9a3f5eea8d7a0d7b65070dbd0 04-Nov-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout hint not working in extract mode am: 5eab26a2b6
am: 773434a132

Change-Id: I00a9687d8ff1ec3dd87bdb8144c697086fcaa542
773434a1329c3c4abac61f623dbf390178a96688 04-Nov-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout hint not working in extract mode
am: 5eab26a2b6

Change-Id: I0d07737edb258df66fdcb6ea33a08a27153422da
b8d98f1a52faedf56f1ee5613689fb6d4f2edd9c 04-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix TextInputLayout hint not working in extract mode" into nyc-mr1-dev
417d9281c4a4e35484e0af07ae915e1cac73136d 31-Oct-2016 Aurimas Liutikas <aurimas@google.com> BottomNavigationView javadoc fix up.
am: e1e8ec0b26

Change-Id: Ib73c34b74e9e6681a4b5b87db0ce462c96e4fd5b
d484061a5bf1efcc88e349c229e1d1acbb9befae 31-Oct-2016 Aurimas Liutikas <aurimas@google.com> Add shadow to BottomNavigationView.
am: 7ff7ddcb89

Change-Id: I85aea8320dea1fe8010a6fd5392834a7f53b22a0
99a17d3a6f08ba724c87264021ddce439423bd61 31-Oct-2016 Aurimas Liutikas <aurimas@google.com> BottomNavigationView javadoc fix up. am: e1e8ec0b26 am: 0582acf562 am: ceedf4bdd0
am: 9f35ec4734

Change-Id: Id5754907c69d8169b3f1d837ee03c1076680180a
1542508a800c7ce2e896eda3a073a6c50d26c9de 31-Oct-2016 Aurimas Liutikas <aurimas@google.com> Add shadow to BottomNavigationView. am: 7ff7ddcb89 am: 024099289d am: 54551c4f45
am: 4882724704

Change-Id: Ia281c6fc8b95e60a9a791476ec62feb868f47635
a58ff1dd874d8dddf2385ccdcb98c522ff591b14 31-Oct-2016 Chris Banes <chrisbanes@google.com> Merge "Preserve left+right compound drawables" into nyc-mr1-dev
0582acf5621ae716fb0de0ec7cf6256fcb1cdfd4 31-Oct-2016 Aurimas Liutikas <aurimas@google.com> BottomNavigationView javadoc fix up.
am: e1e8ec0b26

Change-Id: Ia8a46ae0b7c4559cde5d998803063189895671af
498c267573ddbdef66271e144af6b006c4d74742 31-Oct-2016 Aurimas Liutikas <aurimas@google.com> Merge "BottomNavigationView javadoc fix up." into nyc-mr1-dev
848fcae3832b82b3a691783812e92fafa62aad9c 24-Oct-2016 Chris Banes <chrisbanes@google.com> Preserve left+right compound drawables

Caused by the logic to remove the password dummy
compound drawable ran all the time, even when it
didn't need to. Due to the way that TextView returns
relative drawables when absolutely set, this meant that
custom set compounds were wiped out.

Fixed making that logic only run when it needs to.
This still means that absolute set compounds are wiped
out when the password toggle is actually used. Added
documentation to explain.

Test: included
BUG: 32326780

Change-Id: I80e7c8f504c07bca437038167f6240dddf4bfe7f
extInputLayout.java
5eab26a2b69541802a2c66cb012a075726bca8c9 31-Oct-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout hint not working in extract mode

Test: included
BUG: 31621289
Change-Id: I47c2f2254cb54a6dd430ea754e623318b2acacb3
extInputEditText.java
4d8f9575991de10bf76876c841b23fdb8d3b35c4 24-Oct-2016 Chris Banes <chrisbanes@google.com> Preserve left+right compound drawables

Caused by the logic to remove the password dummy
compound drawable ran all the time, even when it
didn't need to. Due to the way that TextView returns
relative drawables when absolutely set, this meant that
custom set compounds were wiped out.

Fixed making that logic only run when it needs to.
This still means that absolute set compounds are wiped
out when the password toggle is actually used. Added
documentation to explain.

Test: included
BUG: 32326780

Change-Id: I80e7c8f504c07bca437038167f6240dddf4bfe7f
extInputLayout.java
7ff7ddcb8984e76745b37be485720773d6041328 27-Oct-2016 Aurimas Liutikas <aurimas@google.com> Add shadow to BottomNavigationView.

- Adds elevation for API 21+
- Adds a gray divider for older platforms

Bug: 32394780
Change-Id: Ief55f4a7801db103c654c94d1f79e0c63c597201
ottomNavigationView.java
5fa3fd281ab74ca1dbc56550e830fe2ef9682da6 27-Oct-2016 Aurimas Liutikas <aurimas@google.com> resolve merge conflicts of 9e1bec8 to master

Change-Id: Ia992f6a6995d30961d7a258337102da792561d5f
80c46a0294ce910b675c27326cd677a724ddd7bf 26-Oct-2016 Aurimas Liutikas <aurimas@google.com> Fix crash when adding items to BottomNavigationView.

BottomNavigationView would crash when trying to add items without calling
menu inflation first as it was did not initialize the menu object correctly
in such case.

Bug: 32325084
Test: added BottomNavigationViewTest#testAddItemsWithoutMenuInflation that
now passes with my patch.

Change-Id: Id7597d38596f1e55b1dea1b1ff699868101381e4
ottomNavigationView.java
5f006fe9d3c4c9b8883f7755c42fdf3833d6b8a7 26-Oct-2016 Aurimas Liutikas <aurimas@google.com> Start using return value of OnNavigationItemSelectedListener. am: 578015fc3e am: a502cd075f am: ba4b4c48c7
am: 9fdc2c22a0

Change-Id: Ia9b3c0bd39b7c38beade606f7f311a12bfe5bad8
e1e8ec0b26b8408a4da17729a8df33d0f04f0ccc 26-Oct-2016 Aurimas Liutikas <aurimas@google.com> BottomNavigationView javadoc fix up.

Follow up from ag/1576146

Test: None
Change-Id: I291f23347b7f15f5012228c2a517c73a7f6f050a
ottomNavigationView.java
578015fc3e5ddc0fdb95db7ad0d00822c54be6df 25-Oct-2016 Aurimas Liutikas <aurimas@google.com> Start using return value of OnNavigationItemSelectedListener.

Previously returning false in OnNavigationItemSelectedListener did not
affect the selected state of BottomNavigationView. This CL makes it so
that we start using that return value correctly.

Bug: 32336558
Test: expanded BottomNavigationViewTest#testNavigationSelectionListener
Change-Id: Id091acf5c4bc67b7db35477b43b17c966d87ff86
ottomNavigationView.java
362dc949beca08992da40f6bdc08b9a07530c5fd 19-Oct-2016 Chet Haase <chet@google.com> Clean up BottomBar docs

Test: made sure docs target build, results looked reasonable
Bug: 32270959 clean up example in BottomNavigationView header docs
Change-Id: Ie27b07ae6b34da60942b448e61386f0a254691e5
ottomNavigationView.java
5052de301c378b3d8947c210313147e94fa20a97 29-Sep-2016 Aurimas Liutikas <aurimas@google.com> Clean-up BottomNavigationMenuView#onMeasure and other style fixes.

Test: existing tests + manually ran SupportDesignDemos on Nexus 5X 7.0
Change-Id: I32122d77c633b52ba2572308129efc3185f2d696
ottomNavigationView.java
8f886fe8c7e23fe6ccb8734167c960c2ed3429c3 25-Oct-2016 Alan Viverette <alanv@google.com> Annotate support classes with RequiresApi / TargetApi

Also inlines version codes in SDK_INT checks so that lint
understands them. Removes some unnecessary TargetApi annotations.

Bug: 29630077
Change-Id: I67a9235480ca14711b0496a54beca5c0e6c6b2d1
ppBarLayout.java
ollapsingToolbarLayout.java
73c5aabec92eff5417a06f84459d7f39470851e4 20-Oct-2016 Aurimas Liutikas <aurimas@google.com> Merge "Do not attempt to update GONE childen of CoordinatorLayout."
8c153ac8980737c4292ae1c019c69471607b3859 11-Oct-2016 Kirill Grouchnikov <kirillg@google.com> Remove flakiness / race condition in snackbar tests

Instead of artifical timeouts and race condition in waiting
for snackbar's dismissal in a loop, use Espresso's IdlingResource
to reliably wait until the snackbar has been shown or
dismissed.

Also align the API surface of snackbar's callbacks with DrawerLayout's
listeners, allowing registering more than one callback, and removing
registered callbacks.

Bug: 32022732
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.CustomSnackbarTest
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTest
Change-Id: If8f8415b6453d75cb24a022b2d7d676f7649542c
aseTransientBottomBar.java
2a6de19abd05a25e956cd9a62e7069480637ccc4 20-Oct-2016 Chris Banes <chrisbanes@google.com> Merge "Sync password toggle view after being re-enabled"
8a1af70673dea593745d0c63356f88603aab2450 20-Oct-2016 Aurimas Liutikas <aurimas@google.com> Do not attempt to update GONE childen of CoordinatorLayout.

Attempting to offsetChildToAnchor on a GONE child would result in
always calling onDependentViewChanged as GONE views return empty rect
in CoordinatorLayout#getChildRect.

Test: AppBarWithCollapsingToolbarTest#testPinnedToolbarAndAnchoredFab
now passes on ICS API 15. It used to fail because CoordinatorLayout
would keep the loop busy with constantly calling onDependentViewChanged
to FloatingActionBar behavior.

Change-Id: If9ac02024782d799645e3e5537e46d487ecb6e52
oordinatorLayout.java
6f51cc026f499c095cb4259c5480eb8c44635ec3 19-Oct-2016 Chet Haase <chet@google.com> Clean up BottomBar docs

Test: made sure docs target build, results looked reasonable
Bug: 32270959 clean up example in BottomNavigationView header docs
Change-Id: Ie27b07ae6b34da60942b448e61386f0a254691e5
ottomNavigationView.java
c9a94ee49e214156e038cfd04503a67f03f4c6e3 19-Oct-2016 Chris Banes <chrisbanes@google.com> Sync password toggle view after being re-enabled

Test: included
BUG: 32260179

Change-Id: Ifdb95ddaf5949b73941d968b2312b43882745d88
extInputLayout.java
1f308230a8f1266c27bffc37fbbe7780aacc1ebd 07-Oct-2016 Alan Viverette <alanv@google.com> Fix CoordinatorLayout IllegalArgumentException crash am: f42b1d0113 am: 943958d2b3
am: fbeb10907c

Change-Id: Ie3342f649fcbda77f5bcba0b8df2341792fc4c85
baa44c7e34d35c5aec759edd57a0833e31417379 06-Oct-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Support custom views on snackbars"
f42b1d01133891273cc97ccf37e86e899f7e62b1 06-Oct-2016 Alan Viverette <alanv@google.com> Fix CoordinatorLayout IllegalArgumentException crash

If offsetChildByInset() gets called before the child has been laid out,
we don't have any bounds to work with and we should abort immediately.

Bug: 31528047
Test: CoordinatorLayoutTest#testDodgeInsetBeforeLayout()
Change-Id: I2262a36460f36e6dfffcfaed2da93fcbfdee9ebd
oordinatorLayout.java
8da7b24b08afba7ec155a371117df018bcc25eef 26-Sep-2016 Kirill Grouchnikov <kirillg@google.com> Support custom views on snackbars

Split the existing Snackbar class into two - the base class
with the common functionality for the lifecycle management
and action, and the extending class that "adds" a text message.

The extending class maintains the existing API surface.

This CL has sample code for a custom snackbar in SupportDesignDemo,
as well as unit tests in CustomSnackbarTest class.

Bug: 31658766
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTest
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.CustomSnackbarTest
Test: ./gradlew support-design-demos:assembleDebug; adb install -d -r ../../out/host/gradle/frameworks/support/support-design-demos/build/outputs/apk/support-design-demos-debug.apk
Change-Id: Ic042ad84f56645b48ad6a4d46e22a8e9352f5268
aseTransientBottomBar.java
nackbar.java
a9e2fb6a1bd9fbc154ac4af0a23fbc4dedf3f2c4 04-Oct-2016 Aurimas Liutikas <aurimas@google.com> Merge "Fix TextInputLayout label animation when restoring state."
5e79099e88dde56419ae389402b8afa1c15809b1 03-Oct-2016 Aurimas Liutikas <aurimas@google.com> Merge "Clean-up BottomNavigationMenuView#onMeasure and other style fixes."
ccce057c9547d27a1da649449ede4f576ec7ddd3 30-Sep-2016 Aurimas Liutikas <aurimas@google.com> Fix TextInputLayout label animation when restoring state.

TextInputLayout used to animate the hint when restoring the state
of the view in onRestoreInstanceState. This change adds a check
not to animate the hint label during restore.

This change also fixes up some style issues in TextInputLayout

Bug: 31837263
Test: TextInputLayoutTest#testSaveRestoreStateAnimation
Change-Id: I186e040c3b1706fe078a7d59644d2fc096086131
extInputLayout.java
9c4ba2d0f9ffcd7046735eb8b5e647ccbd418855 29-Sep-2016 Aurimas Liutikas <aurimas@google.com> Clean-up BottomNavigationMenuView#onMeasure and other style fixes.

Test: existing tests + manually ran SupportDesignDemos on Nexus 5X 7.0
Change-Id: I32122d77c633b52ba2572308129efc3185f2d696
ottomNavigationView.java
ad59b7b642517cf7dc9f911c6649ce6677468fad 30-Sep-2016 Alan Viverette <alanv@google.com> Update docs for TextInputLayout and ActivityCompat am: 9c4d0da581 am: 879316ef1a
am: f367c266c0

Change-Id: I5016f2db50a4c0c91abb8425190e2f84b60425dd
9c4d0da58105d061bdf1fd4fb835cbc1c7ee0c31 29-Sep-2016 Alan Viverette <alanv@google.com> Update docs for TextInputLayout and ActivityCompat

Accounts for TIL's FrameLayout injection and changes to framework docs
for Activity#requestPermissions.

Bug: 31804707
Bug: 31267563
Change-Id: If7c6a376ba0440146b13effe45bd36690c37796d
extInputLayout.java
536e5b299907a6c086fb0ca28c677daeae4d9767 26-Sep-2016 Alan Viverette <alanv@google.com> Set background on correct view am: 1ad6282d03 am: 05808cb042
am: 4d3e596a33

Change-Id: I8d96f0a066dd8cb89008c4051ab8fe319da50212
1ad6282d03b18ea53c1fe06c687751354cdafa75 26-Sep-2016 Alan Viverette <alanv@google.com> Set background on correct view

Bug: 31663756
Test: TextInputLayoutTest#testDrawableStateChanged
Change-Id: Ifab1595fb207d826801a001b1da208b985ade6e1
extInputLayout.java
2761ce7a347c5dffb1aabf5ca7d2249f54b78c10 24-Sep-2016 Aurimas Liutikas <aurimas@google.com> Revert "Set background on correct view" am: e0df1ae2d3 am: 7c72b7692d
am: 4fd2d78794

Change-Id: I3bb5e60721b59d10b63b92b99724f3eb556e3ccb
e0df1ae2d306be2b319f6384947faeaeeb310042 24-Sep-2016 Aurimas Liutikas <aurimas@google.com> Revert "Set background on correct view"

This change broke the build https://android-build.googleplex.com/builds/submitted/3300826/support_test_apks/latest/logs

This reverts commit def71dc0849a49f73f7a09de1e00d8ef4188f4b6.

Change-Id: I628376f0e37914380aef9f8cac006dc1f6ae4f86
extInputLayout.java
e352ee328d1721558d3241dc7f870a7053e72b0f 23-Sep-2016 Alan Viverette <alanv@google.com> Set background on correct view am: def71dc084 am: 2ece92286d
am: 3521826efa

Change-Id: Ibedd0bcd026a62cfd2a743dbc5945f70a1f98969
6efa7f23d91fb036b11b884b5122b3302b927c23 23-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Implement custom pointer icon for widgets in support lib"
155d8e15c8f1b959196c16555c54d19a5ccafe99 21-Sep-2016 Vladislav Kaznacheev <kaznacheev@google.com> Implement custom pointer icon for widgets in support lib

BottomNavigationItemView and TabLayout now display
PointerIcon.TYPE_HAND when hovered.

Bug: 31652293
Change-Id: I6cf4690f7cdf85eed04609c169f0b60bce044674
abLayout.java
def71dc0849a49f73f7a09de1e00d8ef4188f4b6 22-Sep-2016 Alan Viverette <alanv@google.com> Set background on correct view

Bug: 31663756
Test: TextInputLayoutTest#testDrawableStateChanged
Change-Id: I5022d4002ac23452774038696fddae14773947df
extInputLayout.java
22d6fb917508fc44357a5d6e627ca14b7b2be2d8 12-Sep-2016 Yuichi Araki <yaraki@google.com> BottomSheetDialog is canceled when swiped down
am: 5951109510

Change-Id: Id84536f68371d295448fda5cb8337b5ae93c5af2
845f379018d1017a4a34cdf4ecb192e1978d74e9 12-Sep-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheetDialog is canceled when swiped down" into nyc-mr1-dev
3d039d19e57ebf44185b9b58b9705a3b6af88971 09-Sep-2016 Chris Banes <chrisbanes@google.com> Fix title not showing when AppBarLayout initially collapsed
am: 824644fc70

Change-Id: I875b43e6cca48b7b0a31b9e3f7e2111e34e438d1
e46464087af20f6d4d553cc43d76e2f00fab0aa5 09-Sep-2016 Chris Banes <chrisbanes@google.com> Make expanded title bounds start from top of Toolbar
am: e4b06c0846

Change-Id: Ib8298000feaa0f92a24623f98f8677d3aaaef5f2
ea650460b67457efe95675d803b1a08c052efe10 09-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix title not showing when AppBarLayout initially collapsed" into nyc-mr1-dev
6f828f29f972e4af9e61cc0ae24afc1ef853fa28 09-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make expanded title bounds start from top of Toolbar" into nyc-mr1-dev
e4b06c084675ff1e902212c51f3fb8d9a27533eb 09-Sep-2016 Chris Banes <chrisbanes@google.com> Make expanded title bounds start from top of Toolbar

Currently they're from the top of the CTL, which isn't
quite correct when the CTL is consuming insets.
Developers expect these bounds to be similar to the
collapsed bounds, therefore we will start them
from the top of the Toolbar.

This allows consistency of setting a top margin,
regardless of whether the view is using a transparent
status bar or not.

BUG: 31392796

Change-Id: I54dddfd038bce90acb2299d8b85958ac736ae16d
ollapsingToolbarLayout.java
c39d9c75590eca86a5e7e32a8824ba04a0d42e9b 25-Aug-2016 Alan Viverette <alanv@google.com> Add @RestrictTo(GROUP_ID) annotations to match @hide docs annotations

Also removes some unnecessary @hide annotations on classes that wouldn't
have shown up in docs anyway due to package/private visibility or NO_DOCS.

Bug: 27937193
Change-Id: Iab127a5a3ce57a2d61965d3cef782621eb3859f5
ppBarLayout.java
ottomSheetBehavior.java
heckableImageButton.java
ollapsingToolbarLayout.java
oordinatorLayout.java
loatingActionButton.java
avigationView.java
nackbar.java
wipeDismissBehavior.java
abLayout.java
824644fc70d5fd36bcd4c1e155c1279aebcac007 09-Sep-2016 Chris Banes <chrisbanes@google.com> Fix title not showing when AppBarLayout initially collapsed

Also fixed restoring the position when rotated
and the AppBarLayout drawing in the insets.

BUG: 31371104

Change-Id: I60d6226548d63841e92bf68415d58f6cde6d02c3
ppBarLayout.java
ollapsingToolbarLayout.java
dc565e8a7dd1c62201325b98e69642a64b96a4bb 07-Sep-2016 Chris Banes <chrisbanes@google.com> Fix flickering for anchored + inset dodging views
am: 6f5e71c633

Change-Id: I84fc0ebe9eb1ed080f44a813d998e0207d35278a
eabc8679777cd73c397f12707bdeb1de41c521c1 07-Sep-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout regressions
am: 46c7710bb8

Change-Id: Id3c713f4aba70527d83b570b055dffd792bd4a21
59511095104678ad006835679944aab43b6f269b 30-Aug-2016 Yuichi Araki <yaraki@google.com> BottomSheetDialog is canceled when swiped down

Bug: 31162939
Change-Id: If8e95cf3413ab1132230a474d3b60de2b29b77a4
ottomSheetDialog.java
4878d70139b883f55a6be288d7d930c6068c0977 07-Sep-2016 Yuichi Araki <yaraki@google.com> BottomSheet slideOffset when peekHeight is auto
am: e9864e3df0

Change-Id: Ibf467f85431ce82406be0ab4772392f20a1012e3
96a3a5a841741fddc3773f35a22e31cded6bbdd8 06-Sep-2016 Aurimas Liutikas <aurimas@google.com> Remove all the extra accessor methods added by javac in support-design.
am: 657ea1100f

Change-Id: I762e3378d1c7e82139e9f04c3f750324ffd9851c
0c350f7a61259f7313b44eab8190d05454e05963 06-Sep-2016 Aurimas Liutikas <aurimas@google.com> Merge "Fix Javadoc method reference in CollapsingToolbarLayout." into nyc-mr1-dev
e9864e3df037a1a5610752c6addc4d71e6b292c7 01-Sep-2016 Yuichi Araki <yaraki@google.com> BottomSheet slideOffset when peekHeight is auto

As we introduced PEEK_HEIGHT_AUTO, we cannot rely on mPeekHeight to have
a meaninful value. Use mParentHeight and mMaxOffset instead as they are
always dynamically calculated values.

Bug: 31208971
Change-Id: Ic7d9f521faf6993a7c6e86357d4beb23e5e39137
ottomSheetBehavior.java
46c7710bb85caf75eb26940d82ece7797f1fc8d7 31-Aug-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout regressions

- Fix handling of compound drawables in EditText
- Handle null EditText

BUG: 31167752
BUG: 31209364

Change-Id: Id27c8b2f2c5e73bc36c2d42c51a5b75712749529
extInputLayout.java
6f5e71c633625183188ddd567bab27e8b81c6bff 31-Aug-2016 Chris Banes <chrisbanes@google.com> Fix flickering for anchored + inset dodging views

Caused by two issues:

The first is that we use the stored dodge-offsets
at layout. This is unnecessary since we can just
apply them at draw-time, similar to anchoring
(done in CL).

The second is triggered by the first. We were
calculating the dodge-offsets on hidden views, which
resulted in us storing garbage offset values.
When the view is later shown, its laid out
using the garbage offset, resulting in it being in
the wrong place until the next pre-draw kicks in.
Fixed by skipping non-visible views.

Also stopped ignoring return value of intersect()
and throw an IAE if given rect is not suitable.

BUG: 31031905
BUG: 30771443

Change-Id: Ib546b0c3623d47a7f33dc085b36bbdd33db2cb8e
oordinatorLayout.java
caab1e012b7a6102077eeb2513c3c41665f6ddac 27-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix Javadoc method reference in CollapsingToolbarLayout.

Change-Id: Ib63c1752001ae4a1f98c2c29fb678f561bf48125
ollapsingToolbarLayout.java
91c0da072d942eb0da9b44e0b67eda6a49b38770 27-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding shifting mode to BottomNavigationView." into nyc-mr1-dev
cc016a74d8ed4ebd67fe5d231be78777ad4f3bf6 26-Aug-2016 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout not consuming insets
am: 40c8b62219

Change-Id: I07ff1bcf166693ba43948fd4281729169be9ff5b
46c5f57e45b1a766db87488ceb82cad4a5e4c0a7 26-Aug-2016 Chris Banes <chrisbanes@google.com> Merge "Fix CollapsingToolbarLayout not consuming insets" into nyc-support-24.1-dev
af80a686f277f5c59c99104a35b5fd3139b6931f 26-Aug-2016 Yuichi Araki <yaraki@google.com> Fix ViewDragHelper usage in BottomSheetBehavior
am: 6cb44089e8

Change-Id: I6fa108e94b7bb0130d06cdae27a1ce1d68faa490
657ea1100fee4750f148f9d0dcb7e7e2028f105e 25-Aug-2016 Aurimas Liutikas <aurimas@google.com> Remove all the extra accessor methods added by javac in support-design.

Change private methods to be package protected to avoid extra methods
that get added to be able to access them from inner classes.

This CL saves 138 methods in our jar.

Bug: 31075707
Change-Id: I9ee192652fe005957e28ccfe35c9707be242aac1
ppBarLayout.java
ottomSheetBehavior.java
ottomSheetDialog.java
ollapsingToolbarLayout.java
oordinatorLayout.java
loatingActionButton.java
eaderBehavior.java
avigationView.java
nackbar.java
nackbarManager.java
wipeDismissBehavior.java
abLayout.java
extInputLayout.java
iewGroupUtils.java
3cc432a5bd723a79dc52438235b47d0ea5d41ae4 19-Aug-2016 Aurimas Liutikas <aurimas@google.com> Adding shifting mode to BottomNavigationView.

This change adds a new mode to BottomNavigationView that
follow the https://material.google.com/components/bottom-navigation.html
spec.

Bug: 27675079

Change-Id: I868bc3c8cedd39c4e5a66c3c0ffbadff93bdf329
ottomNavigationView.java
40c8b62219fb73af42b73add6376885bf6d40adf 24-Aug-2016 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout not consuming insets

CollapsingToolbarLayout was set to no longer consumes
insets in Ib34219f1ba60901d973eea96c7453be46d9bf555.
Due to that the insets were then dispatched down to children
with fitSystemWindows="true". Unless those children had an
appropriate OnApplyWindowInsetsListener/fitSystemWindows,
they would get the default fitSystemWindows padding
functionality, which is unwanted here.

This CL fixes it by making CollapsingToolbarLayout consume
the insets.

BUG: 31011190
Change-Id: I178856473543eab4538db6194282a2d6cab632f9
ollapsingToolbarLayout.java
6cb44089e8c7a5abf8aa7a0cdff3cb6888790708 23-Aug-2016 Yuichi Araki <yaraki@google.com> Fix ViewDragHelper usage in BottomSheetBehavior

BottomSheetBehavior no longer sends ACTION_MOVE to ViewDragHelper if
ACTION_DOWN has not been sent.

Bug: 29934950
Change-Id: I9bc5c53f53f98a372b7feaf1aa85b954bd0cdf23
ottomSheetBehavior.java
ce079f97f27b75c934eebc177f2a7117137818a6 23-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix usages of deprecated methods in support-design code.
am: 7b75d53b8e

Change-Id: I7c4b8a3f05018caee611f15233b611ebaf2b7626
6ff96f58e00664a867b9f9e8e900ca190a82ebf4 23-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix usages of deprecated methods in support-design code." into nyc-mr1-dev
c5e4c29796c7a1e96cd1e9ec9e39f3a8da96778b 23-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix all usages of deprecated setBackgroundDrawable.
am: 47082c30c6

Change-Id: I1dc1045714ce2ae6b319c3c07758721a1d4da432
4a4d1cec1a0a072e8b6fa6425949cc2f6fadfbc9 23-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix all usages of deprecated setBackgroundDrawable." into nyc-mr1-dev
7b75d53b8e5584895595f801256a3d63bb68148a 23-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix usages of deprecated methods in support-design code.

Bug: 30074170
Bug: 31017538
Change-Id: Ib62709f853ca13db889d91688c30c97ee48fbe01
abLayout.java
extInputLayout.java
47082c30c630c34829439a9eecd1cf7e8d255a86 23-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix all usages of deprecated setBackgroundDrawable.

- Adds ViewCompat#setBackground that will call setBackgroundDrawable
or setBackground depending on the version.
- Replaced usages of setBackgroundDrawable with this ViewCompat version.

Bug: 30074170
Change-Id: I756c8558608da752acd6f3ca7121114d3cd1416a
ppBarLayout.java
avigationView.java
abLayout.java
extInputLayout.java
29156a7f227f814ff0aecb3a2380e4819c4a39c7 23-Aug-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout error being magenta
am: f1ad79948d

Change-Id: Iacbbe5a049ef34da5da04ec571852b078f2ba356
3c2f33358e275fadb3a8012f71b620233876b4ca 23-Aug-2016 Chris Banes <chrisbanes@google.com> Fix FloatingActionButton with nested anchors
am: c010d657a2

Change-Id: I1207b1e5c6cff1716f68aeb83925e3024782172a
50e0a7c64f0ed59aa56c7f09ec91c0b8ec3c0dbe 23-Aug-2016 Chris Banes <chrisbanes@google.com> Merge "Fix TextInputLayout error being magenta" into nyc-support-24.1-dev
f1ad79948ddc1502a49fbec5fb11a3a8efbeb76a 22-Aug-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout error being magenta

Caused by an unresolved theme attribute on
API 23+ returning as magenta, rather than a
exception like previously.

BUG: 31005068
Change-Id: Ic7c3d4126912f5dccec12d302472d711e0752598
extInputLayout.java
c010d657a2553ba49490c3d99e0c0b056c26bad9 22-Aug-2016 Chris Banes <chrisbanes@google.com> Fix FloatingActionButton with nested anchors

BUG: 30971436
Change-Id: I62cd51a007e2941ef9a46357090778b143b2b51a
loatingActionButton.java
2f517207503fdffbcf930584a37b4a03392755d6 17-Aug-2016 Chris Banes <chrisbanes@google.com> Fix IOOBE due to internal list being updated from remove

This CL removes all prepareChildren(), leaving
only the one in onMeasure(). This makes the state
more stable since we will only update it within a
layout pass. This also reduces any unnecessary work.

BUG: 30252077
Change-Id: Ibd00a3c3ede1dd654b0ed6d1d8d8d1c8da94e57a
oordinatorLayout.java
0dcaf948ec9b788f47038876c4b8ff799df79dc6 15-Aug-2016 Aurimas Liutikas <aurimas@google.com> Stop sending OnTabSelectedListener calls with null tabs.
am: 32ae746bb6

Change-Id: I9ea902716d16c400eed624f8f531e79e0c018dd3
32ae746bb6f38afc8f346e993f1e5a816ea8edf8 13-Aug-2016 Aurimas Liutikas <aurimas@google.com> Stop sending OnTabSelectedListener calls with null tabs.

Bug: 30824831
Change-Id: Id24f740ec57b5bc9cc0b5a48f6bebf50059d4ef3
abLayout.java
f773b66be4375fece7d76287e68d832946fdf8e1 11-Aug-2016 Aurimas Liutikas <aurimas@google.com> Merge "Fix BottomSheetBehaviorTest" into nyc-mr1-dev
ebe3401f23db8eed137b2d35238faf5bd8fa8108 11-Aug-2016 Aurimas Liutikas <aurimas@google.com> Merge "DO NOT MERGE ANYWHERE Remove BottomNavigationView for 24.2 release." into nyc-support-24.1-dev
af56b22da2c5537d68b8c1446f72c2526cd08133 11-Aug-2016 Chris Banes <chrisbanes@google.com> Speculative fix for exception in CoordinatorLayout.onLayout
am: 3c9fb156e6

Change-Id: Ifc56967ad6295722b099a358cb48245a24981061
37bb8307f3a1c28c70b0b9a53ee5ed34876bea93 11-Aug-2016 Chris Banes <chrisbanes@google.com> Merge "Speculative fix for exception in CoordinatorLayout.onLayout" into nyc-support-24.1-dev
287b1dbbec6a4256f8f9d0c03012777014addbb1 10-Aug-2016 Aurimas Liutikas <aurimas@google.com> DO NOT MERGE ANYWHERE Remove BottomNavigationView for 24.2 release.

BottomNavigationView was deemed to be not in a good enough shape to ship.
This CL removes all references to BottomNavigationView in 24.2 branch.

Bug: 30426776
Change-Id: Ib03402ca86a9532f2568784b8b9af49d7929d18e
ottomNavigationView.java
a817e8a13a27837fa02fa6221f692ab963d77cbc 09-Aug-2016 Chris Banes <chrisbanes@google.com> Fix CTL title not showing sometimes
am: c3f031d8b3

Change-Id: I5ff2b491d8f4364b3fb256ffc98e7149e9062e20
a7a51521e1ecd8a009e4bd618520af05d9917671 01-Aug-2016 Yuichi Araki <yaraki@google.com> Fix BottomSheetBehaviorTest

Fix testedNestedScroll failing on ICS.

Also fix testAutoPeekHeight on landscape.

Bug: 30403598
Change-Id: Id78e56f5a92a0da8c46b16a2c329d647ae7df091
ottomSheetBehavior.java
c3f031d8b34dc50223e045e0d9447628b8c846a1 08-Aug-2016 Chris Banes <chrisbanes@google.com> Fix CTL title not showing sometimes

Happens when the collapsed bounds overlap the expanded
bounds. That normally doesn't happen, but it can happen
when the the CTL is sufficiently small.

Fixed by allowing the expanded bounds to cover the whole
CollapsingToolbarLayout. Which is what developers would
expect anyway when setting the gravity.

BUG: 30697803
Change-Id: Id2dcc480ddf8d30c7c795f09126294020d779384
ollapsingToolbarLayout.java
94ef315d4a7f2378194060b40916867da9457e77 05-Aug-2016 Alan Viverette <alanv@google.com> Merge "Ensure click sound effect plays when TabView is clicked" into nyc-mr1-dev
3c9fb156e6585049f4e8f7992542aca307f0be13 05-Aug-2016 Chris Banes <chrisbanes@google.com> Speculative fix for exception in CoordinatorLayout.onLayout

Caused by a prepareChildren call in onChildViewRemoved().
If a child is removed in the middle of a layout pass, the
count is wrong and we hit an IndexOutOfBoundsException.

Fixed by removing the prepareChildren call, which also fixes
onDependentViewRemoved() which was broken in
I1283f72c312824ee3ed1fd4b0bb7e7405f38cb2b.

BUG: 30252077

Change-Id: Ifce3178cf69685d519c859c2ebd6402b744204b1
oordinatorLayout.java
141f5ae472feb06dc6059f02cab9e88791d30449 04-Aug-2016 Alan Viverette <alanv@google.com> Ensure click sound effect plays when TabView is clicked

Bug: 30660965
Change-Id: I9f426e865c59ae489807cf3d0d7e86988dd2010a
abLayout.java
6dcd2f07828798bf84b1b9486a03d9ac271bf20f 04-Aug-2016 Chris Banes <chrisbanes@google.com> AppBarLayout + CollapsingToolbarLayout tests fixes
am: bb3740d273

Change-Id: Idf315788b60e3536563591715ff10570808d113b
bb3740d273d4b5108ab63f6d264466250a197e5b 21-Jul-2016 Chris Banes <chrisbanes@google.com> AppBarLayout + CollapsingToolbarLayout tests fixes

- Fixed flakiness due to waiting for snapping to
happen
- Tweaked the layouts so that text and content is
visible on screen (not light-on-light)
- Make tests on API 21+ use translucent status bar,
and updated tests to suit
- Fixed issues caugh while testing

BUG: 30271522
BUG: 30225781

Change-Id: I9f368cb8f059e9d3224473bf6c2ddfd2ce92cbdf
ppBarLayout.java
ollapsingToolbarLayout.java
eaderScrollingViewBehavior.java
51185e715d29af63142a984832d44f1541ffb41d 29-Jul-2016 Chris Banes <chrisbanes@google.com> Fix CoordinatorLayout scrim functionality
am: b806673aa0

Change-Id: I549e28f72788e196c38f73130aba6f70db29d696
cf94244e507256ab686863df97fe345f96e25f83 29-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "Fix CoordinatorLayout scrim functionality" into nyc-support-24.1-dev
732e85955695d7ed246e13b959ea81c8ea31a65a 29-Jul-2016 Chris Banes <chrisbanes@google.com> Fix TabLayout flickering
am: 1266ef17a6

Change-Id: Ide2eed07de5ffd20131ac61f8553c8acab4c8a9f
b806673aa0977685995be820981207f6bf51858b 29-Jul-2016 Chris Banes <chrisbanes@google.com> Fix CoordinatorLayout scrim functionality

It doesn't currently actually use the opacity provided
via getScrimOpacity(). Also fixed the todo and we now
clipRect when appropriate.

BUG: 30475007
Change-Id: I2bcef6994d2d757e6da2fca9da710ee2484da971
oordinatorLayout.java
1266ef17a626074fbd1cea8afdf0732528a87bb2 28-Jul-2016 Chris Banes <chrisbanes@google.com> Fix TabLayout flickering

Caused by I9bd2fb00daacaa07ff201a4d5f0b5c7f40cfab40,
we moved the setSelectedTabView() call outside of the
appropriate if branch.

BUG: 30456876
Change-Id: If6fe0dd4d14d59b2f82e2be30e9ba1f18e749233
abLayout.java
4f6bf829ce4e3d8fe8b02ec7fc3e8915dc7104c2 27-Jul-2016 Chris Banes <chrisbanes@google.com> Tweak AppBarLayout elevation changes
am: c07c8e1e74

Change-Id: I25a94f0443ab06f8c53ff98b11a0af07a8487740
c07c8e1e74a026c0d9e3a9dd119913436380be38 12-Jul-2016 Chris Banes <chrisbanes@google.com> Tweak AppBarLayout elevation changes

First, we've sped up the animations to 150ms, from
the default 300ms. Also simplified the state list
animation (its does exactly the same thing).

Second, we now jump the animation if we have any
overlapping scrolling views.

BUG: 29938204

Change-Id: Ie5ee85a4fe6154e318c314d0d671b367115efaf3
ppBarLayout.java
oordinatorLayout.java
a8277e3a9f25710c5f7143f0f36d39cacaf7131f 22-Jul-2016 Chris Banes <chrisbanes@google.com> Fix intercept touch handling in SwipeDismissBehavior
am: 28649d9f36

Change-Id: I0587137960e059e386678ea314b3d9f13254ed75
11dde87afd057a82d3d30260fd76831accd78b5b 22-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "Fix intercept touch handling in SwipeDismissBehavior" into nyc-support-24.1-dev
2d327db37d52341c1227ed525d5aad878428c742 21-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "Add getRippleColor to FloatingActionButton" into nyc-mr1-dev
9e55ffc2034f5c909d02d13cbe8dddacb6463367 21-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "Fix CollapsingToolbarLayout pinned views with insets" into nyc-support-24.1-dev
b6e7e4c2bcefc6bba852f9e36a02c6c2519f6466 20-Jul-2016 Chris Banes <chrisbanes@google.com> Add getRippleColor to FloatingActionButton

BUG: 30222560
Change-Id: I9ddb02950445d6c30c832e91c77228f728d2cd4f
loatingActionButton.java
c26cfaff58b502418b31f08399ac6a770bd0181c 20-Jul-2016 Chris Banes <chrisbanes@google.com> Add clearOnTabSelectedListeners() API

BUG: 30247930
Change-Id: I7553fe4a1c9f6a3712eb1345a0b08a99399d4516
abLayout.java
01e3ed2fc20cf19d29f6d33c5a97011a2f699301 18-Jul-2016 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout pinned views with insets

Caused by Ib34219f1ba60901d973eea96c7453be46d9bf555
which now ignores window insets if we're not set
to fit system windows. Since we've never explicitly
set fit system windows on CTL, we need to make sure
that it happens automatically.

BUG: 30185901

Change-Id: I1c5c4ded96ae1ac58b856dab86e97d93e7c327eb
ollapsingToolbarLayout.java
1e7611479ef9f93d5e2a533e0add29c24a23511d 15-Jul-2016 Aurimas Liutikas <aurimas@google.com> Update BottomNavigationView namespace definition for aapt2.

Bug: 30088518
Change-Id: I1009e3b893805fb09a28d846e896ef8c0e36242f
ottomNavigationView.java
03965865b0eb60842e8250c14b8f101f96f77c6d 15-Jul-2016 Aurimas Liutikas <aurimas@google.com> Merge "Two more BottomNavigationView fixes." into nyc-support-24.1-dev
a2f4dd03315ee950fef6b8211d372f15883a52aa 21-Jun-2016 Chris Banes <chrisbanes@google.com> Fix CoordinatorLayout dependency sorting

Since CoordinatorLayout allows dependency chaining
of views, a simple sort is not sufficient to handle
all cases. This CL fixes the sorting by moving us
to a topological sort based on a breadth first search.

The search is linear so should actually be slightly
quicker than the current selection sort.

Also changed some of CoordinatorLayout's internals
to use the DAG rather than the sorted list.

BUG: 29529648

Change-Id: I1283f72c312824ee3ed1fd4b0bb7e7405f38cb2b
oordinatorLayout.java
irectedAcyclicGraph.java
28649d9f3607cb977164c5b825bab7bf67d0aee0 15-Jul-2016 Chris Banes <chrisbanes@google.com> Fix intercept touch handling in SwipeDismissBehavior

Currently ACTION_UP|DOWN are never sent to the
ViewDragHelper.

BUG: 30148711
Change-Id: Idd3aeb3d4d64da5895655599a54d27762e907c21
wipeDismissBehavior.java
6206ad57276146c8f70e939fd40ce9c7b88767f6 15-Jul-2016 Yuichi Araki <yaraki@google.com> Fix inset edge of CoordinatorLayout

Views with multiple dodgeInsetEdges properly dodge all the edges.

Change-Id: I00e62bfb4d3379e4357f1b4bbfd837d9795a5f4f
oordinatorLayout.java
nackbar.java
f6a12ad68e652ba7cb2d21b9285f33a770a5e537 15-Jul-2016 Aurimas Liutikas <aurimas@google.com> Two more BottomNavigationView fixes.

- Fixes a crash of BottomNavigationView on Gingerbread
(use of 3 argument LinearLayout constructor)
- Updates Class level javadoc of BottomNavigationView.

Bug: 30128092
Bug: 30088518
Change-Id: I3b111a4ffa9dcf30a519ffbc809b9d1a5170d3d4
ottomNavigationView.java
62f611f9fd743e359d648da459e1793650915b17 14-Jul-2016 Aurimas Liutikas <aurimas@google.com> Merge "Add more fixes to BottomNavigationView." into nyc-support-24.1-dev
807974f78e4c7f415ea6c93ed3665f39fde394a7 14-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "Fix annotation of getBehavior" into nyc-support-24.1-dev
645afdf27340a6620c9970d14923b556e3c66574 14-Jul-2016 Yuichi Araki <yaraki@google.com> Add javadoc for PEEK_HEIGHT_AUTO

Bug: 30088520
Change-Id: I31dccb6e56f527989cdb36266b7f76887f2ff32c
ottomSheetBehavior.java
83418919d2c897e0639999db68831e6c470e6ff4 14-Jul-2016 Yuichi Araki <yaraki@google.com> Fix annotation of getBehavior

Change-Id: Ie28d4cff39b57ae648deac410a91dcd4ecbe6954
oordinatorLayout.java
1ca24096efc933932416645c546dbd9ac91efbeb 12-Jul-2016 Yuichi Araki <yaraki@google.com> Add javadoc for insetEdge and dodgeInsetEdges

Bug: 29417370
Change-Id: I49988e9511f037dc39aeb25140e44c3289a6ca65
oordinatorLayout.java
d38621793486c819b838030e781e94486f092012 07-Jul-2016 Aurimas Liutikas <aurimas@google.com> Add more fixes to BottomNavigationView.

- Fixes crash for fast taps of buttons where
BottomNavigationItemView#getAnimator returns null since the view
is already in the correct state.
- Added checks for illegal menus
- Max menu item check 5 items
- No submenus
- Updated the sizing of the BottomNavigationItemView.
- Adding missing getItemBackgroundResource method.

Bug: 27675079

Change-Id: I856d250d92e69925a75cf4996a1d02f91441d67c
ottomNavigationView.java
26c07a84cf70ddf44516f7009fe4ce3b5ed65513 13-Jul-2016 Chris Banes <chrisbanes@google.com> Improve CoordinatorLayout's inset edge funtionality

Currently the gravity handling only supports literal
single gravity values which makes it less useful.

Also made the edge detection work with animations by
correctly employing our pre-draw listener.

Tidied up some of the dispatch code in CoordinatorLayout
so that we have just one method which dispatches any
events. Means that we don't have to copy code everywhere.

Also added support for the functionality in Snackbar
and FloatingActionButton since that is what most people
will be trying to use it with. Removed our old baked in
functionality from FAB since we can use the new
CoordinatorLayout functionality.

BUG: 30107168

Change-Id: Ib23fa740c4c4f4f733a3894ceb2cc1a2e95b35cd
oordinatorLayout.java
loatingActionButton.java
nackbar.java
94b1a1242d91816d8e391130c9d22e9bbfa8c5cc 13-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "API review fixes" into nyc-support-24.1-dev
4cf1d92509224fab3ca69b419a005c536ab75c5c 13-Jul-2016 Chris Banes <chrisbanes@google.com> API review fixes

BUG: 30088092
BUG: 30088343

Change-Id: I3abc24bd5f7876ff12b42f13a579399123d50470
ppBarLayout.java
oordinatorLayout.java
loatingActionButton.java
93bfbc677a52c6d31bcf06a622337bc77d44a133 13-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "Add disabled support to TextInputLayout" into nyc-support-24.1-dev
ff6b133ef5d6da43261db69889c84890eff0a5f9 12-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "Fix FloatingActionButton auto offset functionality" into nyc-support-24.1-dev
ee63e6890156724477092fbfaba18b726a47710e 11-Jul-2016 Chris Banes <chrisbanes@google.com> Fix FloatingActionButton auto offset functionality

Also added a test for it

BUG: 30061839

Change-Id: If6fc8e34536e152516ccf6cecef22628c9a98a16
loatingActionButton.java
a257f2f1fe735fc3906f6da5d820b4c0e83055b5 12-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "Move FloatingActionButton shadow to use ValueAnimatorCompat" into nyc-support-24.1-dev
815960818fa583e626f5ac8cc7a314ac3bf71620 11-Jul-2016 Chris Banes <chrisbanes@google.com> Fix scrimVisibleHeightTrigger being read as an int

BUG: 29990871
Change-Id: Iededd81c3a2d4dd6eda31bc0d2034c8f40486955
ollapsingToolbarLayout.java
8a40d691aa783c2e85298e895a3e51e98606aa85 26-May-2016 Chris Banes <chrisbanes@google.com> Add disabled support to TextInputLayout

Also added ColorStateList text color support to
CollapsingTextHelper.

BUG: 28636203
Change-Id: Ibe719c0cfc5b17eaed0fb1aa95fdffee74e75c36
ollapsingTextHelper.java
ollapsingToolbarLayout.java
extInputLayout.java
5a0083cc8328f05b15efe0293b7aa83723cdd9ad 05-Jul-2016 Chris Banes <chrisbanes@google.com> Move FloatingActionButton shadow to use ValueAnimatorCompat

Moves us away from using the old custom Animation
code. Had to change some of the ValueAnimatorCompat
API, which is why this CL looks so large (it's not
really).

BUG: 29974832

Change-Id: I1f66565e0b2053556feccd746f72753ff027fc09
ppBarLayout.java
ollapsingToolbarLayout.java
loatingActionButton.java
abLayout.java
extInputLayout.java
a5c36708f8dd136f2a02a79709923630449be5b5 05-Jul-2016 Chris Banes <chrisbanes@google.com> Move support libs to use ViewCompat.offset* methods

offsetTopAndBottom and offsetLeftAndRight have various
issues across the API levels, which are worked around
in the ViewCompat versions.

BUG: 29970143
Change-Id: Ic0919f438a0c4a6bf4f2e153a6062d5aeb727db1
oordinatorLayout.java
loatingActionButton.java
943b6775f5dbe28a8ae509e685cf765937b2a76b 30-Jun-2016 Yuichi Araki <yaraki@google.com> Add layout_insetEdge and layout_dodgeInsetEdges

Add layout_insetEdge and layout_dodgeInsetEdges to CoordinatorLayout.
Views that are marked with layout_insetEdge will inset a CoL's edge.
Views that are marked with layout_dodgeInsetEdges will dodge the
specified inset edges.

The internal implementation of Snackbar-FAB relationship will be
replaced in a coming CL.

Bug: 29417370
Change-Id: Id381d8b6225f3211048dd39fd459e52224af1929
oordinatorLayout.java
5f9a5463fba574d8b33fd757b3e78b2b3613cb82 04-Jul-2016 Chris Banes <chrisbanes@google.com> Deprecated now unused isDirty() Behavior method

BUG: 29951233
Change-Id: I03ee79127e65030ef82276786882ded5600dfc32
oordinatorLayout.java
1fa246fb379bda7b211f390577de558171f0c6b6 01-Jul-2016 Chris Banes <chrisbanes@google.com> Merge "Fix CTL scrim not working with activity transitions"
00a00a7d3ba8279294f63994473afc32e05dcf10 30-Jun-2016 Chris Banes <chrisbanes@google.com> Fix focused views not being visible with AppBarLayout

Due to the way that AppBarLayout works, we need to
manually handle any visible rectangle requests.

BUG: 29876369

Change-Id: Iae57120764c5f1f4ae15c276c0b78f0a7c5c36f8
ppBarLayout.java
oordinatorLayout.java
eaderScrollingViewBehavior.java
c0fa418847b3457a59575ed5d85126809a9c3c5e 28-Jun-2016 Chris Banes <chrisbanes@google.com> Merge "Fix TabLayout setSelection() issues with custom views"
ed4b3d49f03292ccc92bef64f34116426aa1096f 28-Jun-2016 Chris Banes <chrisbanes@google.com> Fix TabLayout setSelection() issues with custom views

Also tidied up the addTab() logic so that we only
have one code path now.

Also moved all of TabLayoutTest to use @UiThreadTest

BUG: 29760031

Change-Id: I9bd2fb00daacaa07ff201a4d5f0b5c7f40cfab40
abLayout.java
a85f78308ab886e0a3f0932452e4c206429166c0 27-Jun-2016 Chris Banes <chrisbanes@google.com> Fix CTL scrim not working with activity transitions

Seems to be an issue with how transitions draws
its views, and how CTL draws the scrim. Fixed by
moving the scrim draw command to the preceding view
before the Toolbar.

Also fixed an issue where the title would be drawn
in the wrong position when we have window insets.

BUG: 29748380

Change-Id: I83b9a7ae894cd36ab9ca72cd1fe5d111aa6f2b07
ollapsingToolbarLayout.java
4991b57f2c40a70010ec6de3c468b554b41c1589 27-Jun-2016 Yuichi Araki <yaraki@google.com> BottomSheetDialog handles setCancelable

BottomSheetDialog now properly reacts to the standard Dialog API
setCancelable and setCanceledOnTouchOutside.

Bug: 29628657
Change-Id: I55dee42c4552630c678075150d36bf5671c0eea5
ottomSheetDialog.java
ffdc928aab785a450e0065f67a722b3032d59348 27-Jun-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheetBehavior getPeekHeight returns auto"
a458703e9c80562d04d194265baddcfa47427ebd 27-Jun-2016 Chris Banes <chrisbanes@google.com> Merge "Add AppCompatResources.getDrawable()"
a36fbe5e02568bfae82904e7c7ac39438bde4551 24-Jun-2016 Yuichi Araki <yaraki@google.com> BottomSheetBehavior getPeekHeight returns auto

This fixes BottomSheetBehavior#getPeekHeight so it returns
PEEK_HEIGHT_AUTO, and aligns the tests accordingly.

Bug: 29602451
Change-Id: I1ca0c5aebd2132fcfc7c4df894aea9a595e558fb
ottomSheetBehavior.java
6188fe9c27c80626fb7bf763fa4a9e3ac62f5cd5 27-Jun-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheetBehavior setState animation"
9207ff4399b70eb28b2db27437d3fef68c0929fc 24-Jun-2016 Aurimas Liutikas <aurimas@google.com> Merge "Fix BottomNavigationView tint clearing with null."
4c99f0e29b0926d8e5de44b7e3980d47f052f04c 24-Jun-2016 Chris Banes <chrisbanes@google.com> Add AppCompatResources.getDrawable()

This CL adds the new public method, which just
proxies to AppCompatDrawableManager for now. Also
moved all internal calls of
AppCompatDrawableManager.getDrawable() to the new method.

Looks like a huge commit, but it's mostly just moving
things to use the new method.

BUG: 29564497
Change-Id: Ie1603cc83d58333d70b90aefcfaf21fd367081ae
loatingActionButton.java
abLayout.java
extInputLayout.java
bfd8da2625c8198bd7d6884acb9f4b73ff35a2af 23-Jun-2016 Yuichi Araki <yaraki@google.com> Fix BottomSheetBehavior setState animation

Fix the issue that setState animates the bottom sheet to an old position
when there is a pending view layout.

Bug: 29535624
Change-Id: Id86fe3d2b0bd1f5ab316ff2756d914dbaabb57cd
ottomSheetBehavior.java
97e2b1e2b2f50b633a42ff6ce7bce2f6e7f2fb14 24-Jun-2016 Yuichi Araki <yaraki@google.com> Merge "Fix crash when behavior_peekHeight not specified"
63305fa8581f5e5430df94ef23027409eb941a8d 23-Jun-2016 Aurimas Liutikas <aurimas@google.com> Add bounds check in TabLayout#getTabAt(int).

Added bound check prevents crashes when an app calls notifyDataSetChanged
on a PagerAdapter after items' position changes and ViewPager dispatches
onPageSelected to TabLayout. See details more detais in the bug.

Bug:
https://code.google.com/p/android/issues/detail?id=199514
https://code.google.com/p/android/issues/detail?id=213470

Change-Id: Ie04e6d3ce4b39566e5a378b056b33993db4783e2
abLayout.java
c4aabf74968c45051bf4b7f6fa75825b1c2847b9 23-Jun-2016 Chris Banes <chrisbanes@google.com> Merge "Make Snackbar work with translucent navigation bars"
606579592e9e9303a89cae2cf9bfe9f21572eec3 23-Jun-2016 Yuichi Araki <yaraki@google.com> Fix crash when behavior_peekHeight not specified

This was happening after Ibbf725aa89352512f4b54fa9fe297c1675f76939

Change-Id: Ib4c0493d4a5ef4e192cb11926bdc2f08d0e304ce
ottomSheetBehavior.java
6b4bb64e815bc6dcb30037f988d70cdb4862a7f8 23-Jun-2016 Yuichi Araki <yaraki@google.com> Merge "Automatic peekHeight for bottom sheets"
910de28f0a195668fad38ad2367c1f7237a7af98 23-Jun-2016 Aurimas Liutikas <aurimas@google.com> Fix BottomNavigationView tint clearing with null.

Fixes a crash in BottomNavigationView for setItemIconTintList(null) calls.
Additionally, CL adds tests to make sure tinting work correctly (largely inspired
by NavigationViewTest).
Finally, starts settings BottonNavigationItemView id to the MenuItem id.

Bug: 27675079
Change-Id: Ief696ab997407ad17eedc6b43c373e95638f4c34
ottomNavigationView.java
27705d3451499dd8498effd111f1f4c7df917d87 22-Jun-2016 Chris Banes <chrisbanes@google.com> Make Snackbar work with translucent navigation bars

Also fixed an issue in ViewCompat.setOnApplyWindowInsetsListener
which makes it NPE when given a null listener.

BUG: 29075380
Change-Id: I9c91437a33eee99326f2bbfe9719667f598e005a
nackbar.java
01ca48bfc8ad80dae2e2809420af1e4b80dd4ae5 22-Jun-2016 Yuichi Araki <yaraki@google.com> Automatic peekHeight for bottom sheets

Apps can specify app:behavior_peekHeight="auto" to let the
BottomSheetBehavior automatically calculate the 16:9 ratio keyline and
use it as the peek height while keeping it at least as tall as 64dp.

This is now the default parameter of BottomSheetBehavior and
BottomSheetDialog. The old default was 0, so this change will not affect
existing apps which should already have some value specified for the
peek height.

Bug: 27260758
Change-Id: Ibbf725aa89352512f4b54fa9fe297c1675f76939
ottomSheetBehavior.java
48465fd91c91336accdced9163ea6dec13b9092c 20-Jun-2016 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout with child margins

CTL doesn't currently handle pinnable children with
top/bottom margins very well. This CL fixes it.

BUG: 29497596
Change-Id: If7799b28aaec6648d5add7e482862a0683f3ad3e
ollapsingToolbarLayout.java
iewOffsetHelper.java
a477296fe3a81d718a531785f8968583e0025c17 21-Jun-2016 Chris Banes <chrisbanes@google.com> Merge "Fix use of API 19+ FrameLayout LP constructor"
3035e10317eb12c58153d8c651a791896ea3094e 13-Jun-2016 Chris Banes <chrisbanes@google.com> Fix setFitsSystemWindows not working with CoordinatorLayout

This CLs moves some of the logic around so that CoL
responds correctly to setFitsSystemWindows calls.

BUG: 29270333
Change-Id: Id1fd8db914de7c6729c74ec6740d19f538e6fdac
oordinatorLayout.java
f81ee2000390f4bed2bdb9f9c7e573c5a3870e5f 20-Jun-2016 Chris Banes <chrisbanes@google.com> Fix use of API 19+ FrameLayout LP constructor

BUG: 29392112
Change-Id: I9efd733df5af7c8c141ee81edd7321bdb615983b
ollapsingToolbarLayout.java
3324facde2644c98161b72b05620efc55873cd24 19-Jun-2016 Chris Banes <chrisbanes@google.com> Merge "Implement password toggle in TextInputLayout"
ddf46923b9487ac3a021f01b55d96136d811e8be 07-Apr-2016 Chris Banes <chrisbanes@google.com> Implement password toggle in TextInputLayout

This CL implements the new password spec from the
Material Design guidelines into TextInputLayout.
The icon and tint are customizable via attributes
and method calls.

Also added getCompoundDrawablesRelative() to
TextViewCompat.

BUG: 26614707

Change-Id: I3d36277fe92f1be0c9f23567fa55b42c5ba15be1
heckableImageButton.java
loatingActionButton.java
extInputLayout.java
iewUtils.java
23e274886774bf1a6c433ed98503e148fa1e15b4 28-Apr-2016 Aurimas Liutikas <aurimas@google.com> Initial implementation for BottomNavigationView widget.

Bug: 27675079
Change-Id: Ic24dfa979557f5af06294c61da5d74821254a583
ottomNavigationView.java
e57300cbdb4247da95e95059ad27a348a56477c6 14-Jun-2016 Yuichi Araki <yaraki@google.com> NavigationView dispatches insets to headers

Bug: 29062870
Change-Id: I5c335428a05665bc6e9994a71236544e681cde66
avigationView.java
9cce7086962bc23ff624d16b4f318bfc7177138d 14-Jun-2016 Aurimas Liutikas <aurimas@google.com> Fix small issues in NavigationView.

These issues where found in the process of working on BottomNavigationView.

Change-Id: I53d71cfb119d236ed173353109cc3e1e193fa0cb
avigationView.java
2d8c0b4074beca4945bb75c96ff67bfe2dd81e89 09-Jun-2016 Chris Banes <chrisbanes@google.com> Merge \\\"Fix scrolling view position with fitSystemWindows parent\\\" into nyc-dev am: 1082886555 am: 736c426dcf
am: 3344367ce1

Change-Id: I3de7a76bb6d27c30903521865cfaee50135d8787
2e522d2998c937948757ccfe0a5523047726fb4d 07-Jun-2016 Chris Banes <chrisbanes@google.com> Fix scrolling view position with fitSystemWindows parent

Currently the scrolling view is not positioned correctly
if the CoordinatorLayout is set to fitSystemWindows, but
none of its children are. This CL fixes that by properly
insetting the scrolling view.

BUG: 29125508
Change-Id: I3b802f98197ee50e9caee610c32631daeb5af9aa
oordinatorLayout.java
eaderScrollingViewBehavior.java
91177092bb7b2a0586f194de4d207349cdfabf30 03-Jun-2016 Aurimas Liutikas <aurimas@google.com> Update BottomSheetCallback.onSlide() documentation.

Previous documentation was not clear and implied that only movement direction
affected the sign of the slideOffiset.

Change-Id: I9daa138f9f867c068016062da82c7e1bec22aefc
ottomSheetBehavior.java
19a80415a88ecfae6bbc645cd14b653ed4337648 26-May-2016 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout consuming insets

Currently it consumes insets, which means that
the insets never reach its children. Since it
does not need to consume them, lets not.

Also fixed WindowInsetsCompat so that equals(),
toString() and hashCode() work as expected.

Also ported the same equals fix to AppBarLayout
and CoordinatorLayout.

BUG: 28860186
Change-Id: Ib34219f1ba60901d973eea96c7453be46d9bf555
ppBarLayout.java
ollapsingToolbarLayout.java
oordinatorLayout.java
iewUtils.java
7447d243d432cbdf55d3b09ec8d9dee807af6dff 01-Jun-2016 Chris Banes <chrisbanes@google.com> Merge "Fix CollapsingToolbarLayout displaying over icons"
8f8034a4204fc10c4805758051f0cec2159c0e40 27-May-2016 Yuichi Araki <yaraki@google.com> Add autoHide to FloatingActionButton

Add a new attribute "behavior_autoHide" to
FloatingActionButton.Behavior. The FAB automatically hides when there is
not enough space for it if behavior_autoHide is set to true. It defaults
to true. FAB.Behavior currently supports AppBarLayout and
BottomSheetBehavior.

This also fixes the issue that CoordinatorLayout stops sending
onDependentViewChanged after the child view reaches at an edge of the
CoordinatorLayout.

Bug: 28962378
Change-Id: Ic17bda6fc448f0c483752f1a3ed0df50fe60a458
oordinatorLayout.java
loatingActionButton.java
f6cef5c2d4b4ec1637875f12e8d79b5004c62830 28-May-2016 Chris Banes <chrisbanes@google.com> Merge "Fix enterAlways|enterAlwaysCollapsed with window insets" into nyc-dev am: 3df4cf603e am: c321341d60
am: 78de34b4bf

* commit '78de34b4bf2f8d74b1a206334e704a236aaa8bf5':
Fix enterAlways|enterAlwaysCollapsed with window insets

Change-Id: I80ce3d2db6ad44513cf5101ce5104f876016e75a
2aabff2e355c96bf90d6047a613ce0fa2c1ffe45 26-May-2016 Chris Banes <chrisbanes@google.com> Move clearColorFilter() workaround to DrawableCompat

On API 21-22 there is an issue in DrawableContainer
where it does not propagate a null ColorFilter to all
of it's children.

The workaround is to do it manually on those API levels,
which this CL exposes as a public API.

BUG: 28661010
Change-Id: Ie9b1068190c57395c12a800048669651774cfae6
extInputLayout.java
b2535ce06945e0b3b95590819b8e6467ea3ee29d 26-May-2016 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout displaying over icons

CTL scales it title which works in most situations.
There are edge cases though where the title can be
drawn on the Toolbars contents, namely icons.

This CL fixes the edge cases where the collapsed
and expanded text sizes are similar in size, which
means that there is limited/no scaling happening
while scrolling. In this instance we need to cap
any available width when expanded, so that it
'scales' to match the collapsed width when collapsed.

BUG: 28972127
Change-Id: I2c56e77d30054aa60d93f7ca3b91813fde1351f5
ollapsingTextHelper.java
13633353237d6506f4c436b459bc8be8c3d7ed68 25-May-2016 Chris Banes <chrisbanes@google.com> Fix enterAlways|enterAlwaysCollapsed with window insets

Currently we take the window inset into account twice.
This CL fixes it by only taking it into account once.

Also updated the relevant test to use a translucent
status, and thus catch this on Lollipop+. It's how
99% of apps will use this anyway.

BUG: 28859045
Change-Id: I37c383b2e496768b42c52cf66f30bfeaf683e0c9
ppBarLayout.java
c9a859537b0871f84afeeb706a5b425fe3f2b4dd 25-May-2016 Aurimas Liutikas <aurimas@google.com> Fix a random assortment of spelling errors.

Fix spelling errors found by Android Studio.

Change-Id: I121c79029f4e323da4ff2f44891e25480c44ebbc
ppBarLayout.java
ollapsingTextHelper.java
ollapsingToolbarLayout.java
extInputLayout.java
15375aa6fd54b036f97f99229aefab2822c8a1c9 24-May-2016 Aurimas Liutikas <aurimas@google.com> Add missing @Override annotations in support library code.

Change-Id: Ifcc3a20b54d6a14b0a14aa0f48e642cf7e8c0e70
oordinatorLayout.java
ff3cafa6f3f8f99d160ab560b09f521e5323d7e3 20-May-2016 Aurimas Liutikas <aurimas@google.com> Merge "Actually change api to use long in CollapsingToolbarLayout." into nyc-dev am: 44e80233cd am: 2e32a8ad39
am: b1f7085274

* commit 'b1f70852740b61aed5283d92154281fc4e8c05cf':
Actually change api to use long in CollapsingToolbarLayout.

Change-Id: I9985bec7dd25b372563992961cb09d08b03fc610
9ee6a3fbb89698ebd7c26d4a86e2892a37a0d87a 19-May-2016 Aurimas Liutikas <aurimas@google.com> Actually change api to use long in CollapsingToolbarLayout.

Bug: 28775495
Change-Id: I25d3ff3007914ac1db0abb8f9b151b9cac4ca0e3
ollapsingToolbarLayout.java
a847100f780dae639dd72094a30a399f8c8e145c 17-May-2016 Aurimas Liutikas <aurimas@google.com> Update CollapsingToolbarLayout API to use long instead of int. am: e852801f92 am: 07471cfc65
am: 7e7e39ed4a

* commit '7e7e39ed4a17fcad05c8efa8375083556704bc21':
Update CollapsingToolbarLayout API to use long instead of int.

Change-Id: I8fd2b7792436fb2e20ac7b87e3daeda79d1f2a81
e852801f9258e00f89da48918b58a6e933643ab9 17-May-2016 Aurimas Liutikas <aurimas@google.com> Update CollapsingToolbarLayout API to use long instead of int.

Updated getScrimAnimationDuration and setScrimAnimationDuration to
use int instead of long.

Bug: 28775495
Change-Id: I1e44d5712114b5f93b2973e474a585ac6fcf709d
ollapsingToolbarLayout.java
bcf20d2160188b7bb11ba648c7fb84e807293328 15-May-2016 Chris Banes <chrisbanes@google.com> Merge "Fix for AppBarLayout\'s scrolling view not laying out WIP" into nyc-dev am: 95c069158d am: 2400816160
am: eafb465a32

* commit 'eafb465a322397b64d372f8f94f222e5c65a5b38':
Fix for AppBarLayout's scrolling view not laying out WIP

Change-Id: Id2a79683bb40b36a2b75d71f8a18c2f5cb17cb84
6d2682fe1a0671bb336c99e0f72a1742b130be99 13-May-2016 Chris Banes <chrisbanes@google.com> Fix for AppBarLayout's scrolling view not laying out WIP

Caused by some logic in it's measure code which makes
it skip the measure if it's header hasn't been laid out.
For the first measure/layout pass this will always be
false so let's just assume that it has been measured.

BUG: 28742676
Change-Id: I72eec136983f9452e02ae6cda85de60918454748
eaderScrollingViewBehavior.java
0ae4d1f030189c3f660f6ba790d23001f326ea87 12-May-2016 Yuichi Araki <yaraki@google.com> Add behavior_skipCollapsed for bottom sheet am: 362585b01e am: c5ce2cafd7
am: 003bc1345c

* commit '003bc1345c3843ecf261724ebd37b328628cf054':
Add behavior_skipCollapsed for bottom sheet

Change-Id: I4a6281f6a6497b70173b2ced4bde7e5500c6a6e2
362585b01e5ca19d1c58e4b152ad0a863b5f6d91 11-May-2016 Yuichi Araki <yaraki@google.com> Add behavior_skipCollapsed for bottom sheet

Bug: 27421374
Change-Id: Ib606974d72e86d8c5baaea505c181b06090a5d14
ottomSheetBehavior.java
2f658c447a9c8669ab1ae7fca371dc516a28dc99 11-May-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Final pass for removing all donut/eclair/froyo references"
1b3e9466b4c4d72f28bb4448672ef8bab19b6f3e 11-May-2016 Kirill Grouchnikov <kirillg@google.com> Clean up internal usage of now-deprecated Compat APIs

Change-Id: I309a6637e1c013dc9b218dd048d2cfab7dcee171
eaderBehavior.java
64dbe1d454f1190b3cd8426d09b9119949a10709 11-May-2016 Kirill Grouchnikov <kirillg@google.com> Final pass for removing all donut/eclair/froyo references

Also clean up code blocks that were conditional on pre-v9
build version.

Change-Id: I9c87496446d842cbd176adb44635205206e7bb3d
rawableUtils.java
11110d4e2e1b7ff75b6291decdd3c5474e6a97ce 11-May-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Clean-up pass over support lib modules"
73e7a06fb66110495fa4e98a91831a47feab2526 11-May-2016 Chris Banes <chrisbanes@google.com> Design lib styleables rename pt.2

- Forgot about ScrollingViewBehavior
- Fix doc @attr references

BUG: 28708856

Change-Id: I86a22252bda4929778719f6e1587c171f454f0bd
ppBarLayout.java
ottomSheetBehavior.java
c6cbbb50a06ec08e6888bd1c3dfd7fdf588d9db5 11-May-2016 Chris Banes <chrisbanes@google.com> Rename design lib layout styleables

They're now in a format which Android Studio and
layoutlib supports.

BUG: 28708856
Change-Id: I8df109e197b56586d19f701b631b6405b08873ea
ppBarLayout.java
ottomSheetBehavior.java
ollapsingToolbarLayout.java
oordinatorLayout.java
f4893cfe0dd5314e8c7835e6c7c3907c8765faf8 10-May-2016 Kirill Grouchnikov <kirillg@google.com> Clean-up pass over support lib modules

* Rename all eclair-mr1 folders and classes to gingerbread
* Switch percent to depend on support-compat instead of support-v4

Change-Id: If4f7e43f4698b08554e3a55223e2e4df61df068f
loatingActionButton.java
iewUtils.java
db0eb650fb842982333c66d6ef3e982a0ec9f58d 04-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix TabLayout long click Toast placement" into nyc-dev
00559e360cf4cf7858d4bd5ddb874b85fad6e9cb 27-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "TabLayout + ViewPager improvements" into nyc-dev
3be5f23bbe512ce9c4b073efbdcbac132a737787 27-Apr-2016 Chris Banes <chrisbanes@google.com> Fix TabLayout long click Toast placement

Logic copied over from ActionMenuItemView.

BUG: 28381728
Change-Id: Icd23c6aaf2a65e0704a8cfba6a2e3fb483f8cba7
abLayout.java
05f5ba020fa6caa658c75b6d77436aa980ca0fcc 22-Apr-2016 Chris Banes <chrisbanes@google.com> Backport AbsSavedState and fixes to v4

Also makes the support library widgets use it
so that they handle multi-class loaders correctly
when restoring state.

BUG: 27790353

Change-Id: I5c7888f119b8fcb79fd7cb67987c304c0c982c8e
ppBarLayout.java
ottomSheetBehavior.java
oordinatorLayout.java
avigationView.java
extInputLayout.java
ac23e764c991f2e72cd1b4c54a7ffa72024e94d7 25-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "Fix TextInputLayout not clearing the error on Lollipop" into mnc-ub-dev
am: 8bab339

* commit '8bab339a3dc95ced7f3b2c9c2b3fe8d5a4444be0':
Fix TextInputLayout not clearing the error on Lollipop

Change-Id: I59f252e66bebd836a8f8b76020f66bd3363393ba
8f27603fc4caa4931c98a97d4482b1b01bf4bd0f 04-Apr-2016 Chris Banes <chrisbanes@google.com> TabLayout + ViewPager improvements

- Add support for arbitrary decor views in ViewPager.
Previously it had a hidden marker interface, but now
we have a public class annotation.
- Made ViewPager's internal adapter change listener public
to enable decor views to receive any changes.
- TabLayout now supports being a decor view by automatically
setting itself if it has a ViewPager parent.

BUG: 27812405
Change-Id: Ia1a369f9401ee0108544a4aacc1461db3639cc80
abLayout.java
57aa00c058f3278fccc7a23f3cef29142bb14dbb 25-Apr-2016 Chris Banes <chrisbanes@google.com> Tweak AppBarLayout scroll duration

Currently it's calculated based on 300dps per
second, which is bit slow. We now use a similar
calculation as ViewPager, which also has the
benefit of taking any velocity into effect.

BUG: 28367430
Change-Id: Ib752677fc592704798bd537506fab1e6088c1280
ppBarLayout.java
05c8a189672f5d883555e068549c0a84eeeff4aa 22-Apr-2016 Adam Powell <adamp@google.com> Remove dependencies on Activity from common Fragment superclasses

Support lib edition

Allow common Fragments to be used in non-Activity hosts.

Bug 28337394

Change-Id: Ia06b560b2863d995a6b67dafac770a4c25ff4ab9
ottomSheetDialogFragment.java
fc4dd4c733345263247a00684ab078a90db21f32 22-Apr-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout not clearing the error on Lollipop

Caused by a platform issue in DrawableContainer on
API 21 + 22. The issue is that DrawableContainer does
not propagate a null ColorFilter to all of it's children.

The fix is to do it manually on those API levels.

BUG: 27557021
Change-Id: I225041d8c482d3a7feb0fb053f54849c6b341fc2
extInputLayout.java
66955d2dabd46843d3d70ec3864413b8a7e80a8e 22-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "More customization methods for CollapsingToolbarLayout" into nyc-dev
b695a482875ea28cc622e226da4987d395aa1029 21-Apr-2016 Chris Banes <chrisbanes@google.com> Fix fast subsequent TextInputLayout.setError() calls
am: 7d1f61a17d

* commit '7d1f61a17d2f1401fa3e773d262492266830c284':
Fix fast subsequent TextInputLayout.setError() calls

Change-Id: I8e774bcfc896de66e1fa46351640d1900ffd394e
7d1f61a17d2f1401fa3e773d262492266830c284 21-Apr-2016 Chris Banes <chrisbanes@google.com> Fix fast subsequent TextInputLayout.setError() calls

Fixed by cancelling any ongoing animation. Nice one
line fix.

BUG: 28296683
Change-Id: I073cb1da1f96186d5138dd009922983b9021fed3
extInputLayout.java
6df5bb9903307734ed05a5135c7812fb9b6d43c8 20-Apr-2016 Chris Banes <chrisbanes@google.com> More customization methods for CollapsingToolbarLayout

The scrim trigger and animation values are currently
hard set. This CL adds attributes and setter/getters
for them.

BUG: 28287425

Change-Id: I994146ea82d72d0f6f4399116993f85102d53010
ollapsingToolbarLayout.java
ea0bce9137a7d61b710f8fe299e4790e8f7f1540 19-Apr-2016 Chris Banes <chrisbanes@google.com> Expose both Behavior constructors in FloatingActionButton

BUG: 28267924
Change-Id: Iee838536705f29adb26293197311b3eff92409ee
loatingActionButton.java
b9b83cc0804c30479c8a9efdefce9ee5d0b0a92c 19-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "Make snap with enterAlways|enterAlwaysCollapsed" into mnc-ub-dev
am: fb2e1f1

* commit 'fb2e1f1b156d6b768a9fff1fada29f9f27607db2':
Make snap with enterAlways|enterAlwaysCollapsed

Change-Id: Ib505e323bbbbcb95e53c44d6a90d8f56b275dff1
fb2e1f1b156d6b768a9fff1fada29f9f27607db2 19-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "Make snap with enterAlways|enterAlwaysCollapsed" into mnc-ub-dev
674b11a68aa97f156d3606e110ebceeb1bedf0b4 19-Apr-2016 Yuichi Araki <yaraki@google.com> Merge "Let touch events fall through from bottom sheet" into mnc-ub-dev
am: 3126939

* commit '312693900118cca2f69438a591cc0123a535bc9a':
Let touch events fall through from bottom sheet

Change-Id: Ib125b44d089f1a7a6a4e0d9133f58f72929cd4fb
108a7a812404313b7b9f8daa154e657e49e0aae6 18-Apr-2016 Chris Banes <chrisbanes@google.com> Make snap with enterAlways|enterAlwaysCollapsed

Currently snap only works with exitUntilCollapsed,
this CL fixes it so that it also works with
enterAlways|enterAlwaysCollapsed.

BUG: 28225689

Change-Id: I0bdea0f0cdfebaaedf879937510b8d03f7ea5a3e
ppBarLayout.java
1dbdc6baec537b45e9bd8e5afabcb5c35f1a8004 18-Apr-2016 Yuichi Araki <yaraki@google.com> Let touch events fall through from bottom sheet

BottomSheetBehavior should not consume touch events outside of its view
boundaries.
Bug: 27557583

Change-Id: If2f1f1d94eede28617396f19ed98956f4c352550
ottomSheetBehavior.java
9cf7823a2b044e550dd5c1ba3a7a91d45b4d9673 13-Apr-2016 Chris Banes <chrisbanes@google.com> Fix build for FloatingActionButton

Change-Id: Ie87f7dcd3615b8c72d6a8165c441678b8cb98fcb
loatingActionButton.java
1de702ffd1244435005aab3c4ce132c54f40fefa 13-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "Fix the FAB not returning when animations are disabled" into mnc-ub-dev
am: 5ecac86

* commit '5ecac8623018236e9f15385cade2c7ea59829f2e':
Fix the FAB not returning when animations are disabled

Change-Id: I90e399cbb1becfa3577145535ee5b9048d646efb
ebb9b8cfda9e643d77e3bf15ed10efd2ae55227e 12-Apr-2016 Chris Banes <chrisbanes@google.com> Fix SDK int check in TextInputLayout
am: bdb210a

* commit 'bdb210a52ce1966368f534253822f15a8591a74f':
Fix SDK int check in TextInputLayout

Change-Id: I9a59cb7994f422c838a44ed4311da459d0f75203
335da996682889d7eb3ba030dd48eed383726254 12-Apr-2016 Ryan Lothian <rjlothian@google.com> Merge "Revert "TabLayout + ViewPager improvements"" into nyc-dev
dbc2b633f06747574b77a85ec662895c4ae6ccfc 12-Apr-2016 Ryan Lothian <rjlothian@google.com> Revert "TabLayout + ViewPager improvements"

This reverts commit 7555fd53f72cea589dec80f856dafaba5ecf99e8.

After ag/904114, builds of Android Wear crash loop on startup.

Bug: 28132794
Bug: 27812405
Change-Id: I85026dd8ab57dd268139e24037ad5a8544232935
abLayout.java
641460fbf3bc54026e6dc561dc35224e0aa02a4a 12-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "TabLayout + ViewPager improvements" into nyc-dev
c036550c2328e8489d79c79e88f5de7f88449be6 12-Apr-2016 Chris Banes <chrisbanes@google.com> Fix the FAB not returning when animations are disabled

BUG: 28110490
Change-Id: If88c45fcd55f07a63edb6a26a3ec62314abf49c3
loatingActionButton.java
b75a16fb6433ab27973d419d23ed1286c073fca8 11-Apr-2016 Chris Banes <chrisbanes@google.com> Enable automatic FAB show/hide to work without minHeight

Currently, the automatic showing/hiding of the FAB does
not work if a minHeight is not set on the ABL or it's last
child. As a fallback, we now hide if 1/3 on the ABL is
visible.

Change-Id: Id05fbf4ade3572fc5adda9ebb0812f311ceb730b
ppBarLayout.java
7555fd53f72cea589dec80f856dafaba5ecf99e8 04-Apr-2016 Chris Banes <chrisbanes@google.com> TabLayout + ViewPager improvements

- Add support for arbitrary decor views in ViewPager.
Previously it had a hidden marker interface, but now
we just treat any view added via inflation as part of
the decor.
- Made ViewPager's internal adapter change listener public
to enable decor views to receive any changes.
- TabLayout now supports being a decor view by automatically
setting itself if it has a ViewPager parent.

BUG: 27812405
Change-Id: I7ebf2cd999b99285ed7367d6bf3436ad9a0f7355
abLayout.java
bdb210a52ce1966368f534253822f15a8591a74f 08-Apr-2016 Chris Banes <chrisbanes@google.com> Fix SDK int check in TextInputLayout

Small error in the logic means that it will
never actually fire.

Change-Id: I5f563e59ef5dd20bd34a7c12ffed136bb34dcaa0
extInputLayout.java
801fc37fd34d31fdb2b0e943f1c6eef5067a827f 07-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "Fix TabLayout text size issue" into nyc-dev
926cd28257536b1206934d69585a2dab100147d5 06-Apr-2016 Chris Banes <chrisbanes@google.com> Fix design support lib docs build

Change-Id: Ifde9b6a5a01699c802e6d6c541ac827e0a1c5332
ppBarLayout.java
cb849a71706ac0660a5383c11629bc8d9c1a9f28 06-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "Use StateListAnimator for AppBarLayout elevation changes" into nyc-dev
27da60cbce61a72f4731cbe67071cbb87136d207 06-Apr-2016 Chris Banes <chrisbanes@google.com> Fix TabLayout text size issue

Some new measurement code in N seems to have
tickled a recursion exit check in TabLayout's
text size setting code when it's not required.

This CL fixes the check by checking against
the available space for the text, rather than
the existing Layout's width.

BUG: 27923340
Change-Id: I1be8c489488fc96fc3802b45c525b5fa6cae337d
abLayout.java
cb461c15a1f928b54db6e3972cfabbf559e8b22d 05-Apr-2016 Adam Lesinski <adamlesinski@google.com> Merge "Build support libs with AAPT2" into nyc-dev
6759b1021d8198ad1d239bb30e5a102b99624bce 25-Feb-2016 Adam Lesinski <adamlesinski@google.com> Build support libs with AAPT2

Use AAPT2 to build the framework support libraries. Apps built with AAPT2 can more efficiently
link against these libraries by specifying their module name in LOCAL_STATIC_ANDROID_LIBRARIES.

Ex:

LOCAL_STATIC_ANDROID_LIBRARIES := android-support-v7-appcompat android-support-v4

Apps built with AAPT2 do not need to specify --auto-add-overlay or --extra-packages, as these
are automatically added as needed by the build system.

This change will not affect any apps that currently depend on the support libraries.
This is because they import the resources directly.

We use LOCAL_JAR_EXCLUDE_FILES := none only to support javac when building javadoc.
Jack builds are correct because the build system passes in the latest generated R.java
ahead of any previous ones packaged in classes.jack. This means we can dynamically reference
a support lib module, correctly seeing non-final R.java. Then at app package time, we only
include the final R.java generated by the AAPT2 packaging step.

Bug:25958912
Change-Id: I6577a91e4d428dd29fecaa86a26be43d4da8310c
ollapsingTextHelper.java
ollapsingToolbarLayout.java
avigationView.java
abLayout.java
extInputLayout.java
hemeUtils.java
ae0f778788b739d75f704dd4726c22017e30799e 04-Apr-2016 Chris Banes <chrisbanes@google.com> Fix FAB + Snackbar stacking with hidden FAB

When a FAB is hidden, and then shown while a Snackbar
is displayed, the FAB is not translated to support
the automatic stacking. This CL fixes this.

BUG: 27992373
Change-Id: I7366f725df0e239e42a9478da1c6ae3e7841ff48
loatingActionButton.java
1a8e4886abbc35e479cddb7b4acd601cede2fd8a 19-May-2015 Chris Banes <chrisbanes@google.com> Use StateListAnimator for AppBarLayout elevation changes

Currently the logic for updating an AppBarLayout's elevation
is baked into the code, and can't be customized. This CL
extracts this into a StateListAnimator which has the added
benefit of now animating the elevation.

BUG: 22008506

Change-Id: I4786a9b56b9f3c18ee0610a16036990939a99101
ppBarLayout.java
ollapsingToolbarLayout.java
iewUtils.java
bba78041485f18297695b1b4d3f1245453f8b30c 02-Apr-2016 Adam Lesinski <adamlesinski@google.com> Merge "Revert "Build support libs with AAPT2"" into nyc-dev
57f39186667b8acef1a0ebeda585c357a751a8b3 02-Apr-2016 Adam Lesinski <adamlesinski@google.com> Revert "Build support libs with AAPT2"

This reverts commit 66b8608151c5923de3c9877bc03218d83f6b3beb.

Change-Id: I2178c0336bef8386e1f36ff3816b6dbf1e6a64d0
ollapsingTextHelper.java
ollapsingToolbarLayout.java
avigationView.java
abLayout.java
extInputLayout.java
hemeUtils.java
920dacfbd0a6d9ca0195439d9baa750aee3230b9 01-Apr-2016 Adam Lesinski <adamlesinski@google.com> Merge "Build support libs with AAPT2" into nyc-dev
66b8608151c5923de3c9877bc03218d83f6b3beb 25-Feb-2016 Adam Lesinski <adamlesinski@google.com> Build support libs with AAPT2

Use AAPT2 to build the framework support libraries. Apps built with AAPT2 can more efficiently
link against these libraries by specifying their module name in LOCAL_STATIC_ANDROID_LIBRARIES.

Ex:

LOCAL_STATIC_ANDROID_LIBRARIES := android-support-v7-appcompat android-support-v4

Apps built with AAPT2 do not need to specify --auto-add-overlay or --extra-packages, as these
are automatically added as needed by the build system.

This change will not affect any apps that currently depend on the support libraries.
This is because they import the resources directly.

We use LOCAL_JAR_EXCLUDE_FILES := none only to support javac when building javadoc.
Jack builds are correct because the build system passes in the latest generated R.java
ahead of any previous ones packaged in classes.jack. This means we can dynamically reference
a support lib module, correctly seeing non-final R.java. Then at app package time, we only
include the final R.java generated by the AAPT2 packaging step.

Bug:25958912
Change-Id: I5235b73ac68f2050d089aefc3163901ff80f2d46
ollapsingTextHelper.java
ollapsingToolbarLayout.java
avigationView.java
abLayout.java
extInputLayout.java
hemeUtils.java
c1e2e3be85de2fecb6ab45f593832d94b47b576e 31-Mar-2016 Aurimas Liutikas <aurimas@google.com> Merge "Fix multi-pointer behavior for Snackbar." into mnc-ub-dev
am: 1315db6

* commit '1315db63b39219f4a3ff87200c2bbc27f27667a2':
Fix multi-pointer behavior for Snackbar.

Change-Id: Ia8ba7ec9a0add689e954ba183a6e183bd88016ce
1315db63b39219f4a3ff87200c2bbc27f27667a2 31-Mar-2016 Chris Flatt <cflatt@google.com> Merge "Fix multi-pointer behavior for Snackbar." into mnc-ub-dev
b21b5491bcd540843e1d6fe0fdaaddd03d2c5165 31-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Add workaround for invalidation bug on API 21-22" into mnc-ub-dev
am: 0799afc

* commit '0799afc163bd5d8f9bfd6869e451c4be5640c971':
Add workaround for invalidation bug on API 21-22

Change-Id: Ib1450fdbc7832b158464e6603177faa11720500a
0799afc163bd5d8f9bfd6869e451c4be5640c971 31-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Add workaround for invalidation bug on API 21-22" into mnc-ub-dev
318baf84dade07174d71e10322e3b10ab4b0c28c 31-Mar-2016 Chris Banes <chrisbanes@google.com> Add workaround for invalidation bug on API 21-22

If a view is laid out off screen and then offset back
onto screen, the parent does not get invalidated and
thus the view is not drawn.

This CL fixes this by manually invalidating the parent
when a view is detected to be offset onto screen.

BUG: 27805688
Change-Id: I2d6c9b7f67c938638cb149158cb683a2c956b6a5
ppBarLayout.java
iewOffsetHelper.java
a2f7210e7a307d65830847cf2179b05e9099ee13 31-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Allow AppBarLayout to be taller than CoordinatorLayout" into mnc-ub-dev
am: f72a8be

* commit 'f72a8bec72c6ccb0b6e5df45d444e96b0d77c0d9':
Allow AppBarLayout to be taller than CoordinatorLayout

Change-Id: If1cb6d0a41d58411265da510a9e374a7817509ac
4ac91fa3f14db2f25345595fb921497c11d4e5c0 31-Mar-2016 Adam Lesinski <adamlesinski@google.com> Revert "Build support libs with AAPT2"

This reverts commit 0dac8d82e2a249d7c9c42ab259389e11cac15400.

Change-Id: I830fb18162b6eea8dde9e38f9dc39b02449ec846
ollapsingTextHelper.java
ollapsingToolbarLayout.java
avigationView.java
abLayout.java
extInputLayout.java
hemeUtils.java
0dac8d82e2a249d7c9c42ab259389e11cac15400 25-Feb-2016 Adam Lesinski <adamlesinski@google.com> Build support libs with AAPT2

Use AAPT2 to build the framework support libraries. Apps built with AAPT2 can more efficiently
link against these libraries by specifying their module name in LOCAL_STATIC_ANDROID_LIBRARIES.

Ex:

LOCAL_STATIC_ANDROID_LIBRARIES := android-support-v7-appcompat android-support-v4

Apps built with AAPT2 do not need to specify --auto-add-overlay or --extra-packages, as these
are automatically added as needed by the build system.

This change will not affect any apps that currently depend on the support libraries.
This is because they import the resources directly.

We use LOCAL_JAR_EXCLUDE_FILES := none only to support javac when building javadoc.
Jack builds are correct because the build system passes in the latest generated R.java
ahead of any previous ones packaged in classes.jack. This means we can dynamically reference
a support lib module, correctly seeing non-final R.java. Then at app package time, we only
include the final R.java generated by the AAPT2 packaging step.

Bug:25958912
Change-Id: I71bff080ff2694aa3df1c8a67d933e2daab0f245
ollapsingTextHelper.java
ollapsingToolbarLayout.java
avigationView.java
abLayout.java
extInputLayout.java
hemeUtils.java
bca7a517ce4fb75e2571ce2d9d0263fea8e15dbe 30-Mar-2016 Chris Banes <chrisbanes@google.com> Allow AppBarLayout to be taller than CoordinatorLayout

CoL by default caps child views at it's height. This
CL fixes that by measuring the AppBarLayout with an
unspecified spec.

Change-Id: Iba6acdeddb3ff5064ede3eae50ed800ad514fe6f
BUG: 27912978
ppBarLayout.java
78d6f4ad1fc1e2d57b138e31f47f2267731ee95e 18-Mar-2016 Aurimas Liutikas <aurimas@google.com> Fix multi-pointer behavior for Snackbar.

A. Fixes CoordinatorLayout to only reset once for multiple
requestDisallowInterceptTouchEvent calls.
B. Fixes SwipeDismissBehavior to only reset on a new active
capture/drag.

Part A fixes the crash for multi finger swipe of snackbar.

Bug: 27675378
Change-Id: I58ffd71c2887ea32e450fdf8b2203eb82b2b55c5
oordinatorLayout.java
wipeDismissBehavior.java
1d321c85887197738dca2465b679c5258756b9a2 30-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Fix layout when BottomSheet is moving" into nyc-dev
4f0c8201b8c02def322843f180b86e0ea466e650 30-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Fix setState with the current state" into mnc-ub-dev
am: c5f5f85

* commit 'c5f5f85c1323787b2dc692af2dbd3efc804d5034':
Fix setState with the current state

Change-Id: Ifbbadcb2f888adcfe29b776a3ab363e88fbe6885
c5f5f85c1323787b2dc692af2dbd3efc804d5034 30-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Fix setState with the current state" into mnc-ub-dev
6bef5a31fd4bbfc70b21c0f694bcb272e88400a3 25-Mar-2016 Yuichi Araki <yaraki@google.com> Fix layout when BottomSheet is moving

Bug: 27786450
Change-Id: Ia847866cd9b31d21aa7fa25ffd1bbe7457b9770e
ottomSheetBehavior.java
2b84e6781ea06c6139bbeab062f1248d3819fcc7 24-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Use the EditText\'s gravity for TextInputLayout" into mnc-ub-dev
am: 0c098da

* commit '0c098da66d0c9c2566d5353fd4a38cd8a2d9a9d7':
Use the EditText's gravity for TextInputLayout
0c098da66d0c9c2566d5353fd4a38cd8a2d9a9d7 24-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Use the EditText's gravity for TextInputLayout" into mnc-ub-dev
e0573dfb5896eb66e266ea366d8c58437c739c95 24-Mar-2016 Yuichi Araki <yaraki@google.com> Fix setState with the current state

Bug: 27815551
Change-Id: I10322c81aaad80c5f33c338f0fb7f61d1737ed61
ottomSheetBehavior.java
a5c4f9fb6b571c6694b2d996ccd89d9c9cf06cf0 24-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheetBehavior#setState before layout" into mnc-ub-dev
am: 9203384

* commit '9203384c85914e13350d72a0111d6eab1551aad0':
BottomSheetBehavior#setState before layout
2d72783642304f1397b9740359594d26c11ada3f 24-Mar-2016 Taeho Kim <jyte82@gmail.com> Merge "Fix NPE when calling setState() before onLayoutChild()" into mnc-ub-dev
am: 93978d0

* commit '93978d066bab7f16175573c1b58c5449284fad6d':
Fix NPE when calling setState() before onLayoutChild()
9203384c85914e13350d72a0111d6eab1551aad0 24-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheetBehavior#setState before layout" into mnc-ub-dev
93978d066bab7f16175573c1b58c5449284fad6d 24-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Fix NPE when calling setState() before onLayoutChild()" into mnc-ub-dev
56f0ad8d4fa234d2801971042ff1d71aba960e37 23-Mar-2016 Chris Banes <chrisbanes@google.com> Fix FloatingActionButton doc build

Change-Id: Ia1becbc40d7dfac61fd88ea16da4fbe149fc8c68
loatingActionButton.java
5b52850af5eb41669b8b741518d316b40be9d676 23-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Fix TextInputLayout clearing the EditText tint" into mnc-ub-dev
am: 403e480

* commit '403e4802cae0b5354cac650f26e1a4f5e74b696c':
Fix TextInputLayout clearing the EditText tint
65a1c00240675067047b3ef23d5c1ecca1a6ab22 23-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Don\'t call requestDisallowInterceptTouchEvent(false)" into mnc-ub-dev
am: bed7de3

* commit 'bed7de3603499da7577e50ae70c2369dca9d2a55':
Don't call requestDisallowInterceptTouchEvent(false)
403e4802cae0b5354cac650f26e1a4f5e74b696c 23-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Fix TextInputLayout clearing the EditText tint" into mnc-ub-dev
94cdf63dbb45423fdc219835e30ae02d39027409 23-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Make FAB react to window size" into nyc-dev
a1de3eef9bb5ef90d00a23c65f13e1fc83254455 01-Mar-2016 Chris Banes <chrisbanes@google.com> Make FAB react to window size

Useful for multi-windows where the size of
the window can change. Also added an API to
set the size programmatically.

The default size is now AUTO, but can be explicitly
set to whatever size the developer wishes.

BUG: 27328132
BUG: 27464447

Change-Id: If617b565a8c242d6ce8b85e56cd9a20df07995ff
loatingActionButton.java
bed7de3603499da7577e50ae70c2369dca9d2a55 23-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Don't call requestDisallowInterceptTouchEvent(false)" into mnc-ub-dev
f828412cf077314f63e9d989c889f69275a28b19 23-Mar-2016 Chris Banes <chrisbanes@google.com> Use the EditText's gravity for TextInputLayout

Currently we only use it for the expanded hint, this
CL also uses it's horizontal gravity for the collapsing
hint.

Also fixed an issue where relative gravities are wiped
out and not used (wrong bitmask).

BUG: 27786316
Change-Id: If5ea7c34b5f45e1d959ace41353ff1303ba05732
ollapsingTextHelper.java
extInputLayout.java
6deb3a9dc52be7ab61702c430bb327343ef099ac 23-Mar-2016 Yuichi Araki <yaraki@google.com> BottomSheetBehavior#setState before layout

BottomSheetBehavior#setState now works before the layout takes place.

Bug: 27785886
Change-Id: Iccfbaf40caf708bc0d3ac5276d6f72bbfed685fe
ottomSheetBehavior.java
98475d29e771d7b15e4a109b22f410c7c1cf33d7 01-Mar-2016 Taeho Kim <jyte82@gmail.com> Fix NPE when calling setState() before onLayoutChild()

Fixed NPE when setState(int) is called before the layout process
was not done(before onLayoutChild() call) for the view that holds
the BottomSheetsBehavior as a CoordinatorLayout.Behavior.

Change-Id: Ic25c6df846920cb2407e9b3398bbf30a7ce29bfd
Signed-off-by: Taeho Kim <jyte82@gmail.com>
ottomSheetBehavior.java
2d42022740a6d622d6f7d1ccca7b91b90eb63d28 23-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheetBehavior now handles fitsSystemWindows" into mnc-ub-dev
am: 29bbfda

* commit '29bbfdab23a202edb76fe87897f6e3b8a7c2d131':
BottomSheetBehavior now handles fitsSystemWindows
478532d20a937213e3c2e3866567d0a06e53a959 22-Mar-2016 Chris Banes <chrisbanes@google.com> Fix TextInputLayout clearing the EditText tint

When a TIL's error is cleared, it clears the ColorFilter
on the EditText, which should reset it tint back
the original color. On < API 21 this isn't currently
happening since we added a drawable state workaround,
which sets a new background drawable on the EditText.

This then clears out AppCompat's internal tint, and thus
the tint is lost. Fixed by only using the workaround on
the platforms it is needed: API 21 + 22.

BUG: 27611753
Change-Id: Ia91a8bfa1295bd66c926541f98cfe7e148971f62
extInputLayout.java
a61e9790be0dd792393448810277b25990fcadb8 22-Mar-2016 Yuichi Araki <yaraki@google.com> BottomSheetBehavior now handles fitsSystemWindows

Fixes the bottom sheet lays itself out slightly lower when the
CoordinatorLayout has fitsSystemWindows="true".

Bug: 27610498
Change-Id: I8b70c87bac4d8d33e951a85f6202a8b288d4e65e
ottomSheetBehavior.java
18dee0438f1e5b61da88275e769376a68994d766 22-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Fix AppBarLayout enterAlwaysCollapsed with inset window" into mnc-ub-dev
am: 6002db9

* commit '6002db956d178d96f755f70826b92f24405de65b':
Fix AppBarLayout enterAlwaysCollapsed with inset window
090293b68e5aad0af0a0d8ae079ac0df743ff3ec 21-Mar-2016 Chris Banes <chrisbanes@google.com> Fix AppBarLayout enterAlwaysCollapsed with inset window

We take the inset into account twice which meant that
it doesn't scroll down enough.

BUG: 27642900
Change-Id: Ie1c2d8ecc0b41f30767404a8b712a231388c3dca
ppBarLayout.java
12113fa03c02662190617538e3e11d7aaa705654 21-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Disable Snackbar animations if necessary" into mnc-ub-dev
am: 3b591d5

* commit '3b591d566e2242881b149bc43d60dc4cbd374392':
Disable Snackbar animations if necessary
3b591d566e2242881b149bc43d60dc4cbd374392 21-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Disable Snackbar animations if necessary" into mnc-ub-dev
c6cfc5e717bb9c12c6a789a2dcd2badb90c80ed6 21-Mar-2016 Chris Banes <chrisbanes@google.com> Disable Snackbar animations if necessary

Snackbar's animations do not play nicely with
Talkback so this CL disables any animations if
an accessibility manager is enabled.

BUG: 23097365
Change-Id: Id7984784b8a281790e14286af132e51d49ac337e
nackbar.java
bb9710c86141068b7150e77a3f179cc0ca9e883c 21-Mar-2016 Kirill Grouchnikov <kirillg@google.com> mutate() the background of TextInputLayout's editor on changes. DO NOT MERGE

Otherwise the currently tinted background will be used for the next
inflated TextInputLayout.

Bug: 27694398
Change-Id: I0c90c397dd959bcad849a7bc8bdf377bc5e9c6b6
extInputLayout.java
0f6a807ceaa96930e57e55826ddaae5eab692aa8 18-Mar-2016 Kirill Grouchnikov <kirillg@google.com> mutate() the background of TextInputLayout's editor on changes.

Otherwise the currently tinted background will be used for the next
inflated TextInputLayout.

Bug: 27694398
Change-Id: I6772ab9b58e98675f7b9535d54ef30001d8b3df4
extInputLayout.java
0ecce9994af76ff339a07aad54df190ead15bffd 21-Mar-2016 Chris Banes <chrisbanes@google.com> Don't call requestDisallowInterceptTouchEvent(false)

BUG: 27675378
Change-Id: I4fac000cbaac75c66776064529c4d7b7e09247e5
wipeDismissBehavior.java
5034e5a407b4b7014e1dc9b09accb99f8a5b0a8d 17-Mar-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Fix selection state for custom views on TabLayout" into nyc-dev
7541e4bfa0c9fff31bcb12fc5a94365565388715 17-Mar-2016 Aurimas Liutikas <aurimas@google.com> Check for saved state type in onRestoreInstanceState.
am: bb58a82

* commit 'bb58a82daf11bf3c056d1cd5887aa26435d37b69':
Check for saved state type in onRestoreInstanceState.
bb58a82daf11bf3c056d1cd5887aa26435d37b69 16-Mar-2016 Aurimas Liutikas <aurimas@google.com> Check for saved state type in onRestoreInstanceState.

Add instanceof check in onRestoreInstanceState calls throughout
frameworks/support code.

Bug: 27589237
Change-Id: Id9db70de03979379ca9d98bb8599ac9fa2b46218
avigationView.java
extInputLayout.java
69992cb40e18789f4f406ffc94c4ebbd2bc274f7 16-Mar-2016 Kirill Grouchnikov <kirillg@google.com> Fix selection state for custom views on TabLayout

If Tab.setCustomView is called after TabLayout.addTab, we need
to explicitly propagate the selected state from the TabLayout to
the newly set custom view, mirroring the logic in
TabLayout.addTabView.

Also tweak a few test layouts for consistent attribute ordering
and indentation.

Bug: 27677664
Change-Id: I838092e787f9098e64004ebef3ae84ecbba774b9
abLayout.java
c4b238e1a082c985d1354bdb232a657e60bc71f2 11-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheetBehavior drag condition" into mnc-ub-dev
am: 5eb3e45db9

* commit '5eb3e45db9cb0cdcd20dac450d9408f31ae375c2':
Fix BottomSheetBehavior drag condition
912d40d353f5b6d0a4fa18740ca40aa4b25b0f9c 08-Mar-2016 Yuichi Araki <yaraki@google.com> Fix BottomSheetBehavior drag condition

Bug: 27557583
Change-Id: I5b8bdc46c20c133ebb5e299d5697b07c74b86ecf
ottomSheetBehavior.java
3cbbf6cc4d8124ae40181b5ce38c7a89e749ff0f 09-Mar-2016 Chris Banes <chrisbanes@google.com> Add overload for setupWithViewPager()

Allows disabling of the new auto-refresh from
adapter changes.

BUG: 27477819
Change-Id: I61416c910bead2dd1b1aea50e8c4e63e91d3abca
abLayout.java
6962b2cfaa51f2fe5a40af48307832c4b9d65c0a 07-Mar-2016 Alan Viverette <alanv@google.com> Lazily create cancelEvent in CoordinatorLayout.performIntercept()

Previously we would just never create the cancel event, which resulted
in a NullPointerException later down the stack.

Bug: 27456193
Change-Id: Iad12ee96a66c5c70114e9d36a42e819edee700fa
oordinatorLayout.java
219002589d8a45a7d034af08335c535228eaea0c 04-Mar-2016 Alan Viverette <alanv@google.com> Merge "Unparcel TextInputLayout error using CHAR_SEQUENCE_CREATOR" into mnc-ub-dev
am: 72fe2e3b25

* commit '72fe2e3b256965c9a784cd91775e03706d9f393e':
Unparcel TextInputLayout error using CHAR_SEQUENCE_CREATOR
bf5c0f406c788aa1cb34f25eaed05d17111e734a 03-Mar-2016 Alan Viverette <alanv@google.com> Unparcel TextInputLayout error using CHAR_SEQUENCE_CREATOR

This is symmetric with TextUtils.writeToParcel().

Bug: 27470273
Change-Id: Iedee2d329a50d2e6d8522d141365eec94151a747
extInputLayout.java
0e80971eca90c8b1d470f3804bfb006803ec50fd 02-Mar-2016 Alan Viverette <alanv@google.com> Merge "Verify class of Parcelable in CoordinatorLayout restore state" into mnc-ub-dev
am: 742a876bb4

* commit '742a876bb42a13f152cd34987aa5c8b5bddd7ecf':
Verify class of Parcelable in CoordinatorLayout restore state
b8af67a0b7896d08b81a803b3880dafaddc7e0bc 02-Mar-2016 Alan Viverette <alanv@google.com> Verify class of Parcelable in CoordinatorLayout restore state

Bug: 27451514
Change-Id: I88a37085fd0b26c032ce75eba430c64a425ccb00
oordinatorLayout.java
57e22e067f262010469adae2acfa029597c417b1 02-Mar-2016 Chris Banes <chrisbanes@google.com> Merge "Fix crash in TextInputLayout\'s counter view" into mnc-ub-dev
am: a36552183a

* commit 'a36552183a21899f5a4b09aec03931dae99bdc72':
Fix crash in TextInputLayout's counter view
db6d761cb4ed97b2c0c3c0dddfb071abe224983a 01-Mar-2016 Chris Banes <chrisbanes@google.com> Fix crash in TextInputLayout's counter view

The counter text code needed the same fix as
I500e5fe59368e0c06801e5c358f752b436a670f3

BUG: 27427030
Change-Id: I879af8ba9a446d5437be46482eaae1e7aa9ffd82
extInputLayout.java
c530cc115fddab8e1d9645b322424dd45f9ecd0d 19-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Add test for snapping behavior of AppBarLayout

Also fix bug for incomplete snapping on older devices.

Bug: 27408006
Change-Id: I47fda88c2d7f1bf5ba230e9f7937b2fd05e72282
ppBarLayout.java
bec43dcc29fb7a3494139b470b0481106e1973a9 01-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheetDialog when it is short" into mnc-ub-dev
am: 7cf2a13442

* commit '7cf2a134424e8d7a5095f0df1749bfe871dabb8a':
Fix BottomSheetDialog when it is short
7cf2a134424e8d7a5095f0df1749bfe871dabb8a 01-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheetDialog when it is short" into mnc-ub-dev
37b386a83b3f0ce00d0c734973594ac930466a1b 01-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Reduce talkback for the character counter" into mnc-ub-dev
am: ed26bb259a

* commit 'ed26bb259a74cbea495d38ca562ada0723f76551':
Reduce talkback for the character counter
ed26bb259a74cbea495d38ca562ada0723f76551 01-Mar-2016 Yuichi Araki <yaraki@google.com> Merge "Reduce talkback for the character counter" into mnc-ub-dev
0f268e050ac69084f9e00bfb149735239704c101 29-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix FloatingActionButton.setBackgroundTint* not working" into mnc-ub-dev
am: 0960724273

* commit '0960724273891c9f7a9e2f2f6397c0389747b36e':
Fix FloatingActionButton.setBackgroundTint* not working
0960724273891c9f7a9e2f2f6397c0389747b36e 29-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix FloatingActionButton.setBackgroundTint* not working" into mnc-ub-dev
430d86cbc4754c85aca378b0642f14c256e4f933 29-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Revert "Use colorControlActivated for an active item"" into mnc-ub-dev
am: d0d6eb2423

* commit 'd0d6eb2423ee219f83738f335ed8be9b9153cc01':
Revert "Use colorControlActivated for an active item"
d16802005fe16fb8290dd514611b1554d0db6682 29-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Don\'t always use window insets in AppBarLayout" into mnc-ub-dev
am: 1dc40ada0a

* commit '1dc40ada0a0195df70cad1a3f1c8ebd43e75f5d6':
Don't always use window insets in AppBarLayout
d0d6eb2423ee219f83738f335ed8be9b9153cc01 29-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Revert "Use colorControlActivated for an active item"" into mnc-ub-dev
8818e8e12682e5df1535cd9b2d792494bd3e059d 29-Feb-2016 Chris Banes <chrisbanes@google.com> Don't always use window insets in AppBarLayout

Currently, it does not check if it is set to
fitSystemWindows, so will always use the insets
if it is given them. This can happen if it's parent
is set to fitSystemWindows.

BUG: 27371696

Change-Id: Iaaf344abdebb877676b510847fd98f53226c42bf
ppBarLayout.java
a3f9d4d786427afc96bc48bebd9304c56d41a7c3 29-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Tidy up TextInputLayout.setError()" into nyc-dev
0eda28cff720158c50d0b455663b599830f78992 29-Feb-2016 Chris Banes <chrisbanes@google.com> Revert "Use colorControlActivated for an active item"

This reverts commit 3625a846d7bf9d93d40a870955c619702c922546.

Change-Id: I444a1cf64875af31256fd451749fdb51e4904560
BUG: 27378626
avigationView.java
463c10e3515f73cf096f8872c7b665410ef65147 29-Feb-2016 Yuichi Araki <yaraki@google.com> Reduce talkback for the character counter

This removes ACCESSIBILITY_LIVE_REGION_POLITE from the character counter
view. Unlike the error view, the character counter is updated for every
change on the EditText. Marking it with LIVE_REGION_POLITE can cause
Talkback to announce the counter when the content of the EditText is
restored.

Bug: 27153318
Change-Id: Ie1be0891e931c6fd17482126f232d005fd2baa69
extInputLayout.java
3bd9d18c5855600254e907d6668f2ec4d7fd1c51 26-Feb-2016 Yuichi Araki <yaraki@google.com> Fix BottomSheetDialog when it is short

The bottom sheet is now properly laid out when the content is shorter
than the specified peek height.

This also fixes unwanted canceling when pulling up a short modal bottom
sheet.

Bug: 27350772
Change-Id: I8f44eabbd96c322fa3039683b05c123d3cce9749
ottomSheetBehavior.java
ottomSheetDialog.java
ottomSheetDialogFragment.java
9ba4dbeb02db9c222f39f77b9a335d9deabde98f 25-Feb-2016 Chris Banes <chrisbanes@google.com> Tidy up TextInputLayout.setError()

Turns out that there is an issue if you call
setErrorEnabled() with a previously set non-null
error. This CL fixes this.

Also added tests to test it works.

Change-Id: I24db8724d1e76ef3d05a8cc297a972ec814e62d0
extInputLayout.java
1711e8729c1b901b73f530e87b7c9cc9370f33be 26-Feb-2016 Chris Banes <chrisbanes@google.com> Fix FloatingActionButton.setBackgroundTint* not working

Caused by the move to AppCompatImageButton. Happens due
to AppCompat's own background tinting overriding things.
Fixed by moving back to our own tinting. Had to add
support to use AppCompat's ImageHelper to enable vector
icon support.

BUG: 27372244
Change-Id: Ia06bea72796e7154bae50c65ef6dfe91158e3bf6
loatingActionButton.java
6f9a84a7424c822c628fd0d7ebfaf6abf1656155 25-Feb-2016 Chris Banes <chrisbanes@google.com> Add add/remove methods for TabLayout's selection listener

Allows us to use an internal listener without fear of
an external developer wiping it out. Deprecated the
old set version.

BUG: 27351323
Change-Id: Iac693d1289327047d5529415e6f83f5c472a1499
abLayout.java
84549395ed3e2ec0453f7349716a12eab9901703 26-Feb-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of c16e4c6eec to nyc-dev

Change-Id: Ic309b7bbeb3c89e4e73f09b5806b566d004e0250
44a089034f93de72e5e3e65c90ae4494c37771ab 25-Feb-2016 Chris Banes <chrisbanes@google.com> Revert "Add add/remove methods for TabLayout's selection listener"

This reverts commit ee41c207d5acc4fbfa271afe0b32c6785997c66f.

Change-Id: Iadd7730e3eae714620f6f27e9ab157f5221323aa
abLayout.java
ee41c207d5acc4fbfa271afe0b32c6785997c66f 25-Feb-2016 Chris Banes <chrisbanes@google.com> Add add/remove methods for TabLayout's selection listener

Allows us to use an internal listener without fear of
an external developer wiping it out. Deprecated the
old set version.

BUG: 27351323
Change-Id: Ibebddbbc3494b5c9bf8468b92b3fa470957a5554
abLayout.java
50f777a07774d0f24529e2888fcba95744cb0be1 25-Feb-2016 Chris Banes <chrisbanes@google.com> Fix TabLayout's Tab pooling to actually work

Currently we do not reset the parent which mean that
a different TabLayout trying to use a pooled Tab
instance will blow up.

BUG: 27356169
Change-Id: I332ffaf06bce456b31a29d806df34354ab60d09f
abLayout.java
ccfe45bc4d8090bc9283f3d8dcbfc5497da273e8 24-Feb-2016 Chris Banes <chrisbanes@google.com> Fix FAB and background attrs again
am: d95e0bb027

* commit 'd95e0bb0271ae59387dd9d2ca402ad6f39d789d2':
Fix FAB and background attrs again
d95e0bb0271ae59387dd9d2ca402ad6f39d789d2 24-Feb-2016 Chris Banes <chrisbanes@google.com> Fix FAB and background attrs again

Seems that I didn't actually test with a backgroundTint
set.

Now with added tests to check the background colors.

BUG: 27270707
Change-Id: I92139e9466f33469949d68290def06bf24bbb5ea
loatingActionButton.java
b3ba94bf8b5cdae24e5a09a83813d72f2e2d8c1a 23-Feb-2016 Chris Banes <chrisbanes@google.com> Revert "Add default style attrs for design components"

This reverts commit 7e268c7de8bb10fc24ddda5d237d5cc5ce3b591b.

Change-Id: I5ba53003569cb7918fdaa550d36a697c86b2c282
ollapsingToolbarLayout.java
oordinatorLayout.java
loatingActionButton.java
avigationView.java
abLayout.java
extInputLayout.java
7e268c7de8bb10fc24ddda5d237d5cc5ce3b591b 22-Feb-2016 Chris Banes <chrisbanes@google.com> Add default style attrs for design components

BUG: 27285523
Change-Id: Id19144f3fe58fe61ea132c2ca4fbf2cda5595277
ollapsingToolbarLayout.java
oordinatorLayout.java
loatingActionButton.java
avigationView.java
abLayout.java
extInputLayout.java
b878a92b54fd2c0c05bbf2a7fe45592bfaaf02de 22-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Make TabLayout scroll to the current ViewPager page" into nyc-dev
f5b7c33391e9c8191bb4db7091be1c076a2fa7ea 22-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Nested scroll over clickable items on BottomSheet" into mnc-ub-dev
am: 8feab4189f

* commit '8feab4189ff169a7d954ceb77ca901760134a8fc':
Nested scroll over clickable items on BottomSheet
df23c413315751774dd83a1d930ae6e83bc21d55 22-Feb-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of b928ccefb6 to nyc-dev

Change-Id: I966ee45aaa2f8150421d57d8464f03eca47c3c4c
8feab4189ff169a7d954ceb77ca901760134a8fc 22-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Nested scroll over clickable items on BottomSheet" into mnc-ub-dev
617471b5d3c1465056c542de6343812cc6d6cd06 22-Feb-2016 Chris Banes <chrisbanes@google.com> Make TabLayout scroll to the current ViewPager page

Previously we were not reading scrolling to the
current page when setup.

BUG: 27258295
Change-Id: Id8a262feea2993973ae323e82cd86979e6b6a0f3
abLayout.java
b1eb1357ec33343b7271a6d3876ac4af84e15510 22-Feb-2016 Yuichi Araki <yaraki@google.com> Nested scroll over clickable items on BottomSheet

Prevent ViewDragHelper from stealing nested scrolling events.

Bug: 27260612
Change-Id: I96c4f717995ca0f96a93867dc07cd29e882d0851
ottomSheetBehavior.java
cdc736866534c604c4015c78371ade52bb6d52df 21-Feb-2016 Chris Banes <chrisbanes@google.com> Fix backgroundTint attrs on FAB

Caused by us moving to AppCompatImageButton
which reads the attrs itself and calls the appropriate
methods. Fixed by making sure that FAB's impl is
created before the super constructor is called.

BUG: 27270707
Change-Id: Id16d777bac5892662dbc99f752f81952166acec2
loatingActionButton.java
0137c5c3b6a97a48403c3a8eb76919bdb47d27ee 21-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix crash on L+ when using TextInputLayout" into mnc-ub-dev
am: b786d9a334

* commit 'b786d9a33450b42bf937ca193041e35a11be7ca2':
Fix crash on L+ when using TextInputLayout
9a46fb0215d14a50b6026578e60f53baf70d8fda 19-Feb-2016 Chris Banes <chrisbanes@google.com> Fix crash on L+ when using TextInputLayout

Seems that we change the exception which is thrown
on L+ when a resource can't be inflated. Sigh.

Change-Id: I500e5fe59368e0c06801e5c358f752b436a670f3
extInputLayout.java
d5d3213d80be767482a89bea6d073006582e2bcc 19-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "fix clickable area of FAB on pre-Lollipop devices"
loatingActionButton.java
1005c226fdfddf30e6ad1ec2bb4c57942918dd8f 18-Feb-2016 Kirill Grouchnikov <kirillg@google.com> Testing FAB anchoring with AppBarLayout

Also fix a few typos in FloatingActionButton comments.

Change-Id: Ic42a6f228a189d618b35e5c64ee9e961a58a3e9e
loatingActionButton.java
85f34b0b8b76b93209ea3ac15aec70d27d649d37 17-Feb-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheetBehavior for non-last child" into mnc-ub-dev
am: b294cc743d

* commit 'b294cc743dc9d0c5401f5f1d73dae7e40abfaf9d':
Fix BottomSheetBehavior for non-last child
b294cc743dc9d0c5401f5f1d73dae7e40abfaf9d 17-Feb-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheetBehavior for non-last child" into mnc-ub-dev
325ee6357c68ff444db3a9f8f0cbc3cf6ecdee82 10-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix error colours in design lib" into mnc-ub-dev am: c37d0d5de3
am: ef445d0c1b

* commit 'ef445d0c1bed0992dcabfada1f96fea1b131b5bf':
Fix error colours in design lib
c37d0d5de3d7dffe2bc9f1d8a08caa389f5ffea1 10-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix error colours in design lib" into mnc-ub-dev
4eb453c75e552a2e0231a93468d9597a4069286e 05-Feb-2016 Yuichi Araki <yaraki@google.com> Fix BottomSheetBehavior for non-last child

The bottom sheet does not need to be the last child of CoordinatorLayout
any more.

Bug: 26552452
Change-Id: I180a18ed4f5fcf7b4d026955cae6391a2a2bc19b
ottomSheetBehavior.java
402219e772bc6c4ce242d8eb5f0628f117a6af32 09-Feb-2016 Yuichi Araki <yaraki@google.com> Merge "Fix settling behavior of BottomSheetBehavior" into mnc-ub-dev am: 84f34d245f
am: 82c62c1d47

* commit '82c62c1d47aadb9a716c095a0f6619134e29864c':
Fix settling behavior of BottomSheetBehavior
0cfebf096d09aa7bbdd4cf959c6b42c7c601ff95 09-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar not showing after a dismissal" into mnc-ub-dev am: eb102d7146
am: 0b48018c02

* commit '0b48018c02db2cb76ba45c91aa7e8082cf73fab0':
Fix Snackbar not showing after a dismissal
84f34d245f8664c4b58d763672c77bbc6b2310bd 09-Feb-2016 Yuichi Araki <yaraki@google.com> Merge "Fix settling behavior of BottomSheetBehavior" into mnc-ub-dev
819bbaf04bba63abc7b329a14c92af52515aae0a 08-Feb-2016 Chris Banes <chrisbanes@google.com> Fix Snackbar not showing after a dismissal

Caused by us only dipatching a layout change callback
if 'changed' == true. That won't always be true though
if the layout's contents have changed.

The functionality is ambigiuous in that we have
never documented it, but it's simple enough to support.

BUG: 27064954
Change-Id: I517ebde0ed89a2bddf04aef15535baf1e70b1aa4
nackbar.java
49a5904a773a7cfac127c5938671ed078d8ec8f3 05-Feb-2016 Yuichi Araki <yaraki@google.com> Fix settling behavior of BottomSheetBehavior

The bottom sheet now properly expands or collapses when user release
their finger with zero velocity.

Bug: 26988403
Change-Id: I271b305d7c0aa7d67e39be6b89bdb00eb4faf166
ottomSheetBehavior.java
072816f56235ab4e8bc91032b339e6a7df9d2ea6 05-Feb-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheet supports nested scrolling" into mnc-ub-dev am: 8a57aeeeb8
am: 57d3a3e228

* commit '57d3a3e2283c7381b0d6c3083457aae26d007767':
BottomSheet supports nested scrolling
8a57aeeeb8bb80cb13fdaab2e74a5a4febf10428 05-Feb-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheet supports nested scrolling" into mnc-ub-dev
31b690241124e22631b9e9f485bc4dbf88254db1 04-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix window insets for AppBarLayouts in ViewPager" into mnc-ub-dev am: 75fd07ac98
am: edc47e19cd

* commit 'edc47e19cddd681bffd02103661b7c03db87c2ce':
Fix window insets for AppBarLayouts in ViewPager
77eb6a5e7d1b1462bb4f811724cb42d22f189a2f 04-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Set a callback on CoL\'s status bar background" into mnc-ub-dev am: 9079ab7c6b
am: b876a299cc

* commit 'b876a299cc3fb4decf1ecf3a5a0d34b342d4b32a':
Set a callback on CoL's status bar background
75fd07ac981ba1f3e02ea4e67029b6c95088ff5f 04-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix window insets for AppBarLayouts in ViewPager" into mnc-ub-dev
9079ab7c6b5ada9d6d667fc97755c96d296e2cee 04-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Set a callback on CoL's status bar background" into mnc-ub-dev
ac02ad7cf1f18084b44aab98655d3ffc7b100563 04-Feb-2016 Adam Powell <adamp@google.com> Make CoordinatorLayout Behavior scrim methods non-final am: 4d4b8a2a5b
am: f198c999a6

* commit 'f198c999a62f836ef6408342924c77dbfad41e04':
Make CoordinatorLayout Behavior scrim methods non-final
4d4b8a2a5b5907383e7ca168dd01c76dc75ab930 03-Feb-2016 Adam Powell <adamp@google.com> Make CoordinatorLayout Behavior scrim methods non-final

Because they aren't much use this way.

Change-Id: I4dcfe174a9a8eeec8a15ddcda0a68e72a5b32bc2
oordinatorLayout.java
8f7c75e11bb75653e8c58930f66981f766dc2c06 03-Feb-2016 Chris Banes <chrisbanes@google.com> Fix error colours in design lib

We now have themes in Design lib which apps should be using.
Since we can't break apps which are not using the themes,
we also support themes which are not descendent of Theme.Design.

BUG: 26933361

Change-Id: I8b62ef8e263ba93d5e9943360967ec8939688744
extInputLayout.java
bcb330de0c625b371010bada2a51363fc37b52cc 02-Feb-2016 Chris Banes <chrisbanes@google.com> Set a callback on CoL's status bar background

While there I also tidied up CoordinatorLayout's
various drawables, and add annotations.

BUG: 26920362
Change-Id: I32c03f3b647b89a5354c8a46fe3565fc7d45167c
ollapsingToolbarLayout.java
oordinatorLayout.java
e3e7063749d095bba8743cad0aeb7164a567890d 29-Jan-2016 Yuichi Araki <yaraki@google.com> BottomSheet supports nested scrolling

The bottom sheet can be expanded or collapsed continuously from
scrolling its content.

Bug: 26816091
Change-Id: I1f2b55e6f7ebcaf3365aae29219d324fa12d9c83
ottomSheetBehavior.java
717d43b1075f2a83f23325d0f74f1c5e1a85c468 02-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "AppBarLayout overlap layout fix" into mnc-ub-dev am: dbc6d32136
am: 7d6fdbdb5b

* commit '7d6fdbdb5b7012cc8ee8764e1d8509aeeea9142c':
AppBarLayout overlap layout fix
b2f568c9c71763ed823b1f9c274077825b5d0c9e 18-Jan-2016 Chris Banes <chrisbanes@google.com> AppBarLayout overlap layout fix

The overlap was not being initially applied in the
new layout code path.

BUG: 26899722

Change-Id: Ifda4b05b58dac5f8936d38d2f664fbeda530ce13
ppBarLayout.java
eaderScrollingViewBehavior.java
17ed3263761329f6aa6796941358c41001fff325 29-Jan-2016 Chris Banes <chrisbanes@google.com> Fix window insets for AppBarLayouts in ViewPager

Caused by the standard dispatchApplyWindowInsets()
not being appropriate for a horizontally scrolling
widget with full-height children. This is because
if child 0 consumes the insets, the rest of the children
will not receive the dispatch. To workaround this
we manually dispatch the original insets, not allowing
children to consume them from each other.

Also tidied up the window insets dispatching in CoL,
AppBarLayout and CollapsingToolbarLayout.

BUG: 22869860

Change-Id: I26544267f672b3b4d041d4ef8b29dd0d5f706455
ppBarLayout.java
ollapsingToolbarLayout.java
oordinatorLayout.java
681f964d3315b6aa7af4cc43064dd570bf7dd02c 28-Jan-2016 Chris Banes <chrisbanes@google.com> resolve merge conflicts of 7b0d039842 to master.

Change-Id: I6068e0312018955a1bc73129f0b289991a385ea0
60c2e837072c2a7d668e936e6ef6faed05e02990 28-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar swipe to dismiss not working pre-v11" into mnc-ub-dev
9ae5a4609b36b200f1b9580dc0c2050186a5a94d 27-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Testing appearance-related APIs on NavigationView. am: 8ea47e618b
am: 36a3b04bea

* commit '36a3b04bea73084d2f5d4e9e69acc492b2c86f18':
Testing appearance-related APIs on NavigationView.
8ea47e618ba5dad21c7b023aa998979eebcf2103 26-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Testing appearance-related APIs on NavigationView.

Also fix a bug where setting item background wouldn't update
the navigation view content. In addition, mark a few method
signatures with @Nullable where appropriate.

Bug: 26793013
Change-Id: Ie91c376d73beb7acb317510ac8322771ca17b66a
avigationView.java
a89b7a8e4840e52dfda1442bcb885686680556f6 26-Jan-2016 Chris Banes <chrisbanes@google.com> Fix Snackbar swipe to dismiss not working pre-v11

Multiple issues:
- offsetTopAndBottom doesn't invalidate pre-v11, so
ViewDragHelper now uses the ViewCompat version.
- ViewCompat's offset method needs to invalidate the parent
instead, since the view has moved and thus the dirty rect
is larger than the view's bounds.
- Fixed issue in Snackbar which meant that the view would
not be removed after a swipe settle.

BUG: 26768803
Change-Id: Ia9abc4884f8ffd05408135d3fc4dd1b073392a7b
nackbar.java
2674c749a3746fae75481aeb42ef47cd1b8955c5 26-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Optimize text drawing in CollapsingTextHelper" into mnc-ub-dev am: f6a760abe9
am: a6d4cdcf15

* commit 'a6d4cdcf156161b054702db44c88d023054b2f59':
Optimize text drawing in CollapsingTextHelper
973218c60005eb672a27b027403c9231d5d21303 26-Jan-2016 Chris Banes <chrisbanes@google.com> Optimize text drawing in CollapsingTextHelper

Use subpixel measurement, which is handy for custom typefaces,
and linear text scaling when we're scaling text.

Change-Id: Idf6373add6ccc939c57f7e8833ffd2712b4f7347
ollapsingTextHelper.java
bc90647d8b4897b7530b31942bb9b6e3695bf0f7 25-Jan-2016 Yuichi Araki <yaraki@google.com> Merge "Bottom sheets ignore touch events when invisible" into mnc-ub-dev am: 7061f1c4b9
am: 3be6bbdb46

* commit '3be6bbdb46deaf0708eb4de5002c8e77fa9ab756':
Bottom sheets ignore touch events when invisible
17fc77f5ca7c91daeab2e110669d9baf9d1a8090 22-Jan-2016 Yuichi Araki <yaraki@google.com> Bottom sheets ignore touch events when invisible

Bug: 26703483
Change-Id: Idc69f43b6019e9ca782c6a5d330fba7d27ffecba
ottomSheetBehavior.java
ecba4ce7908e34fdf6657de086525b7fd5dd3f67 21-Jan-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheetBehavior passes View to callbacks" into mnc-ub-dev am: b4a1c82a4a
am: 98f6659182

* commit '98f6659182932abc6b058a2cbea12ed4432e45a4':
BottomSheetBehavior passes View to callbacks
b4a1c82a4abd8f8749a7154090cfaebe266694b8 21-Jan-2016 Yuichi Araki <yaraki@google.com> Merge "BottomSheetBehavior passes View to callbacks" into mnc-ub-dev
669e3afeade265e0411d8eb10483410556677a5d 20-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Accessibility fix for Snackbar announcements" into mnc-ub-dev am: 804aa1e7d8
am: 61e07fb8e6

* commit '61e07fb8e6843e7d7d293eb2ca674333f0a3e600':
Accessibility fix for Snackbar announcements
ed149aee7e5d78a9b5714e7b7b1cc394ca9e4af3 18-Jan-2016 Chris Banes <chrisbanes@google.com> Accessibility fix for Snackbar announcements

Allows it to properly announce itself when shown/hidden.
Was broken by a fade animation on the Snackbar's child
views, making Talkback think they were not visible.

Also made Snackbar important for accessibility, for devices
running pre-v19.

BUG: 23097365

Change-Id: I57c6c7ecb70661c7c04e0923ad9df2eaa3a360af
nackbar.java
d910e8fb9d1412764450a5b4e7908ae5804396ef 15-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Allow TabLayout items to be added in a layout" into mnc-ub-dev am: d54168f673
am: b9fb26837f

* commit 'b9fb26837fabff91b40b710f956fe9ce67b126bc':
Allow TabLayout items to be added in a layout
4cc50ca6952dcc35f1babd918742dbd09e3c01c7 05-Jan-2016 Chris Banes <chrisbanes@google.com> Allow TabLayout items to be added in a layout

Adds a new dummy view called TabItem which is just a
vehicle for reading attributes.

Also tidied up TabLayout's attribute javadoc

BUG: 19634570

Change-Id: Ia3a5e518bcf8266fb9fa800f062dd1dc6fe7214c
abItem.java
abLayout.java
070c7139ee671e10e2197d9cad4015b797cd0e9a 15-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Fix CollapsingToolbarLayout not drawing a title" into mnc-ub-dev am: af862ffe2a
am: b66d81e110

* commit 'b66d81e110b9056c448a094e3a21734333d665f1':
Fix CollapsingToolbarLayout not drawing a title
af862ffe2aa8bc3740072a991f0ac1d82b86607d 15-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Fix CollapsingToolbarLayout not drawing a title" into mnc-ub-dev
424d9b914f459ad48631d7762c4e133f11f45c34 14-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar tests when animations are enabled" into mnc-ub-dev am: 5b5ab38cdf
am: 120b623fd2

* commit '120b623fd24e5ebb94b7059d514d4ae8bb0a7600':
Fix Snackbar tests when animations are enabled
5b5ab38cdf3122c980260c177178512242a752a2 14-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar tests when animations are enabled" into mnc-ub-dev
6b0726e90aa7c4657f5bf7459fadbaf58905c3c8 14-Jan-2016 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout not drawing a title

Happens when used in a parent which is initially GONE. An example
is a fragment which is used as a drawer in a DrawerLayout.

CollapsingToolbarLayout uses isShown() to work out if it has
enough space to draw a title. isShown() doesn't work in this
situation since it crawls up the view hierarchy to check that
all ancestors are visible. This doesn't matter to us, so
we now just check if the dummy view is attached and visible.

BUG: 26554039
Change-Id: I77541023d2079cfb7d4f16602b30db3ba707ba67
ollapsingToolbarLayout.java
dffd8d4be91b2e5e0ce66ad96867182db0c02fd0 14-Jan-2016 Yuichi Araki <yaraki@google.com> BottomSheetBehavior passes View to callbacks

Bug: 26509449
Change-Id: Ie82cc63d9ce75ec92bbb6cd444abd20faffbb7b5
ottomSheetBehavior.java
ottomSheetDialog.java
52aa1ed4e3fb95efd29d8006a6dac1740aa79abe 13-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Add TextInputEditText to accompany TextInputLayout" into mnc-ub-dev am: 180941a683
am: af72dfa539

* commit 'af72dfa53964090135feb55d5d53d4eecb6bb0a8':
Add TextInputEditText to accompany TextInputLayout
df00f11c8c90db7b26672267fd1b74250c0d6cef 13-Jan-2016 Chris Banes <chrisbanes@google.com> Fix Snackbar tests when animations are enabled

Change-Id: If75f17ab09fe4b1a72b3bcc9ba29d90a8eb85972
nackbar.java
fc03cb44932f21e89d08d6117158e2c9131e9959 13-Jan-2016 Chris Banes <chrisbanes@google.com> Add TextInputEditText to accompany TextInputLayout

Allows us to update the IMEs hint to match the TIL.

BUG: 26421088
Change-Id: I283b73ff29406e927823f1803c654b367c390aef
extInputEditText.java
extInputLayout.java
ce3a9441d6f0817e469b32fe0e8067002a78f5c6 11-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Guard against NPE in TabLayout" into mnc-ub-dev am: 3649bdf5a5
am: a20b22fef6

* commit 'a20b22fef65f9f0d3d799311ec5f2e87f037c162':
Guard against NPE in TabLayout
9c2232ee41f2db73648348e84cba637b892de617 11-Jan-2016 Chris Banes <chrisbanes@google.com> Guard against NPE in TabLayout

I can't recreate but it's a simple check and worth
doing anyway.

BUG: 26482513
Change-Id: Iaaaee0ff077152b4c859d51e44c7ec69d476e8fd
abLayout.java
7dfefd41cc64cc46d41d9906526e013d92ef745f 08-Jan-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheet over ScrollView" into mnc-ub-dev am: 129ef23221
am: 23848059a9

* commit '23848059a9a6265fe9c6db056e7e0d9b5f193f45':
Fix BottomSheet over ScrollView
129ef23221fb1639caca62de279f1437e657cd07 08-Jan-2016 Yuichi Araki <yaraki@google.com> Merge "Fix BottomSheet over ScrollView" into mnc-ub-dev
0595eabfc590375a245f4622716290d3dac8fa01 07-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar callback being called twice on API 14/15" into mnc-ub-dev am: 9264b12f53
am: 32aeb4fbee

* commit '32aeb4fbee8e7dc0cd5424d9e64e068e897e5281':
Fix Snackbar callback being called twice on API 14/15
bfd48d0521963754e04e407499ee9e278fe06c0f 06-Jan-2016 Chris Banes <chrisbanes@google.com> Fix Snackbar callback being called twice on API 14/15

BUG: 25072545
Change-Id: I589af3896c4c13f1cb2768e3fea95cd2f7a72365
nackbar.java
nackbarManager.java
010eff40dbd547fa9ef6834ba9ac81ce03d6c8df 07-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Fix SwipeDismissBehavior not request disallow intercepts" into mnc-ub-dev am: 96104282e1
am: 36540931a6

* commit '36540931a60a72b23cb3af68c3d91391a300bbe5':
Fix SwipeDismissBehavior not request disallow intercepts
96104282e1a636764957180985d4292243cc589d 07-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Fix SwipeDismissBehavior not request disallow intercepts" into mnc-ub-dev
9aec720809a123c6193304730acf8b55d6ce5a7a 17-Dec-2015 Yuichi Araki <yaraki@google.com> Fix BottomSheet over ScrollView

The event handling in BottomSheetBehavior is much simplified by
delegating most of its work to ViewDragHelper.

This also fixes ViewGroupUtils.offsetDescendantRect on Gingerbread so
that it disregards the scroll offsets of the content of the target
child. This was necessary to fix the behavior of
CoordinatorLayout.isPointInChildBounds.

Bug: 26237244
Bug: 26435997
Change-Id: I63de59fb859c2071186eb202a037b048a71ea8f2
ottomSheetBehavior.java
ottomSheetDialog.java
ottomSheetDialogFragment.java
iewGroupUtils.java
fbedfdc066feeec46764b43034a56fbb91454593 06-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Disable delay child pressed state propogation for Tabs" into mnc-ub-dev am: ab8e873944
am: 3f73140f9a

* commit '3f73140f9a0eabc2a0b804cf76aa26d062456b4e':
Disable delay child pressed state propogation for Tabs
090d6780d4a901b258f33bcaa53014ca06744857 06-Jan-2016 Chris Banes <chrisbanes@google.com> Disable delay child pressed state propogation for Tabs

If the tabs can't scroll then we don't need to delay.

Change-Id: I452def4a572cb731b54a7f24d6ea2f3360c18956
abLayout.java
b6583d431d89eecd4b53e069590f38ab42211c53 05-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Third pass for testing TabLayout with ViewPager" into mnc-ub-dev am: 751d0361f1
am: 6b09720a5e

* commit '6b09720a5ee0ab11d22a973e5d7d981e482cd77f':
Third pass for testing TabLayout with ViewPager
303128e6b3f0a05a6ec5592a727408b20d250066 05-Jan-2016 Chris Banes <chrisbanes@google.com> Merge "Fix AppBarLayout layout issues" into mnc-ub-dev am: 25ce9fa091
am: 81f53d75b5

* commit '81f53d75b5b6efb2b19cc8df881b470aef0d41e9':
Fix AppBarLayout layout issues
751d0361f1e91c157dc365512c3099624b99c65f 05-Jan-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Third pass for testing TabLayout with ViewPager" into mnc-ub-dev
c7f2aad754af4373c32fcab613de0ba164ada2a2 22-Dec-2015 Kirill Grouchnikov <kirillg@google.com> Third pass for testing TabLayout with ViewPager

Testing min and max tab title width under scrollable mode

Change-Id: I70abd29082a9f7ec3f1ee401eafeaa1cd7d83d2a
abLayout.java
90dfc0aa3215c247825ea1001478ed17a767c45d 05-Jan-2016 Chris Banes <chrisbanes@google.com> Fix SwipeDismissBehavior not request disallow intercepts

BUG: 26395872
Change-Id: I0a15130d465abacbff1f60b8ecd0cfcda9564e85
wipeDismissBehavior.java
5e7673e0dbd89512b525d1bde5c912eb07885550 05-Jan-2016 Chris Banes <chrisbanes@google.com> Fix AppBarLayout layout issues

Cropped up after we moved to laying out the scrolling view
in the offset position. The problem occurs when the
AppBarLayout is scrolled off screen by any amount, and
then a layout occurs. The scrolling view is then laid out
attached to the bottom of it.

The old scrolling logic didn't account for this and expects
the scrolling view to be laid out in the same base position
every time.

Since we now lay the scrolling view correctly in the
first place, there is now no need to use ViewOffsetHelper
and can just use offsetTopAndBottom to offset while scrolling.

Change-Id: If9b4cb9ebae49235ffbc152a5f7af87843b459e7
ppBarLayout.java
eaderScrollingViewBehavior.java
6a256c6b11d9a174bd77c3501b2c379721544f6f 17-Dec-2015 Yuichi Araki <yaraki@google.com> Merge "Rename BottomSheetListener to BottomSheetCallback" into mnc-ub-dev am: c24de94c68
am: 48616551ac

* commit '48616551ac03689de6a2f92f3df131137d357997':
Rename BottomSheetListener to BottomSheetCallback
4df3c15e330c2f9730d3aa712f57befec8536dff 16-Dec-2015 Yuichi Araki <yaraki@google.com> Rename BottomSheetListener to BottomSheetCallback

Bug: 26181788
Change-Id: I28f79120d65814e9cd92238f726b8ca51b4122cd
ottomSheetBehavior.java
ottomSheetDialog.java
7e1cd0b84ec4f183be9cc5025960724092f2cae4 16-Dec-2015 Yuichi Araki <yaraki@google.com> Merge "BottomSheetDialog and BottomSheetDialogFragment" into mnc-ub-dev am: 623321eab7
am: 911b8ca625

* commit '911b8ca625d9be4f532837ebf8a4e144f339514c':
BottomSheetDialog and BottomSheetDialogFragment
623321eab762c7aca78f08251f89a4e833c914b7 16-Dec-2015 Yuichi Araki <yaraki@google.com> Merge "BottomSheetDialog and BottomSheetDialogFragment" into mnc-ub-dev
67a01cd12b57cb8813116b3b76e3e476849c5d02 15-Dec-2015 Chris Banes <chrisbanes@google.com> Merge "Rename FAB elevation methods" into mnc-ub-dev am: e00394c1f1
am: c51508b44a

* commit 'c51508b44adf1c297ff7e7b82f21dfcbc3f543e0':
Rename FAB elevation methods
874a5968599b8c53212ff49af5c047b1211b547a 15-Dec-2015 Chris Banes <chrisbanes@google.com> resolve merge conflicts of fc349fd483 to master.

Change-Id: I94a731888f74c6b0e9d9af60fe752d2086cb0f77
1e220ff878c4b9c22aff3a6afc20aa89449c1833 15-Dec-2015 Chris Banes <chrisbanes@google.com> Rename FAB elevation methods

BUG: 26181792
Change-Id: I722f6c004a00f7f9fde05b90b969786bf1e65f99
loatingActionButton.java
c6e687cb413fbf0c9c39ca2614b825b1fb2779aa 15-Dec-2015 Chris Banes <chrisbanes@google.com> Merge "Allow Toolbar's to be nested in CTL" into mnc-ub-dev
bf987613e4a9043e263346047494ba3e977ff0f8 09-Dec-2015 Yuichi Araki <yaraki@google.com> BottomSheetDialog and BottomSheetDialogFragment

These are referred to as "modal" bottom sheets in the Material Design
guideline.

BottomSheetDialogFragment can be used like DialogFragment, but it shows
the content using BottomSheetBehavior. BottomSheetDialog is an
implementation of Dialog styled to show a bottom sheet.

Bug: 23989269
Change-Id: I6aefb221539f18cef580f5fa8bc8c377198b359c
ottomSheetDialog.java
ottomSheetDialogFragment.java
795682dbbd48cff248dfa101c86d4d70359f497e 14-Dec-2015 Yuichi Araki <yaraki@google.com> Merge "Use colorControlActivated for an active item" into mnc-ub-dev am: 68c36ca06a
am: d2c57d085b

* commit 'd2c57d085bc699ddb6c1f5a25adfdbe274fd4060':
Use colorControlActivated for an active item
68c36ca06a766166e7614c1b771594322bd32f96 14-Dec-2015 Yuichi Araki <yaraki@google.com> Merge "Use colorControlActivated for an active item" into mnc-ub-dev
83836dc0bdaa2a0e9d33596ae48e0681710fc868 11-Dec-2015 Chris Banes <chrisbanes@google.com> Fix scrolling view overlapping AppBarLayout am: e04ed82f45
am: fcac85f0c6

* commit 'fcac85f0c65e3b7deabe34713bb555131bb6d3a4':
Fix scrolling view overlapping AppBarLayout
e04ed82f4562103baed27d81ff172418ab3ca41a 11-Dec-2015 Chris Banes <chrisbanes@google.com> Fix scrolling view overlapping AppBarLayout

Happens when the CoL has fitSystemWindows=true,
but the children don't. This means that simply using
the ABL's height isn't enough, and we need to use
its bottom instead. Which makes more sense anyway
since we're pinned to its bottom.

BUG: 26150580
Change-Id: If8907f784e45cc0815a9c3fb17255ca2c993011c
eaderScrollingViewBehavior.java
489be7987d92babb4197809b6b49a123ff7b5ef3 11-Dec-2015 Chris Banes <chrisbanes@google.com> Fix CoL doc bug am: c6d62e6d5c
am: 42d746a736

* commit '42d746a7363ddb4629135e8dd4c383802aea31fe':
Fix CoL doc bug
c6d62e6d5ca277d4649c686e76edd63176c7c4e3 11-Dec-2015 Chris Banes <chrisbanes@google.com> Fix CoL doc bug

BUG: 26127110
Change-Id: I4335a66f52d900b23e4b58cdaa029f4c906e140b
oordinatorLayout.java
3625a846d7bf9d93d40a870955c619702c922546 10-Dec-2015 Yuichi Araki <yaraki@google.com> Use colorControlActivated for an active item

Bug: 26145707
Change-Id: I1f1d34560e759e4e33f92e2fdf72aaeb163a24a0
avigationView.java
d32a2387f62c4bfb7a5b52549956bc1c727affa9 10-Dec-2015 Chris Banes <chrisbanes@google.com> Merge "Fix NPE in setCustomView() before addTab()" into mnc-ub-dev am: cb1edc393e
am: 8cabaaec46

* commit '8cabaaec466113988b186f6c83be362a49b8110d':
Fix NPE in setCustomView() before addTab()
4837e2d38e11a8e85a2718e4620f73d32dcde184 07-Dec-2015 Chris Banes <chrisbanes@google.com> Allow Toolbar's to be nested in CTL

Also documented the dummy view functionality.

BUG: 25680977
BUG: 25927941

Change-Id: I8af68d18b4d06cc44e2076b7ff456e80ecd0009a
ollapsingToolbarLayout.java
cb1edc393e08f9554684fc8d409779007639cb9c 10-Dec-2015 Chris Banes <chrisbanes@google.com> Merge "Fix NPE in setCustomView() before addTab()" into mnc-ub-dev
4d3d15fe0c07bfdb12c9f575f48a273f9955a6e1 08-Dec-2015 Chris Banes <chrisbanes@google.com> Merge "Don\'t update hint color when error is shown" into mnc-ub-dev am: 78714f9ddc
am: 8fbdbc71af

* commit '8fbdbc71af44387ffb51dd224e8e0ba1c0c943e2':
Don't update hint color when error is shown
3a1aa2f92d0d07fac2364078b6c603a650ebbe0e 25-Nov-2015 Chris Banes <chrisbanes@google.com> Fix NPE in setCustomView() before addTab()

Fixed by moving the Tab's view creation to
within newTab(), ensuring that there is a View
and Context available for setCustomView().

Also fixed a memory leak due to our new view
pooling and a shared OnClickListener. Fixed by
moving our click handling to be within TabView.

BUG: 25855779

Change-Id: Iba104840933d88d7482fb758684286aa7922ea92
abLayout.java
78714f9ddc8321546cda648bc7b7ed5eced8ca0f 07-Dec-2015 Chris Banes <chrisbanes@google.com> Merge "Don't update hint color when error is shown" into mnc-ub-dev
7cf044ca36c51500cd1f81fc0a8713c887d4d827 06-Dec-2015 Chris Banes <chrisbanes@google.com> Don't update hint color when error is shown

BUG: 26020600
Change-Id: I4d9e8aa7284a4dcb62676605174fc4535b5b1172
extInputLayout.java
69129b50a95ce5d4dea7cec80a6596e5fdfcd738 04-Dec-2015 Yuichi Araki <yaraki@google.com> Merge "Support for use outside of DrawerLayout" into mnc-ub-dev am: 573ba55e84
am: bf7e4c6ef6

* commit 'bf7e4c6ef66ee97e2d495b5d80b12c1ef4f82f36':
Support for use outside of DrawerLayout
3162aeefe11bc17699ca3f8f9e2eb1b475bae5c0 04-Dec-2015 Yuichi Araki <yaraki@google.com> Merge "Add hide feature to BottomSheetBehavior" into mnc-ub-dev am: 9a2aa38cb2
am: a58bff0a44

* commit 'a58bff0a44a425e9ae5156458aa30eb66572dd42':
Add hide feature to BottomSheetBehavior
573ba55e84fb3ea2d9c8ba82cdf1f62c9f4e0163 04-Dec-2015 Yuichi Araki <yaraki@google.com> Merge "Support for use outside of DrawerLayout" into mnc-ub-dev
9a2aa38cb250aa98a5137acd653546518f022ca7 04-Dec-2015 Yuichi Araki <yaraki@google.com> Merge "Add hide feature to BottomSheetBehavior" into mnc-ub-dev
dcebbc1143a1be00a09aa6aa5fb798487cb67d34 03-Dec-2015 Chris Banes <chrisbanes@google.com> Update FAB\'s tX even if it\'s not shown am: e33473d0e3
am: 84c1501ab5

* commit '84c1501ab5d85a8f499e8b1cba6f5176f1703bfd':
Update FAB's tX even if it's not shown
e33473d0e35315c02243363a7479a2c361765751 03-Dec-2015 Chris Banes <chrisbanes@google.com> Update FAB's tX even if it's not shown

Fixes the case where a FAB is hidden while
a Snackbar is displayed, and then shown after
the Snackbar has been removed.

BUG: 25887293
Change-Id: I9c705273e58a00941f0104e4377df4530b7b351e
loatingActionButton.java
30d42dc19655e637644adc3846025027240bf0af 01-Dec-2015 Yuichi Araki <yaraki@google.com> Support for use outside of DrawerLayout

NavigationView can now be used outside of DrawerLayout.

Bug: 22727030
Change-Id: I94fb1094592b416da5d5fe6907ae35d1318cd391
avigationView.java
f28a0f76c7a46d61785ef7cbc407c19942ecab46 06-Oct-2015 Yuichi Araki <yaraki@google.com> Add hide feature to BottomSheetBehavior

Bottom sheets can now be hidden by swiping it further downward. This
also adds BottomSheetListener so that the state of the bottom sheet can
be monitored.

Bug: 23989269
Change-Id: Iadaca8cfd342ad6521874c728c069b2abd297e23
ottomSheetBehavior.java
3f04083a4d5d62025500b4c3cdaa7eb22df33e5d 25-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Support animateLayoutChanges with ABL" into mnc-ub-dev am: 7af42d99bf
am: 9102ca3884

* commit '9102ca3884188d59fcbc3b4611cf667c7148686b':
Support animateLayoutChanges with ABL
c682e2c8129f6c2b6596b0ce4a8c4803629b432d 16-Nov-2015 Chris Banes <chrisbanes@google.com> Support animateLayoutChanges with ABL

Caused by LayoutTransition doing all of it's
calculating in layout. ABL then offsets the top
meaning that the animation is in the wrong position.
Fixed by laying out in the correct position in the
first place.

BUG: 25414177

Change-Id: I68a6478a950a7556107badade01c369a0e77f057
ppBarLayout.java
eaderScrollingViewBehavior.java
iewOffsetBehavior.java
085f30f971b173fe61d0051f0cdfd99204e6ac0d 23-Nov-2015 Aurimas Liutikas <aurimas@google.com> Merge "Revert "Fix build.""
aa6614b33c529b5eee189c0c61e22a795f278553 23-Nov-2015 Aurimas Liutikas <aurimas@google.com> Revert "Fix build."

Landing a proper fix instead: https://googleplex-android-review.git.corp.google.com/#/c/818427/2
This reverts commit 35e628bed4884c70e63d3d963812999090539000.

Change-Id: I308e1b842942bdb10c33db138a66680efa814ca2
extInputLayout.java
88626418f023a5239a3d6a22f38d24fefe0c32bc 23-Nov-2015 Aurimas Liutikas <aurimas@google.com> Merge "Remove unused private method in TextInputLayout." into mnc-ub-dev
am: e880f08818

* commit 'e880f0881830661ad651452661800f0a10da4795':
Remove unused private method in TextInputLayout.
e880f0881830661ad651452661800f0a10da4795 23-Nov-2015 Aurimas Liutikas <aurimas@google.com> Merge "Remove unused private method in TextInputLayout." into mnc-ub-dev
35e628bed4884c70e63d3d963812999090539000 21-Nov-2015 Rakesh Iyer <rni@google.com> Fix build.

Change-Id: I851e17f04b5abc6a42f8d80abe1c222bae775396
extInputLayout.java
87ca85917a1cf62af4bf66acff58bc185a7efd5f 21-Nov-2015 Aurimas Liutikas <aurimas@google.com> Remove unused private method in TextInputLayout.

Bug: None
Change-Id: I1113fdf8b7c4419f969d763f5dd20b096af5c938
extInputLayout.java
9c4f6f75ddfefb1f739834172dea5f16b162b6a2 19-Nov-2015 Aurimas Liutikas <aurimas@google.com> Start saving TextInputLayout error state.

Bug: 22868762
Change-Id: Iaa139f685332ddf32ffe6adb2b5eb2ac1336888a
extInputLayout.java
bf7f85aebe2b1d2c4adb0039493c467baccf9e15 19-Nov-2015 Aurimas Liutikas <aurimas@google.com> Start saving TextInputLayout error state.

Bug: 22868762
Change-Id: Iaa139f685332ddf32ffe6adb2b5eb2ac1336888a
extInputLayout.java
85f9fd6866aa5503d7919e709b4230ef13a7ff61 20-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Refactor the error state" into mnc-ub-dev
am: ae72ad4680

* commit 'ae72ad46806851173c83faf1d053d508b84a6370':
Refactor the error state
a8371f1c37333ef4c09c654d664026bdd9139045 20-Nov-2015 Chris Banes <chrisbanes@google.com> Refactor the error state

Currently calling getError() will return whatever
is in the TextView, even if it is animating out,
which doesn't quite match developer expectation.

This CL updates the state so that it always returns
whatever the last call to setError() was.

BUG: 25781427
Change-Id: I359c271f31a7c3f26ed71b673f9797ce9d769e2e
extInputLayout.java
a454cd7eeb61bf0584823aaa626cb091a5bac32e 20-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Don\'t animate TIL error if we\'ve been given the same error" into mnc-ub-dev am: 23746a567d
am: ba8b9946e9

* commit 'ba8b9946e9f9973575adae7e8eb601ccbce5850d':
Don't animate TIL error if we've been given the same error
9ad8054d7552b6061f4d5b6bb5c1c639cc87bdd7 19-Nov-2015 Chris Banes <chrisbanes@google.com> Don't animate TIL error if we've been given the same error

BUG: 25781224
Change-Id: I6b507dd0ec993280cfc7aa19741cc51129f13acd
extInputLayout.java
e53cf2d43709ec60f59460d8860188c671e642da 17-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "AppBarLayout fixes" into mnc-ub-dev
am: 70500b1abd

* commit '70500b1abd50112e8380e4f330b6103b34486894':
AppBarLayout fixes
47543aa43aacb8defbbf90682fcb2b63ce1b00b5 16-Nov-2015 Chris Banes <chrisbanes@google.com> AppBarLayout fixes

- Make sure we honor snap after a manual drag
(rather than a nested scroll).
- Support exitUntilCollapsed|enterAlways correctly
- Ensure the offset is constrained on size change

BUG: 25707376
BUG: 25680933
BUG: 25681811

Change-Id: Idfa3ed32e42890725e4ee59236fa84a705d433d4
ppBarLayout.java
eaderBehavior.java
dce94a73f4492051683faa1416d7dd78c636af99 15-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Ensure that the indicator area is set to GONE" into mnc-ub-dev
am: 2d8ab49700

* commit '2d8ab49700e81b075f7e1a421aad9f2380549675':
Ensure that the indicator area is set to GONE
2d8ab49700e81b075f7e1a421aad9f2380549675 15-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Ensure that the indicator area is set to GONE" into mnc-ub-dev
669b23b4f7f8ccea07719d6556c745c38f955f78 13-Nov-2015 Chris Banes <chrisbanes@google.com> Ensure that the indicator area is set to GONE

We're currently checking for 0 children, which
will never happen since we're using an internal
Space widget which is never removed. This means
the indicator view is still there, with its
associated padding.

BUG: 25680579
Change-Id: Ie41929ad9f67fdf84ed06a47437650611b08cbd1
extInputLayout.java
04c7dd6e5f6b811d50d25ac12314a660eca48d46 12-Nov-2015 Chris Banes <chrisbanes@google.com> Fix wiping out a view\'s translationY am: 1888ec357f
am: d695f8043a

* commit 'd695f8043a5c93f586b69601310368fff3c795d5':
Fix wiping out a view's translationY
1888ec357f25aa2b9e9a0d139ab40371da5858a6 12-Nov-2015 Chris Banes <chrisbanes@google.com> Fix wiping out a view's translationY

BUG: 25654805
Change-Id: Ib227a2cf8658e39b35f7195fbdfd9d0254d160ad
iewOffsetHelper.java
962f72d4691edb762f658a92fb971bc559ba18e6 11-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Workaround TextInputLayout state changes becoming permanent" into mnc-ub-dev am: 459155dd30
am: 810efa6b4f

* commit '810efa6b4ffc687db1cfe717f690afe0612920d1':
Workaround TextInputLayout state changes becoming permanent
459155dd30e6fde2e98d5590454d5f0a0ccef3e0 11-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Workaround TextInputLayout state changes becoming permanent" into mnc-ub-dev
371b91f5d62dd4ef6d65f60d2661f680b07402f8 11-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Add dynamic tab support to TabLayout" into mnc-ub-dev am: d1639084df
am: e85a49ff5a

* commit 'e85a49ff5a58d26b90a8060046c3a86607d80bc5':
Add dynamic tab support to TabLayout
d1639084dff2180f39f75deaf9faec34ae6541fe 11-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Add dynamic tab support to TabLayout" into mnc-ub-dev
a48c9861216d92fc353507fad974de1e5dfcf762 09-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Fix crash in CTL on pre-v18 devices with no title" into mnc-ub-dev am: df83d90f2a
am: d8599b955d

* commit 'd8599b955de3cbb843b8a8080e35a577174164e0':
Fix crash in CTL on pre-v18 devices with no title
df83d90f2aed3e0b39193b5ea25014cea1d8c19e 09-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Fix crash in CTL on pre-v18 devices with no title" into mnc-ub-dev
ea0020c36daad1ea3f247ef07723927dead46939 06-Nov-2015 Chris Banes <chrisbanes@google.com> Fix doc build am: 2b1d1d93a9
am: c9fb40d6a4

* commit 'c9fb40d6a45f9aee03dcef1a4933ec2726d125b1':
Fix doc build
2b1d1d93a93070601d3894f523d6421c64544246 06-Nov-2015 Chris Banes <chrisbanes@google.com> Fix doc build

Change-Id: Id6826ffb3e0fd68d7bbe536dfde8868856fdd308
loatingActionButton.java
6fa3c92dcaf584ac56bff4c0b52b7b1ac379592e 06-Nov-2015 Chris Banes <chrisbanes@google.com> Fix crash in CTL on pre-v18 devices with no title

BUG: 25543889
Change-Id: Iae8e3e6a354273dd2628d63bdc96d147bd31ec98
ollapsingTextHelper.java
38cc44cffde90f6fe689b0df6b82f49481a981f7 03-Nov-2015 Chris Banes <chrisbanes@google.com> Add dynamic tab support to TabLayout

TabLayout will now automatically invalidate
and re-populate itself when the linked PagerAdapter
has it's data set changed.

Two objects Pools are used to minimize churn when the
adapter is updated.

A small change had to be made to ViewPager + PagerAdapter's
observing functionality. Observable will always dispatch
changed events in reverse added order, which means that
ViewPager is the last to know. This means that any later
added Observer can't update the ViewPager (since it
doesn't know about the data set change yet). This is fixed
by moving ViewPager's observer out of the Observable and
always calling it first.

BUG: 20908355

Change-Id: I631620ff186047ae57e928db78f5ca77a0b80306
abLayout.java
7d1cf521d4f62da85bc6abc59ec116b41f86ba53 06-Nov-2015 Chris Banes <chrisbanes@google.com> Add compat padding to FloatingActionButton ala CardView am: 6d7a9a0276
am: eb06ff6cee

* commit 'eb06ff6cee70f60989ef4aa8f41b72b5a47be62d':
Add compat padding to FloatingActionButton ala CardView
fe1cbed21122206b7a4af97790ade439d49421d8 02-Nov-2015 Chris Banes <chrisbanes@google.com> Workaround TextInputLayout state changes becoming permanent

Also moved the 'tinting' functionality to use color filter.
This seems to work much better on L+ because we're not
wiping out the internal tint, just overriding it with
the filter.

BUG: 25413545

Change-Id: I1d74a8ff817b0b20fcca6d3a1dd2ab2c60539cd1
rawableUtils.java
extInputLayout.java
6d7a9a02765e4cb497081e66dafb5d9fa76f4312 19-Oct-2015 Chris Banes <chrisbanes@google.com> Add compat padding to FloatingActionButton ala CardView

Defaults to disabled, but when enabled, FloatingActionButton
will have the same metrics on both Lollipop+, and older
platforms where the compat shadow is used.

BUG: 25274672

Change-Id: Ide28651124ab31472c588e7d65a32999ec674445
loatingActionButton.java
8c32bb6c5e95cb6bf4ccd98c7872ea7b87f805e3 06-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Add setHintEnabled to TextInputLayout" into mnc-ub-dev am: f6b1b744cf
am: 9e5374f5c6

* commit '9e5374f5c6f1761f0b52f5031d9ebdd89ebc53db':
Add setHintEnabled to TextInputLayout
f6b1b744cfa13f1df45fcda94dd104264d4d6dde 06-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Add setHintEnabled to TextInputLayout" into mnc-ub-dev
ec6958fca1fe6369b0694ef862e33e79eb04413c 04-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Add getter for FAB content background" into mnc-ub-dev am: e678582981
am: 5a5172a97f

* commit '5a5172a97f69fac40fd3c0fd224de6950c233c52':
Add getter for FAB content background
3d81c900316412b4130bf40e0dd8b0d3d3a93e78 04-Nov-2015 Chris Banes <chrisbanes@google.com> Add getter for FAB content background

BUG: 25450451
Change-Id: I513e5fe2f9e0fb7013f03f6d1f8edd957d5ab8dd
loatingActionButton.java
5829654ae299811962991dcafdd75bbbd37d0bb0 03-Nov-2015 Chris Banes <chrisbanes@google.com> Merge "Fix Tab indicator animation glitch" into mnc-ub-dev am: 00e31b4549
am: 691750cc2e

* commit '691750cc2e2d01d7612297f1d6dc94d5361646b1':
Fix Tab indicator animation glitch
380cfd776b247427779d26958249d5da85e6a59b 28-Oct-2015 Chris Banes <chrisbanes@google.com> Add setHintEnabled to TextInputLayout

BUG: 24800082

Change-Id: Idc8713a8e4516a8d93a08f151d9efbd083f29bc9
extInputLayout.java
3fbbd54cd1abc2a5471437949f907f2ecf99e946 02-Nov-2015 Chris Banes <chrisbanes@google.com> Fix Tab indicator animation glitch

Caused by a small timing issue where the ViewPager
is travelling over a large amount of items, therefore
the animation duration is longer then TabLayout's.

Fixed by tightening up TabLayout's handling of ViewPager's
states.

BUG: 25414410
Change-Id: I8192085ea33164983796b84f8c02c8a1e78f9690
abLayout.java
f09e04b6f9e764921375dd08ecf941f9d3319ad9 29-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Fix Tabs not filling correctly in FIXED mode" into mnc-ub-dev am: e532c5a043
am: fad462e034

* commit 'fad462e0348351ffa13413208cdc4dba0d7c8343':
Fix Tabs not filling correctly in FIXED mode
e532c5a043f4b5f3530e4427c300244adcf7e2fd 29-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Fix Tabs not filling correctly in FIXED mode" into mnc-ub-dev
4172f25e47c484612b50143da44878003db238d1 27-Oct-2015 Chris Banes <chrisbanes@google.com> Fix Tabs not filling correctly in FIXED mode

Caused by using the wrong measure spec mode.

BUG: 25296491
Change-Id: I0cc508feb159abe1659072f27d3b4f53565f68b9
abLayout.java
e4c7edb212d8c98924971e555ce5162e8947e8c2 27-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Add getContentRect() API to FloatingActionButton" into mnc-ub-dev am: c17e2d21b9
am: ec79e7b839

* commit 'ec79e7b83925b523e2b808acee21d49685562db3':
Add getContentRect() API to FloatingActionButton
d9cbe69a6661315238d856abc22578d03666f63b 26-Oct-2015 Chris Banes <chrisbanes@google.com> Add getContentRect() API to FloatingActionButton

BUG: 25250136
Change-Id: I6bb69346853e3b08140622b6f50c265295314051
loatingActionButton.java
85124975351edf106f8c9320af338ca14e28e192 27-Oct-2015 Chris Banes <chrisbanes@google.com> resolve merge conflicts of fcd014d478 to master.

Change-Id: I58e8f555a0fa0374b11705417f8f325eb1b245a4
66698bb15ba0f873aa1c2290cc50d6bb839a474a 26-Oct-2015 Chris Banes <chrisbanes@google.com> Flatten AppCompat class hierarchy

This allows us to do two things:

1) Move away from using public @hidden classes
everywhere.
2) Workaround silly OEM bugs.

BUG: 18218511

Change-Id: I7582e242c7564c32feeb044fc9eff6bfb5c56536
avigationView.java
abLayout.java
extInputLayout.java
ae8119e4d4d6afe1ec07819715f31c0a57a71e4a 26-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Fixes for TextInputLayout" into mnc-ub-dev am: 5db2eb25a6
am: 1111ad31e6

* commit '1111ad31e6cefffd8a14d7fa4724a14d47112a92':
Fixes for TextInputLayout
5db2eb25a6941b50f95bc4e90c626e969226473a 26-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Fixes for TextInputLayout" into mnc-ub-dev
4452ce91a49bbf820282a90601becfe61d64fcfb 21-Oct-2015 Chris Banes <chrisbanes@google.com> Fixes for TextInputLayout

- Ensure that the error is shown after a call to
setErrorEnabled(false)
- Make sure that the counter is on the right/end
- Make sure that the hint text color is updated
when the counter max is reached or error is shown
- Fix default counter text color + string

BUG: 25105208
BUG: 25134183

Change-Id: Ib51950f3df80de3a333e1d5acc87f0e58652a43e
extInputLayout.java
e93b67d84d6390d9ed1e718ec65f1d05f1a00c0a 23-Oct-2015 Yuichi Araki <yaraki@google.com> Merge "Add isCounterEnabled to TextInputLayout" into mnc-ub-dev am: f521aa09cc
am: cbcc10866a

* commit 'cbcc10866a22e70d6ea4f6b46fa1fb0bd1badd77':
Add isCounterEnabled to TextInputLayout
f521aa09cc474e823cfdb2113e723c33c5595ad0 23-Oct-2015 Yuichi Araki <yaraki@google.com> Merge "Add isCounterEnabled to TextInputLayout" into mnc-ub-dev
e56ec96cc2ef5e1c26f8cd49e6ffdc48ea20ce7c 22-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar + FloatingActionButton showing simultaneously" into mnc-ub-dev am: 2e659d2367
am: 437ddfb2fb

* commit '437ddfb2fb32992b157ebd4a88725d78a7a23654':
Fix Snackbar + FloatingActionButton showing simultaneously
2e659d2367fc800cad5075c380d13df65ff36254 22-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar + FloatingActionButton showing simultaneously" into mnc-ub-dev
e948c13b87d93495ffe88f2ac36a820bf1bcb256 22-Oct-2015 Yuichi Araki <yaraki@google.com> Add isCounterEnabled to TextInputLayout

Bug: 25173829
Change-Id: I9e7e358b0bf8220ab9cfe7d818c192a14db7e082
extInputLayout.java
cb1dff548d640cc7414fd41e9bf0c8302d5e001e 22-Oct-2015 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout.setCollapsedTitleGravity() am: cd7313d4cd
am: 75eb50cfbb

* commit '75eb50cfbbbc70f9ca9c860db7ae515c9c140cd5':
Fix CollapsingToolbarLayout.setCollapsedTitleGravity()
cd7313d4cdb81d0abaf9dc7aefc6ebadea899ab5 22-Oct-2015 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout.setCollapsedTitleGravity()

BUG: 25172783
Change-Id: Ib95050bc1647598bfd4961207bb2a5e30161c37f
ollapsingToolbarLayout.java
a419ee1ef9aef8b567f1ccd8c29d01ec7bff4cc9 21-Oct-2015 Chris Banes <chrisbanes@google.com> Fix Snackbar + FloatingActionButton showing simultaneously

Caused by both things triggering an ViewPropertyAnimator
on the FloatingActionButton. The CLs fixes it by
moving one of them to use a seperate ValueAnimator.

BUG: 25138785
Change-Id: Ia4e3f8f2e6d0d2da3e35cb82297220a6c71fabef
loatingActionButton.java
b4ae176110a0c68f26c6f250317f9ba746da1929 21-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Make sure we inflate custom Tab views correctly" into mnc-ub-dev am: 10fa4c8905
am: df3cff4899

* commit 'df3cff4899fd889650323685d1f75aee240333a4':
Make sure we inflate custom Tab views correctly
10fa4c890572823a050834deddf72a4363f7ca47 21-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Make sure we inflate custom Tab views correctly" into mnc-ub-dev
b8459a8c30dbaf3c8b82eb3b5d5eaed5526daded 20-Oct-2015 Chris Banes <chrisbanes@google.com> Make sure we inflate custom Tab views correctly

We were previously not inflating against the parent
view, resulting in the layout's LayoutParams being
dropped.

BUG: 25103360
Change-Id: Ieae0b254399ce26183ccce856030c4e9d301e7ed
abLayout.java
59524958be863e7405a23322ab15c7dee31410a9 21-Oct-2015 Yuichi Araki <yaraki@google.com> Merge "Add a way to get header views from NavigationView" into mnc-ub-dev am: 6abcfc67ea
am: f0c199c79e

* commit 'f0c199c79e699203e0b4d305bd43faea0b68934b':
Add a way to get header views from NavigationView
cdccc4c6d5f1e40610ce4df4afeb1f99cbdb63e8 21-Oct-2015 Yuichi Araki <yaraki@google.com> Add a way to get header views from NavigationView

Bug: 25129671
Change-Id: Ie7170fd038f8c7e01b1ef6dadef7dca11f03fe8e
avigationView.java
e873d37c6195448497fd3aaf1a88100f03866d0b 20-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Make AppBarLayout\'s snap behavior honor collapsing" into mnc-ub-dev am: f501c8462b
am: ecae0885a6

* commit 'ecae0885a6271fbfd06d88d413cf040e93559baa':
Make AppBarLayout's snap behavior honor collapsing
ca36356115db162e0cbf145c774fc9e22b24c53d 20-Oct-2015 Chris Banes <chrisbanes@google.com> Respect a FloatingActionButton\'s visibility when anchored am: fc780bab91
am: fc3aa3564a

* commit 'fc3aa3564a14be1e730840d9efaa284d50881f8a':
Respect a FloatingActionButton's visibility when anchored
905a69d74072bec5916afb51f1571288188bad3a 20-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar dismisal generating two callbacks" into mnc-ub-dev am: f39b7e593c
am: 28c10e8f9b

* commit '28c10e8f9b80424f148dd43e2ebea4182f780300':
Fix Snackbar dismisal generating two callbacks
861378f014dd8701d01703ab734f4716ece6bd86 20-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Don\'t let a View anchor itself to it\'s parent CoordinatorLayout" into mnc-ub-dev am: ebf2d44b5e
am: fad122aa2b

* commit 'fad122aa2bff2bea654369a12523a2b1119b0349':
Don't let a View anchor itself to it's parent CoordinatorLayout
9a46d7ba426a465715b09e87fdd2f315b2822537 20-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Fix invisible FloatingActionButton pre-ICS" into mnc-ub-dev am: df852a68b1
am: 6ba8595153

* commit '6ba859515380ab25df28c08870351afb5e26cbcc':
Fix invisible FloatingActionButton pre-ICS
f501c8462bd4d5c16e677c8c88b7e7da147bd766 20-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Make AppBarLayout's snap behavior honor collapsing" into mnc-ub-dev
dcde7bf0c79a12f30d3853a82f4fbf54ce5161c8 19-Oct-2015 Chris Banes <chrisbanes@google.com> Make AppBarLayout's snap behavior honor collapsing

Also made the animate use a speed-based duration
for the animation.

BUG: 25070159
Change-Id: Ib0d83cddf596f8a8974feba71dd96b52bec92238
ppBarLayout.java
fc780bab91bd4275ae2c3b75c3dfb327e008e4db 15-Oct-2015 Chris Banes <chrisbanes@google.com> Respect a FloatingActionButton's visibility when anchored

Currently when a FAB is anchored to an AppBarLayout, it
controls the FAB's visibility (for the automatic seam
functionality). This meant that any user defined visibility
was ignored since we had no way of distinguishing what was
user defined or not.

This CL fixes that by recording what the user defined visibility
is, and only updates the FAB's visibility from the ABL if the user
has set it to be visible.

BUG: 24973851

Change-Id: Iee9e95a6eac551934844fbfdbd9ca8fe68bcb28b
loatingActionButton.java
f39b7e593c40d54e4d8e7688ee315467157d086b 20-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar dismisal generating two callbacks" into mnc-ub-dev
ebf2d44b5ef136271b6e17d91df7f8ac36a8f453 20-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Don't let a View anchor itself to it's parent CoordinatorLayout" into mnc-ub-dev
eeea73a484fe384e6a8059e45db369cea7c247f6 19-Oct-2015 Chris Banes <chrisbanes@google.com> Fix Snackbar dismisal generating two callbacks

Caused by a call ordering issue when the
SnackbarLayout is removed from it's parent.

BUG: 25072545
Change-Id: I0c264f570e8a010574aa0fe7690bd58c51967f5e
nackbar.java
375995f4dc8aecb335bb262190d2cd39fdb136d6 19-Oct-2015 Chris Banes <chrisbanes@google.com> Don't let a View anchor itself to it's parent CoordinatorLayout

CoordinatorLayout isn't design to handle it, and
there's no point in doing it anyway (since any
children are already in the CoL's view coordinates.

Change-Id: I5cb682b47f7b0bc3c08b92f0de86459cac357998
oordinatorLayout.java
893cdffb7a013529dd9fde8dcb74b8df1d1fe9f6 19-Oct-2015 Chris Banes <chrisbanes@google.com> am 5a3a72a9: am 9ec922c2: Fix FAB using ICS APIs on Honeycomb

* commit '5a3a72a99b5d87b3f4d4530ca8d2b0d108eee719':
Fix FAB using ICS APIs on Honeycomb
c0d908fa15305aa1efe58738c74d54933772186c 19-Oct-2015 Chris Banes <chrisbanes@google.com> resolved conflicts for d687245e to master

Change-Id: I245e42a399585bd1788db6ba09486ef1c1a6b691
9d6eb9beafef317f0f1bc5596ab47114c161f41a 19-Oct-2015 Chris Banes <chrisbanes@google.com> am e274607c: am cae51694: Merge "Ensure that SwipeDismissBehavior affects the correct view" into mnc-ub-dev

* commit 'e274607cdee3deb8f2f15a6bbdaf6051dd6fa6bc':
Ensure that SwipeDismissBehavior affects the correct view
097e80a3c5518c6bf2e9f3f9b55ed9f4b5cc37e8 16-Oct-2015 Chris Banes <chrisbanes@google.com> Fix invisible FloatingActionButton pre-ICS

The mutate workaround doesn't work all of the time.
This CL fixes it by always creating our own
GradientDrawable for the background

BUG: 23373046

Change-Id: I4b478a23b89d6721ebead62c5bb67505a5737611
loatingActionButton.java
9ec922c215ed95a4bbd8bd7940e81dcfe6926893 19-Oct-2015 Chris Banes <chrisbanes@google.com> Fix FAB using ICS APIs on Honeycomb

Change-Id: I185c1a44bba205834345a8aa32158ece7855f223
loatingActionButton.java
2ca24fee9fd3cdba544eb5d55b2b0e37377034fa 19-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Add accessor methods for Toolbar title margins"
d9d77f45d593a7056d7e29ca39a6ed6ece6d491f 19-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Add getters/setters for CollapsingToolbarLayout title margins" into mnc-ub-dev
cae51694390de12207c0b3104c524cbbbd387052 19-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Ensure that SwipeDismissBehavior affects the correct view" into mnc-ub-dev
f5fbe0a00d33b2fd1239b00fa4e690b9b4884c44 16-Oct-2015 Chris Banes <chrisbanes@google.com> am d86d82fc: am dce72ecc: Merge "Add @attr links to TextInputLayout" into mnc-ub-dev

* commit 'd86d82fc05cbb3ade2fa77e2640fe2c64ef5cb61':
Add @attr links to TextInputLayout
76fc679eb0d8f1d92ade726550f59a7781de42a0 16-Oct-2015 Yuichi Araki <yaraki@google.com> am 121c9e90: am 4e9e5d59: Merge "Initial implementation of BottomSheet" into mnc-ub-dev

* commit '121c9e90d5c41a74341a77d18c94f810b73e43f7':
Initial implementation of BottomSheet
dce72eccfb3fa3a7c5282095ef236249bdf30349 16-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Add @attr links to TextInputLayout" into mnc-ub-dev
17b65202f5e30392c5a525f62347b56027157620 16-Oct-2015 Chris Banes <chrisbanes@google.com> Add @attr links to TextInputLayout

Change-Id: I64ec96261c7aafd14e417caf37fecb164e6ffb4c
extInputLayout.java
4e9e5d597581356dea913eda1e2e26e4728f7e41 16-Oct-2015 Yuichi Araki <yaraki@google.com> Merge "Initial implementation of BottomSheet" into mnc-ub-dev
b1d11409409e0d166360397adfd1e765bef49591 15-Oct-2015 Chris Banes <chrisbanes@google.com> Add accessor methods for Toolbar title margins

Also adds missing attrs to public.xml so they can be
documented.

We can now use those margins in CollapsingToolbarLayout
to make it's title have similar positioning to Toolbar's
title.

BUG: 23720183

Change-Id: I09eeef65141d4af77c8813e8fac5f89bead47597
ollapsingToolbarLayout.java
34550bb9e60e8935f2007ffea069c5bacd971e36 15-Oct-2015 Chris Banes <chrisbanes@google.com> Add getters/setters for CollapsingToolbarLayout title margins

Change-Id: I9b97757066d4f7cfb34f443648fb8e965caa3bb6
ollapsingToolbarLayout.java
b69b2623e94d82f3073379e3e4d5cd2968b68970 15-Oct-2015 Chris Banes <chrisbanes@google.com> am f1f9e992: am 08ce6ecd: Merge "Add AppCompatDrawableManager" into mnc-ub-dev

* commit 'f1f9e992e3d6c330d12b6b1afa13e87f8b5728d5':
Add AppCompatDrawableManager
eda4412df4b985c54913b1ba9dff1ce4d4883cf5 15-Oct-2015 Chris Banes <chrisbanes@google.com> am c6fccd68: am e667a567: Merge "Use the correct interpolators in the design lib" into mnc-ub-dev

* commit 'c6fccd6842d28bdedea425ab1e0c947e2e1a41bc':
Use the correct interpolators in the design lib
fc9ffcbb6b9ca19ef90877ddbf01b132e24e058a 15-Oct-2015 Chris Banes <chrisbanes@google.com> am f2aa1f53: am 1cd777d1: Merge "Add support for rotating a FAB pre-L" into mnc-ub-dev

* commit 'f2aa1f53175844f08308f982897a561cfacb2abc':
Add support for rotating a FAB pre-L
02751b16719af2e3f8212f93c001da1b0566b1b5 15-Oct-2015 Chris Banes <chrisbanes@google.com> Ensure that SwipeDismissBehavior affects the correct view

Can cause weirdness if there are views in the same location
as the Snackbar when it's being dragged. We now have a
callback in SwipeDismissBehavior to allow behaviors
to control which views can be dragged.

BUG: 24956960
BUG: 23756487
Change-Id: Idf82de127597eba3a543f99ffc2a088fbc9d3af0
nackbar.java
wipeDismissBehavior.java
08ce6ecd43989a53e5378b2744cb3c579759457c 15-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Add AppCompatDrawableManager" into mnc-ub-dev
e667a56703ca0c7cdf1b9890435cace86f224ed7 15-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Use the correct interpolators in the design lib" into mnc-ub-dev
1cd777d1e3effedb5f06296ea42dfce59b52d1d9 15-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Add support for rotating a FAB pre-L" into mnc-ub-dev
7e4e8b664820f773bc96e37ee1d2bbf500d64e69 12-Oct-2015 Chris Banes <chrisbanes@google.com> Add AppCompatDrawableManager

Refactored from TintManager, AppCompatDrawableManager
is now architectured differently. It is now a singleton
which keeps multi-map of cached tints.

This is to enable the new InflateDelegate extension point,
which will allows libraries (and eventually apps) to hook
into the compat drawable inflation.

While this CL looks large, it's mostly just updating method
calls to match the new parameters.

BUG: 24852773

Change-Id: Ic9f5ecc6fd0208d2f7a8a686f077f16588020516
abLayout.java
extInputLayout.java
359567c110b35d51ed8ecaa4b2b163a5452ef43b 12-Oct-2015 Chris Flatt <cflatt@google.com> am 92fc6f44: am 457e4792: Merge "Doc fixes" into mnc-ub-dev

* commit '92fc6f44df37510b65b2fe5d84d11cdbd7a5af04':
Doc fixes
8c05e5f52fbc790b745e768398d9e69d6b9d9ee1 12-Oct-2015 Chris Banes <chrisbanes@google.com> Doc fixes

BUG: 24807678
BUG: 24808206
BUG: 24807678
Change-Id: Id963e857072961f6360bb828cc304e67db360227
loatingActionButton.java
3a30d0eaba58dd961cf2ae9be3a7d0b9754a031e 09-Oct-2015 Chris Banes <chrisbanes@google.com> Use the correct interpolators in the design lib

We're using 'fast out, slow in' for most things, whereas
we should be using the linear variants for things which
are showing/hiding.

BUG: 24796452

Change-Id: I8fa7a69d7eb1f3fcf3db6f495ab4f3173fa48aa7
ollapsingToolbarLayout.java
extInputLayout.java
3f787b7f9a4d67e423445fbcbbf983a5042737a4 08-Oct-2015 Chris Banes <chrisbanes@google.com> am 0fcf19cd: am 7021cb02: Merge "Allow CoordinatorLayout to handle root level pkg" into mnc-ub-dev

* commit '0fcf19cdbaabb79ed13568f3267cc6d827f94805':
Allow CoordinatorLayout to handle root level pkg
25ef4026b72ff670ee07c81897124732d3f5f443 07-Oct-2015 Chris Banes <chrisbanes@google.com> Allow CoordinatorLayout to handle root level pkg

Currently CoordinatorLayout assumes that it will have a
parent package. This might not happen though with
Proguard involved. This CL makes CoL more defensive
over the package name.

BUG: 24701447

Change-Id: I391466b2e3b8f6d3d332a76dde6125b1eddd4156
oordinatorLayout.java
452f94d1c58e2a7476019b98c3bf0e4b322d1525 15-Sep-2015 Yuichi Araki <yaraki@google.com> Initial implementation of BottomSheet

This adds persistent bottom sheets as a CoordinatorLayout.Behavior.

Bug: 23989269
Change-Id: Iaff739523ba68ee2b9d8214264a6118e0f8c1ad1
ottomSheetBehavior.java
447767d261382dce84853b67a02c5e13e3d0eda2 06-Oct-2015 Chris Banes <chrisbanes@google.com> am cf5c5110: am 93219e8b: Merge "Ensure that CoL\'s sorted children is invalidated" into mnc-ub-dev

* commit 'cf5c511054fec2ae00f1b7803bbfb9d023bdee90':
Ensure that CoL's sorted children is invalidated
93219e8b82c64dc73be81b564a13611958b56527 06-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Ensure that CoL's sorted children is invalidated" into mnc-ub-dev
2d8e160f6ded2cd22ae7353a11689a1628c6cb5e 06-Oct-2015 Chris Banes <chrisbanes@google.com> am 482d1544: am 7b2f754b: Merge "Disable NavigationView nested header scrolling" into mnc-ub-dev

* commit '482d154489e8760ed9b1472dd7062c1925f32816':
Disable NavigationView nested header scrolling
7b2f754bf2c5dd129faf8cee740aa5a0b2211fde 06-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Disable NavigationView nested header scrolling" into mnc-ub-dev
7c89489dcb1e7cc454da4375c387caf20201acb7 06-Oct-2015 Chris Banes <chrisbanes@google.com> Disable NavigationView nested header scrolling

We'll bring it back in a later release.
Partially reverts Ic72c86f165e26c493b965dedf4c65f2853409144

BUG: 24692916
Change-Id: I4e85d7067c36e170d47afc0f54d33d55835fbadc
avigationHeaderBehavior.java
avigationView.java
b08f57a0066fb49514bd2a42b23beeb58465b1b8 05-Oct-2015 Chris Banes <chrisbanes@google.com> am 8a877bc0: am 463b8e4c: Merge "Use ParcelableCompat for CREATOR creation" into mnc-ub-dev

* commit '8a877bc08254d1f76868c6c44cbe7d707aceadfa':
Use ParcelableCompat for CREATOR creation
798b47e2eb8b6697b9009568a948f86fe86f6582 05-Oct-2015 Chris Banes <chrisbanes@google.com> am 8905c69f: am e317b30a: Merge "Fix TabLayout crashing due to using getMaxLines()" into mnc-ub-dev

* commit '8905c69f64b6402616f5bf8f0b3c3dc9d27bd640':
Fix TabLayout crashing due to using getMaxLines()
463b8e4c805cd93c82347d5f7951365e52c02d42 05-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Use ParcelableCompat for CREATOR creation" into mnc-ub-dev
092bd179f5a24c29a63717ce69c6d4065e33abe6 05-Oct-2015 Chris Banes <chrisbanes@google.com> Fix TabLayout crashing due to using getMaxLines()

Added a compatible shim to TextViewCompat

BUG: 24663522
Change-Id: I6ba367338a6c42ecad175c5ebe0163c3dc5a9cd2
abLayout.java
62ab25d71ccfa775a8bd2add7b41277bc4e14bbc 05-Oct-2015 Chris Banes <chrisbanes@google.com> Use ParcelableCompat for CREATOR creation

Should fix BadParcelableException issues due to
using the wrong available class loader.

BUG: 24253575
Change-Id: Ia259559f15500203eff99c6eb6928339bd940278
ppBarLayout.java
oordinatorLayout.java
avigationView.java
d9770e12c8ff2d4417700492c6616572be897e93 29-Sep-2015 Chris Banes <chrisbanes@google.com> Add support for rotating a FAB pre-L

As the shadow is baked into the view pre-L, the shadow
is also rotated when the view is rotated. This CLs
fixes that by offsetting any view property rotation
in both the shadow and border drawables.

BUG: 24464887

Change-Id: I8c39fbe90a2251a5a79b3f31328d47e55f74f931
loatingActionButton.java
347536e8c751179028aa926e48e3e55d038fd37d 25-Sep-2015 Chris Banes <chrisbanes@google.com> am 7e8afaf9: am e25a0992: Merge "Accessibility improvements for design lib" into mnc-ub-dev

* commit '7e8afaf9471d2ae988ae82b0d4093a4f82abf4ea':
Accessibility improvements for design lib
e25a099295aa6fe93a2744ba99c5f6edb1b5898f 25-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Accessibility improvements for design lib" into mnc-ub-dev
3224093af46bac6f2fd5b372d5fbd56429b811c1 23-Sep-2015 Chris Banes <chrisbanes@google.com> Accessibility improvements for design lib

Set live regions on Snackbar, TextInputLayout's error
and counter views.

BUG: 22988138
Change-Id: Iaf4ddd80b70b2467ee024562ba0dbf9a6ca9a5c0
nackbar.java
extInputLayout.java
f6cb6956bc3f8af302d222a6534c906f7c67efde 24-Sep-2015 Chris Banes <chrisbanes@google.com> am c25d71b7: am 756b701d: Merge "Fix CollapsingToolbarLayout when used with SearchView" into mnc-ub-dev

* commit 'c25d71b7961bb54676a9989b77d9ac4834d5698c':
Fix CollapsingToolbarLayout when used with SearchView
756b701d234fdc391857a82221647e40e81dbcb8 24-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Fix CollapsingToolbarLayout when used with SearchView" into mnc-ub-dev
82ae76be36072fc55cd96764cf1c5fc8e61acfdf 24-Sep-2015 Chris Banes <chrisbanes@google.com> am 009ff4b8: am 6f800ea6: Merge "FloatingActionButton fixes" into mnc-ub-dev

* commit '009ff4b8c04a1fbec9617e9499983ea9d4c4a468':
FloatingActionButton fixes
19551f09a5ebc02a0a4ce16984ec9e8023954bc1 24-Sep-2015 Chris Banes <chrisbanes@google.com> am d2fe3395: am 3480b31f: Merge "Fix Snackbar#show() not working after rotation" into mnc-ub-dev

* commit 'd2fe3395d5e2dc86f394ae244ff2566a8629e91c':
Fix Snackbar#show() not working after rotation
6f800ea6be4954897981c6c5e45579bba524573e 24-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "FloatingActionButton fixes" into mnc-ub-dev
3480b31f3e597e0b5918379bb2703a7ccb786688 24-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Fix Snackbar#show() not working after rotation" into mnc-ub-dev
766ba6e073b1a118c8ab5e8ed3ed4c8756866b2c 24-Sep-2015 Mark Wei <markwei@google.com> am e3adcee0: am 26b8f02d: Merge "Add a listener to FloatingActionButton show() and hide()." into mnc-ub-dev

* commit 'e3adcee09778da7b24941994a34731db4f998ebc':
Add a listener to FloatingActionButton show() and hide().
26b8f02dce30c6d1cc27b87c6efb971c33e67671 24-Sep-2015 Mark Wei <markwei@google.com> Merge "Add a listener to FloatingActionButton show() and hide()." into mnc-ub-dev
0ad7ef59b28d8ffafd551d2756b5a8ec47c90682 18-Sep-2015 Mark Wei <markwei@google.com> Add a listener to FloatingActionButton show() and hide().

Bug: 24053775
Change-Id: I36495bd56c48afc3249d3e09761c823a9b6c377a
loatingActionButton.java
c06ea511ab9d97ed62ec10f10262f1c34b1905f0 23-Sep-2015 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout when used with SearchView

CTL currently relies on the dummy views bounds
being 0-width to signify invisibility. This is
a bit crude so we now use isShown() as well.

BUG: 22165213
Change-Id: I59ef7273b56a7820cdd21ad5f39961b56fd8100a
ollapsingToolbarLayout.java
38bce2dcd0812fa91b32ae30402659916c770315 23-Sep-2015 Chris Banes <chrisbanes@google.com> am 16a39d79: am 956db7bf: Merge "Fix AppBarLayout not being scrollable with fitSystemWindows=true" into mnc-ub-dev

* commit '16a39d7925d322562e1e5651dbe938697d2d38ad':
Fix AppBarLayout not being scrollable with fitSystemWindows=true
4c33be829067714342b629d29329206bc2116afe 22-Sep-2015 Chris Banes <chrisbanes@google.com> Fix AppBarLayout not being scrollable with fitSystemWindows=true

Caused by us taking the inset into account twice.

BUG: 24190984
Change-Id: If94be90e962ec3756aeda6e55bbbf408fe4cee4e
ppBarLayout.java
5462d3e588481416a38e893bdb0f1073f82f8dcc 21-Sep-2015 Chris Banes <chrisbanes@google.com> Fix Snackbar#show() not working after rotation

Caused by us not handling the window detach
event, and thus not updating our state to reflect
the fact.

BUG: 24256478
Change-Id: Ie0065dedd27fefd202cc1f6bcf8016809bf32eae
nackbar.java
nackbarManager.java
8248a6287c4ff9fa71ff6760bb6fe0906f0d6607 21-Sep-2015 Chris Banes <chrisbanes@google.com> Ensure that CoL's sorted children is invalidated

Currently CoL only checks to see if the child count
has changed before re-sorting everything. This is a
bit crude as the children could change without the
count actually changing.

Fixed by invalidating the list on measure.

Also update dispatchDependentViewRemoved() to make
use of the dependency sorting.

BUG: 24252752

Change-Id: I92fd3a0587b7d24de0abcded37577cf70130d16c
oordinatorLayout.java
18d22257ccfb5cebb3ccd2450736e735ed1fb9bb 21-Sep-2015 Chris Banes <chrisbanes@google.com> FloatingActionButton fixes

- Remove default clickable state
- Fix FAB jumping around when used with
a Snackbar

BUG: 24252795
BUG: 24254664

Change-Id: I8946b2674e5a4147f9fd8b6d4a40fcc5bc0c32ac
loatingActionButton.java
f809884583faa6cd507aff0a840b8c1a19a8269e 21-Sep-2015 Chris Banes <chrisbanes@google.com> am 3aa2ecf1: am 540c985f: Merge "Improve header dragging" into mnc-ub-dev

* commit '3aa2ecf15a66d4e7437af789e28f997f8bb19952':
Improve header dragging
540c985fa442b9c0e95f0c676e182689d6f78033 21-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Improve header dragging" into mnc-ub-dev
72a0913607198c5ce3fa351242ccbdfb3b93f178 18-Sep-2015 Chris Banes <chrisbanes@google.com> Improve header dragging

- Moved re-usable code from ABL to the new
base class.
- Added fling support to header dragging.
- Fixed NavigationView not scrolling
- Hid a few new methods which shouldn't
be public.

Change-Id: Ia7335c385951a66d27316dbf675bb8860f549cc4
ppBarLayout.java
eaderBehavior.java
eaderScrollingViewBehavior.java
avigationHeaderBehavior.java
ddf40daab7b05e9fa33b392f2895d27988fa3aa5 18-Sep-2015 Chris Banes <chrisbanes@google.com> am 5f673f21: am 85c31b12: Merge "Fix ABL overlapTop behavior" into mnc-ub-dev

* commit '5f673f21f33e80b2d4fe99f6c62bc6e771728f90':
Fix ABL overlapTop behavior
85c31b129c41f327d365b9f35837acee7f3c958c 18-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Fix ABL overlapTop behavior" into mnc-ub-dev
dfb857dd12b359c0bdae11a23e039f286d54dc0a 18-Sep-2015 Chris Banes <chrisbanes@google.com> Fix ABL overlapTop behavior

Change-Id: I447bbc14c8d72a149abc0af2de2293573bff138a
ppBarLayout.java
e556b1b18ca90f61b653277fe3e043f27a9830cd 18-Sep-2015 Chris Banes <chrisbanes@google.com> am e152520f: am ef80bd54: Merge "Fix dependency sorting in CoordinatorLayout" into mnc-ub-dev

* commit 'e152520f897e91ec95e3ca558fbd78c5139879b8':
Fix dependency sorting in CoordinatorLayout
ef80bd541a321fe21e95fd1e79f0e43b8ce9772e 18-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Fix dependency sorting in CoordinatorLayout" into mnc-ub-dev
b87b1e3da69e8956fe89907ccdb7988aa2eb726e 17-Sep-2015 Mady Mellor <madym@google.com> am 01bb1c8e: am 0eb4e73f: Merge "Update NavigationView to use CoordinatorLayout for header and list." into mnc-ub-dev

* commit '01bb1c8e4dd23ab3140f2f9f34d74947a3193f34':
Update NavigationView to use CoordinatorLayout for header and list.
0eb4e73f0dbc959094353ec01dbdf480a569c001 17-Sep-2015 Mady Mellor <madym@google.com> Merge "Update NavigationView to use CoordinatorLayout for header and list." into mnc-ub-dev
cea5e20817a848367e82e69b00d091c8405c99fc 16-Sep-2015 Chris Banes <chrisbanes@google.com> Fix dependency sorting in CoordinatorLayout

For our purposes we need every view to be compared against
each other when sorting. Collections.sort() is stable and
efficient, and thus doesn't guarantee that, therefore we now
need to use a selection sort which does guarantee that.

It is less efficient, but it is much better than removing
all of the sorting and doing a O(N^2) loop in every draw.

BUG: 24126029
Change-Id: Ida34244d62b9c7519b4cded3ab23bef95a01f1f0
oordinatorLayout.java
7ec045c02aa8ae4e2a399f72ec90c198a4aed454 16-Sep-2015 Chris Banes <chrisbanes@google.com> am 60ceaa80: am 37430e83: Fix call ordering issue in CollapsingTextHelper

* commit '60ceaa802d3092eaced80eca1ce7abb75da939a0':
Fix call ordering issue in CollapsingTextHelper
a5cfd5c5874eff0a7731b7b2de2667e0e56a7bb7 16-Sep-2015 Chris Banes <chrisbanes@google.com> am 18038a12: am 60319b11: Merge "Take the window insets into account when ABL is dragged" into mnc-ub-dev

* commit '18038a12a4cd277975f88ead7524e6015fe50125':
Take the window insets into account when ABL is dragged
1ff4d4f7470a44dff84f6848d3e2678a7919f594 16-Sep-2015 Chris Banes <chrisbanes@google.com> am f2093cd5: am 99e52876: Merge "Improve typeface support in the collapsing text widgets" into mnc-ub-dev

* commit 'f2093cd5774b9cda59ff146c85cbeb792db65945':
Improve typeface support in the collapsing text widgets
37430e835e22a791b83b01befab44ead852bf555 15-Sep-2015 Chris Banes <chrisbanes@google.com> Fix call ordering issue in CollapsingTextHelper

Results in centering of text not working if setText()
is called before a layout.

BUG: 24084103
Change-Id: I4eed2ddebba19e6daf10ba8b7585fd70fef87b12
ollapsingTextHelper.java
60319b11a12f9b4b9c88ba4cb75d4029f172f745 16-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Take the window insets into account when ABL is dragged" into mnc-ub-dev
99e528768ea424baf87cc29ac138d693afab3961 16-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Improve typeface support in the collapsing text widgets" into mnc-ub-dev
7a91a5d0a7de9fc24d0ca45dfdad96761a2f0200 16-Sep-2015 Yuichi Araki <yaraki@google.com> am c14d808e: am 0e245015: Merge "Add support for character counter" into mnc-ub-dev

* commit 'c14d808e6c599ea34990583359ef1d4c4c1640b0':
Add support for character counter
ec161ac1da9c8ca0e942b01e037ceb1cc51a2f3c 15-Sep-2015 Mady Mellor <madym@google.com> Update NavigationView to use CoordinatorLayout for header and list.

This CL modifies how the header is handled in NavigationView. Namely, it
separates the header from the ListView. To scroll the header and list
together, both the header and list are placed in a CoordinatorLayout with
behaviors that allow them to scroll together.

This work will allow an overlay to be added that scrolls with the list
so that we can properly animate the account switcher. The overlay and
account switcher work will be done in a separate CL.

Bug: 20117594
Change-Id: Ic72c86f165e26c493b965dedf4c65f2853409144
ppBarLayout.java
eaderBehavior.java
eaderScrollingViewBehavior.java
avigationHeaderBehavior.java
avigationView.java
249ad6faac840b73bb55d47cdbecccdee2c8dd61 14-Sep-2015 Yuichi Araki <yaraki@google.com> Add support for character counter

TextInputLayout shows the character counter when app:counterEnabled is
set to true. It also shows error when the input is longer than the value
specified with app:counterMaxLength.

Bug: 23987575
Change-Id: Iffdd73f049c58c04d0a6d91668b63a259d5a04ba
extInputLayout.java
32fcaa22feb910dd83e9b615b785991fddf52a61 15-Sep-2015 Chris Banes <chrisbanes@google.com> am b46ee6be: am 1eb1857f: Merge "Stop calling onTabReselected on tab clicks" into mnc-ub-dev

* commit 'b46ee6be221341cdc376e978c876d68396683a83':
Stop calling onTabReselected on tab clicks
5966da4bb6264b54047f426334da33c212ca2e73 15-Sep-2015 Chris Banes <chrisbanes@google.com> am e29b33f2: am eb3f54ef: Merge "Fix TabLayout\'s flickering for good" into mnc-ub-dev

* commit 'e29b33f2c09dce897bafa81b889247f743dd50a8':
Fix TabLayout's flickering for good
1eb1857ff5ccb41f61e71c23a2f2ba91188b268f 15-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Stop calling onTabReselected on tab clicks" into mnc-ub-dev
eb3f54efb5539004de00f4e8d9bcb760a40821b1 15-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Fix TabLayout's flickering for good" into mnc-ub-dev
289c3d98a7dc9525dbb47b1432f11d4f84cb7fd6 14-Sep-2015 Chris Banes <chrisbanes@google.com> Stop calling onTabReselected on tab clicks

When a Tab is clicked then TabLayout will automatically
call onTabUnselected/selected. It then calls setCurrentItem()
on the VP, meaning that onTabReselected is dispatched.

BUG: 24047129
Change-Id: Ie4f713498f3f12c760244e3c7c5dc3c1a43f8831
abLayout.java
d29e79fa09f428c510d1d9ca758dbda35a323f71 08-Sep-2015 Chris Banes <chrisbanes@google.com> Improve typeface support in the collapsing text widgets

We now handle the collapsed and expanded typefaces
seperately and use them in the appropriate places.
The switch between them is pretty jarring but there's
not much we can do about that, plus most of them time you
should be using the same typeface for both.

BUG: 23882300
Change-Id: If4efee87169472d61bdee98dbada0c120d8830bf
ollapsingTextHelper.java
ollapsingToolbarLayout.java
extInputLayout.java
ab7326eb4c724c7ab61cb71f890a5fe6a1d18fc6 10-Sep-2015 Chris Banes <chrisbanes@google.com> am b27dc24f: am ec2310cd: Merge "Add ability to snap AppBarLayout children to edges" into mnc-ub-dev

* commit 'b27dc24f1e66228c02e96ce9014f6b1ef7e024c8':
Add ability to snap AppBarLayout children to edges
854d6b89f46fb2877c009eaa80394b8c8079f7ee 07-Sep-2015 Chris Banes <chrisbanes@google.com> Fix TabLayout's flickering for good

The problem is due us not handling ViewPager's
page change listeners correctly. onPageSelected() can
be called while the ViewPager is still mostly in the
previous page. This means that the next onPageScrolled()
int will not match the selected page.

The fix is to skip updating the selected text, like we already
do with the indicator.

BUG: 22709728
Change-Id: Ic17a136b3352ae5c620f4295f852d5f9e5a53f92
abLayout.java
ec2310cd2b3bce8ecd9fd03ea3e537f2ee70a76a 10-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Add ability to snap AppBarLayout children to edges" into mnc-ub-dev
bc22c4fd37e99643b3e7b87e2849a9e63fb8c5fc 26-May-2015 Chris Banes <chrisbanes@google.com> Add ability to snap AppBarLayout children to edges

BUG: 23792717

Change-Id: Ic373fb30c1c3b97f2e1c845c496e97e766f078ec
ppBarLayout.java
4832063daa6620f0ad51c4a16f31502dab1adc89 10-Sep-2015 Chris Banes <chrisbanes@google.com> Take the window insets into account when ABL is dragged

BUG: 23946168
Change-Id: I561d3e9f378c536589fe8847b8f98bbf252f28cf
ppBarLayout.java
b3140f0b62e15e7d4f548e9efe1538907d0a1194 07-Sep-2015 Chris Banes <chrisbanes@google.com> am 83e60f1b: am bca00ffa: Merge "Make sure that we reset the EditText backgroud tint" into mnc-ub-dev

* commit '83e60f1bbb345b753d49613687ef4bb3976dcd84':
Make sure that we reset the EditText backgroud tint
96cb4d8853e79310aa9a52b8baab8f54873ce428 01-Sep-2015 Chris Banes <chrisbanes@google.com> Make sure that we reset the EditText backgroud tint

When setErrorEnabled(false) is called, the EditText
could continue to be displayed as red. This CL makes
sure that we don't.

BUG: 23707952
Change-Id: I5c2b4b2be22229f9be04eb28922f4b09a07209bb
extInputLayout.java
4366f8a0eecbf1e90ea06d94e7c09b57ea1c1f6c 25-Aug-2015 Chris Banes <chrisbanes@google.com> am 196d47bb: am f13ba46d: Merge "Make TextInputLayout\'s error handling spec compliant" into mnc-ub-dev

* commit '196d47bb101ff476c3f8fd565152bfa80408b0a3':
Make TextInputLayout's error handling spec compliant
f85bf1e127ea645ca45637288ccfbab11ef2b415 25-Aug-2015 Chris Banes <chrisbanes@google.com> Make TextInputLayout's error handling spec compliant

BUG: 23494861
Change-Id: I6b867d375e41c25e44923f2db5057842715e3f8e
extInputLayout.java
727586a74e42e17b1ba42c1d7f4396cec0bc0b2f 25-Aug-2015 Mady Mellor <madym@google.com> am 457d9ac3: am 572c4d80: Merge "Fix java doc for get/set AnchorId in CoordinatorLayout" into mnc-ub-dev

* commit '457d9ac3022c181a4d3716842159da92d308ffea':
Fix java doc for get/set AnchorId in CoordinatorLayout
572c4d8028acae90aa9f416c2f8766a641c3a1be 24-Aug-2015 Mady Mellor <madym@google.com> Merge "Fix java doc for get/set AnchorId in CoordinatorLayout" into mnc-ub-dev
1cef72d8a38bf9f897ddb39d6a100f9ee46a76f8 22-Aug-2015 Chris Banes <chrisbanes@google.com> am d36e64d8: am b1865607: Merge "Fix ABL + CTL not handling being initially collapsed well" into mnc-ub-dev

* commit 'd36e64d81d2940ddb7f2e2c447622455d5b4eca6':
Fix ABL + CTL not handling being initially collapsed well
b18656075d322c4adaf19f1b6e7626117d597c91 22-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Fix ABL + CTL not handling being initially collapsed well" into mnc-ub-dev
c344398708c615b0caba76d287e9ec503afa6819 20-Aug-2015 Mady Mellor <madym@google.com> Fix java doc for get/set AnchorId in CoordinatorLayout

Change-Id: I93cdffa696e2936548e7e34a85ba817c4fe6b68a
oordinatorLayout.java
79aa418487cdefb85d3c1fac32d6403a1ac6057d 21-Aug-2015 Chris Banes <chrisbanes@google.com> Fix ABL + CTL not handling being initially collapsed well

Two issues here. The first being that ABL only updates it's
min height after a layout, which means it's minHeight is wrong
in the preceding onMeasure(). Fixed by invalidating the scroll
ranges in onLayout, and updating it's minHeight in onMeasure.

Second issue is that CTL's text helper needs it's bounds in
the initial coordinate space, not after the views have been
offset.

Also fixed a possible pending state issue.

BUG: 23408061
Change-Id: Ie15c2e353da1596ca045405a6cf6f9cd2209a32e
ppBarLayout.java
ollapsingToolbarLayout.java
91585cbeb6fe1163e4b3f5f6e623124173f5371b 21-Aug-2015 Chris Banes <chrisbanes@google.com> am 6d91eee3: am e4924958: am 638a2a4a: Merge "Fix crash in CoordinatorLayout DO NOT MERGE" into mnc-dev

* commit '6d91eee3e7d064d7ca695da1fcb755e1ae1d58e9':
Fix crash in CoordinatorLayout DO NOT MERGE
638a2a4a0b31b7d669bf0000dacd18129754d37c 21-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Fix crash in CoordinatorLayout DO NOT MERGE" into mnc-dev
44e00ab1860a78d91ad6f586f41eaae0c108a3bc 20-Aug-2015 Chris Banes <chrisbanes@google.com> Fix AppBarLayout not being drawn after rotation DO NOT MERGE

Happens when someone is using configChanges="orientation".
The fix is to tickle the invalidation flag on both the view
and the parent.

BUG: 23381984
Change-Id: Iddd44c59b4a8a64eab9c339f14728b5705266bf9
iewOffsetHelper.java
25ba5dfde27fb3496f5cd4c2ef86c5340030a3c3 20-Aug-2015 Chris Banes <chrisbanes@google.com> am f7f64ada: am f3334236: Merge "Fix AppBarLayout not being drawn after rotation" into mnc-ub-dev

* commit 'f7f64adaee68ab0ff83f1105d8c496cefe68618a':
Fix AppBarLayout not being drawn after rotation
cf3d7fb4ad60ade58d68494d487a170748c908f9 20-Aug-2015 Chris Banes <chrisbanes@google.com> Fix AppBarLayout not being drawn after rotation

Happens when someone is using configChanges="orientation".
The fix is to tickle the invalidation flag on both the view
and the parent.

BUG: 23381984
Change-Id: Iddd44c59b4a8a64eab9c339f14728b5705266bf9
iewOffsetHelper.java
515613db9b9d82472c8fce69b2b104c277f68b99 20-Aug-2015 Chris Banes <chrisbanes@google.com> Fix crash in CoordinatorLayout DO NOT MERGE

Already fixed downstream in I854d97125c26f1584f13ec554e74247cc8c539d6

BUG: 23367283
Change-Id: I7c4c08d7981c78cf9f9158cd7414abe4fce140b3
oordinatorLayout.java
a7089a467c8da51a857f83dac4d860ce76254b2b 18-Aug-2015 Chris Banes <chrisbanes@google.com> am 7d749174: am e2a4d64e: Merge "Make sure that AppBarLayout is laid out correctly" into mnc-ub-dev

* commit '7d749174ba4caa69fdb28716ef6d55cb67e0aa55':
Make sure that AppBarLayout is laid out correctly
e2a4d64e32452c9b72f8931936b1b38ef2e246e7 18-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Make sure that AppBarLayout is laid out correctly" into mnc-ub-dev
0d2f46331a9fc3b21597e926ba2e061af7c00708 18-Aug-2015 Chris Banes <chrisbanes@google.com> Make sure that AppBarLayout is laid out correctly

Currently, the scrolling view of a AppBarLayout relies
on CoLs pre draw listener to move itself. This is
problematic for things like activity transitions which
rely on correct position after a layout.

BUG: 23307267
Change-Id: Ibf508908cd22ef29d2c3752b299b8ce5d6346b0a
ppBarLayout.java
722de5c771c6451be50c7c552c115ef1a3b1afd0 18-Aug-2015 Chris Banes <chrisbanes@google.com> am 2d53b446: am 9c1a007d: Merge "TabLayout measure performance improvements" into mnc-ub-dev

* commit '2d53b446706991c880ab2ec840d191414b8bdd52':
TabLayout measure performance improvements
9c1a007db43f0b5a5db6dee449486279309fed86 18-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "TabLayout measure performance improvements" into mnc-ub-dev
cb37b09ebbc5e8e9c7c6c65211686d61e2ed3a3f 11-Aug-2015 Chris Banes <chrisbanes@google.com> TabLayout measure performance improvements

- Disable the framework fillViewport functionality
and we do it ourselves instead. This allows us
to remove multiple unnecessary measure passes.
- Use the available space for max tab width calculation
- Actually honor the scrollable tab min width (this
wasn't working before).

BUG: 23173903

Change-Id: I7dd2c9219dedf930e533207dad9444553b040447
abLayout.java
29ad866949dd8e30ba006ab7d048452aa0e29086 18-Aug-2015 Chris Banes <chrisbanes@google.com> am 44f13956: am c2c0e6f7: Merge "Disable invalidation tickle workaround on M+" into mnc-ub-dev

* commit '44f13956fcbd0aa8575865774809a0f89d9a4ee5':
Disable invalidation tickle workaround on M+
c2c0e6f70f841b3d8e42f1cc36c3f710b2017376 18-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Disable invalidation tickle workaround on M+" into mnc-ub-dev
576e003b7a50073bcf78599ac830c175af5ba844 18-Aug-2015 Chris Banes <chrisbanes@google.com> Disable invalidation tickle workaround on M+

Change-Id: I38f91c0dacab8fa59d0eee01313266229f0545d1
iewOffsetHelper.java
6c7f48e3efe9ff9624b97fc61bc44c50e394a6be 18-Aug-2015 Chris Banes <chrisbanes@google.com> am c0ef976e: am 14113e91: Revert TabLayoutOnPageChangeListener change

* commit 'c0ef976e4adc5713daba4e843133da8fc74faf88':
Revert TabLayoutOnPageChangeListener change
14113e918762c4319dfde99e5b87873deeda9f03 18-Aug-2015 Chris Banes <chrisbanes@google.com> Revert TabLayoutOnPageChangeListener change

BUG: 23304024
Change-Id: I31d465996410d172ba8927af5a15edc456ee4e69
abLayout.java
aa930593e0edb2b818a0f759efd03ed159b979e0 17-Aug-2015 Chris Banes <chrisbanes@google.com> am 652b23f3: am 15efaeb4: Merge "AppBarLayout layout/measure fixes" into mnc-ub-dev

* commit '652b23f34999bdddbf52356d4fb9f87830264f9f':
AppBarLayout layout/measure fixes
8942fdd83bf150fc26e198e1b2dafcbff00e79ef 17-Aug-2015 Chris Banes <chrisbanes@google.com> am 581de875: am 25c8477a: Merge "Improvements around CollapsingToolbarLayout\'s scrims" into mnc-ub-dev

* commit '581de87570b31ac402eb2be6467227e59c475462':
Improvements around CollapsingToolbarLayout's scrims
693502df34175a94caec214ca3cfcddbb6199201 17-Aug-2015 Chris Banes <chrisbanes@google.com> am a568e389: am 3a132609: Merge "Update TabLayout to Material Spec" into mnc-ub-dev

* commit 'a568e3895cb632874723a4e9ad78e73741a1a191':
Update TabLayout to Material Spec
15efaeb4c208f87a015024210aa34855eead209a 17-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "AppBarLayout layout/measure fixes" into mnc-ub-dev
25c8477ad7c28e8f6b7b0dba38f30544d8308749 17-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Improvements around CollapsingToolbarLayout's scrims" into mnc-ub-dev
e9f1ca9247c94f9073403fd6777403ae5b94e77a 17-Aug-2015 Chris Banes <chrisbanes@google.com> Improvements around CollapsingToolbarLayout's scrims

Added a public API to be able to control the visibility.

BUG: 23267454

Change-Id: Id9d587c3fffd9ff994641c0a94a7abbfd7870272
ollapsingToolbarLayout.java
ea004a01f44aaf36212120c936952c1742d03d30 07-Aug-2015 Chris Banes <chrisbanes@google.com> AppBarLayout layout/measure fixes

- We no longer display above the scrolling view
over a collapsed AppBarLayout.
- Make sure we measure the scrolling view to fill
any window inset.
- Make sure the ABL is measured before we measure the
the scrolling view.
- Make sure we use the measured height of views when
calculating the scroll ranges.
- Made some pkg-private methods actually private.

BUG: 23025697

Change-Id: I854d97125c26f1584f13ec554e74247cc8c539d6
ppBarLayout.java
oordinatorLayout.java
c3a5ae275653ae325d0cb5428f4a3aa071aa467b 30-Jun-2015 Chris Banes <chrisbanes@google.com> Update TabLayout to Material Spec

- Tabs + Icons are now vertically aligned
- Text size is updated based on multi-line

BUG: 22964033

Change-Id: Iee4e5ab5a78d02884fd507a5c889b0d99a317de8
abLayout.java
20d467e20a3ba8e6fca0769d88c619b8944c284e 12-Aug-2015 Chris Banes <chrisbanes@google.com> am 0004b7b2: am ff19191e: Merge "Make FloatingActionButton focusable" into mnc-ub-dev

* commit '0004b7b2cabf2937f3056e83a4686f10cb5041f4':
Make FloatingActionButton focusable
ff19191ee5da58db067835b59843302ef51fc504 12-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Make FloatingActionButton focusable" into mnc-ub-dev
056d2a8b39db63e7c2cd8c2d69e05525b280f5c6 11-Aug-2015 Chris Banes <chrisbanes@google.com> am 06b2a856: am 2fe4d11a: am fe624405: am a1579263: am 51252b97: Merge "Fix TextInputLayout not displaying RTL hint correctly" into mnc-dev

* commit '06b2a856e5ad3f7502254326b364a5d5a70e7081':
Fix TextInputLayout not displaying RTL hint correctly
2fe4d11ac7192c02dab55a527663c2c739f862ac 11-Aug-2015 Chris Banes <chrisbanes@google.com> am fe624405: am a1579263: am 51252b97: Merge "Fix TextInputLayout not displaying RTL hint correctly" into mnc-dev

* commit 'fe624405d1cbfa933201331711dc99195fabd317':
Fix TextInputLayout not displaying RTL hint correctly
3531cb37189bcbd3039056f959e0916dff645d0a 10-Aug-2015 Chris Banes <chrisbanes@google.com> Make FloatingActionButton focusable

BUG: 23070205
Change-Id: Ibae1c8472ba8160d80dc7071a1f7777039e203e8
loatingActionButton.java
d5f3a08bb9e1c4b09237f16263aff953dca63904 09-Aug-2015 Chris Banes <chrisbanes@google.com> Fix TextInputLayout not displaying RTL hint correctly

Causing by us not specifying the horizontal gravity.
This lead to the default gravity of left.

BUG: 23037684
Change-Id: I1af0e0dc3cf35475b9a601d8fe94f0308450399d
extInputLayout.java
1bf420730ddf23747df283caf6f8eba8e86fe7be 07-Aug-2015 Chris Banes <chrisbanes@google.com> am 437a2ac0: am 3d176d20: Merge "Fix tab indicator getting out of sync" into mnc-ub-dev

* commit '437a2ac0a70bdc2d43731ffb24fedf84615be47a':
Fix tab indicator getting out of sync
3d176d204e7e671b68ec4051c578c9a48068c422 07-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Fix tab indicator getting out of sync" into mnc-ub-dev
65fb4571ce472e3ea5d654f51025bb84925f5b22 07-Aug-2015 Chris Banes <chrisbanes@google.com> am 2dd67ac0: am 8c6f2081: Merge "Add more helpful exception to design components" into mnc-ub-dev

* commit '2dd67ac062eb7f7a9a83e4f864eb27b15f416f48':
Add more helpful exception to design components
cecb49d5783928346a26ba1769348ea280072dd1 07-Aug-2015 Chris Banes <chrisbanes@google.com> am eda9487d: am 56192cf2: Merge "Support text shadows in CollapsingTextHelper" into mnc-ub-dev

* commit 'eda9487dd1501899019809d35b5145fc10e145de':
Support text shadows in CollapsingTextHelper
8c6f2081ebd836a9e2812ebb92d795f9ff0c488f 07-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Add more helpful exception to design components" into mnc-ub-dev
23caabcc1fc96e3756d0c354b49290467080de6a 07-Aug-2015 Chris Banes <chrisbanes@google.com> Support text shadows in CollapsingTextHelper

BUG: 22999436
Change-Id: I2059e1b3f9a9526f10fcbca1659123f6b3a97777
ollapsingTextHelper.java
809bb62055ad42b88f3a69308be222801b89fbd9 07-Aug-2015 Chris Banes <chrisbanes@google.com> Add more helpful exception to design components

If a developer doesn't use a AppCompat theme, bad
things happen with the design lib. This CL adds
an explicit check with a helpful error message.

Change-Id: I60c81ed87057fa75b38e26bf8c4b1edbc9ff7a3f
ppBarLayout.java
ollapsingToolbarLayout.java
oordinatorLayout.java
loatingActionButton.java
avigationView.java
nackbar.java
abLayout.java
extInputLayout.java
hemeUtils.java
ba2a96aaf54f6fc755856ef05a3c967a5f000b82 06-Aug-2015 Chris Banes <chrisbanes@google.com> Fix tab indicator getting out of sync

Caused when the indicator is animating to a
position, but a re-layout happens during the
animation moving the target position.

BUG: 23004032
Change-Id: If9ab0f7e6ea088b28ceca7666a8fde40d5e715e2
abLayout.java
5f4791e3d581a759c7df1495e73832eb48dbbb74 06-Aug-2015 Chris Banes <chrisbanes@google.com> am 0aea210f: am 9c217b58: Merge "Actually use the hint provided from attrs" into mnc-ub-dev

* commit '0aea210fd6897076813d10451ffdef4437b9ed4d':
Actually use the hint provided from attrs
4369f8b91f58ab2fa81b617d1d15ed0fa3185092 06-Aug-2015 Chris Banes <chrisbanes@google.com> Actually use the hint provided from attrs

BUG: 22913409
Change-Id: Ib4ed59080d53bdee562dd0263e9ded959d4bedb2
extInputLayout.java
956cef01684faf7946de5f0fd7b6709e27529a3b 03-Aug-2015 Tor Norbye <tnorbye@google.com> Merge "Allow integers to both have @IntDef and @IntRange constraints"
ca560df98c008072b70f75c473fdabad7e7a6f43 03-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Some fixes for TextInputLayout" into mnc-dev
381b9e8b3494a5c6991e836245865760290d456f 03-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Make CoordinatorLayout request a window insets dispatch" into mnc-dev
de0cc188c28f8c19ef5e737e9cd22492b07250c8 01-Aug-2015 Tor Norbye <tnorbye@google.com> Allow integers to both have @IntDef and @IntRange constraints

Used to fix
181789: Incorrect/inconsistent lint + documentation for Snackbar

Change-Id: I12b68ed8dc0ff5e7c14857177af0c621c9ce5bc0
nackbar.java
e3f6ba486fec4e11ca7508049ac81de4c7102f23 31-Jul-2015 Chris Banes <chrisbanes@google.com> Make CoordinatorLayout request a window insets dispatch

When using CoL in a Fragment, it's quite easy for it
to miss the normal window insets dispatch. As CoL contains
special functionality with insets, it should request new
window insets as necessary.

BUG: 22869860
Change-Id: Id9547b9e80e31acea5fffcd57d932d0bdb7f50cc
oordinatorLayout.java
ab809dd75ef2f73b312038f2c10473cfa5885a58 31-Jul-2015 Chris Banes <chrisbanes@google.com> Fix AppBarLayout scrolling when scrolling view is small

Currently AppBarLayout will only start scrolling if the
the View starting the nested scroll is large enough to be
scrolled. This works fine when that view is a direct sibling
of AppBarLayout, but when it is not a direct sibling we should
use it's parent instead of the view directly when checking the
height.

BUG: 22789052
Change-Id: Ibedbcb29d2a5ee917ad0b6140ad4ce7ff6fd04f2
ppBarLayout.java
8ad23944380932102f17a9a012cf9faf62ce9eda 30-Jul-2015 Chris Banes <chrisbanes@google.com> Merge "Allow CollapsingToolbarLayout's title is be disabled" into mnc-dev
3104067991a7d66e9e10e7a6ba49d809f83bc2ca 30-Jul-2015 Chris Banes <chrisbanes@google.com> Some fixes for TextInputLayout

- We now tint the EditText background
based on the error state
- Simultaneous calls to setError() now work
correctly (more animation listener setting
setVisibility).

BUG: 22841082
BUG: 21657563
Change-Id: I6b8e79ca488d84c56a0d6a8d80e8014bb7c5a2b6
extInputLayout.java
1701feace5652372dd2fe1913f74169a12e2c940 28-Jul-2015 Chris Banes <chrisbanes@google.com> Allow CollapsingToolbarLayout's title is be disabled

BUG: 22782543
Change-Id: I72e513abae20cd5b25fefe6ff5061fee34daab0f
ollapsingToolbarLayout.java
39d1d2d33cdd490d8b9f68d3300725035c1e0c56 29-Jul-2015 Chris Banes <chrisbanes@google.com> FloatingActionButton animation fixes

There are a few scenarios where the FAB can be left
in undesired states. This CL fixes them.

BUG: 22813854
BUG: 22810389
Change-Id: I87f0d7ec81cd1d25b40b5c41c0266095df91e3a9
loatingActionButton.java
4ec3f8b245053f365624a428621d5bb2b09a78d7 28-Jul-2015 Chris Banes <chrisbanes@google.com> am 71561909: Merge "TabLayout improvements + fixes" into lmp-mr1-ub-dev

* commit '71561909a517b3f61f0a638fdeb2e262b38e8df9':
TabLayout improvements + fixes
09db0f00a693704eb747027def4279362c51894e 21-Jul-2015 Chris Banes <chrisbanes@google.com> TabLayout improvements + fixes

- Fix NPE when it's given an empty PagerAdapter
- Fix onTabReselected() being called at the wrong time
- Fix text flickering when used with ViewPager
- Fix wobbling indicator
- Optimized setSelectedTabView method

BUG: 22625805
BUG: 22709585
BUG: 22709728
BUG: 22711100

Change-Id: Ic8691c55f539707466928662a8d9a7acfbcbe92a
abLayout.java
d9d7540f53e2dabce9c0188dd10533a086eef357 27-Jul-2015 Chris Banes <chrisbanes@google.com> am 2466ce08: Merge "Use the correct MeasureSpec for ScrollingViewBehavior" into lmp-mr1-ub-dev

* commit '2466ce0898d4252dd80cfbed1541160039dc8d37':
Use the correct MeasureSpec for ScrollingViewBehavior
2466ce0898d4252dd80cfbed1541160039dc8d37 27-Jul-2015 Chris Banes <chrisbanes@google.com> Merge "Use the correct MeasureSpec for ScrollingViewBehavior" into lmp-mr1-ub-dev
d6c56d929f7975eb6d80116e915ff5515a294c41 27-Jul-2015 Chris Banes <chrisbanes@google.com> Use the correct MeasureSpec for ScrollingViewBehavior

We were previously always using AT_MOST which resulted
in views wrapping when they shouldn't have been.

BUG: 22756162
Change-Id: I7ee7d27498b0203f37188f1c0a4bf41131f4bb2c
ppBarLayout.java
191d8450678be852a67b53635b85015686ac0c2a 27-Jul-2015 Chris Banes <chrisbanes@google.com> resolved conflicts for merge of 7a13c848 to mnc-dev

Change-Id: I731f46520f97bce3e9a1ce96e126b51e1d6dbd82
7a13c8489daca7915623dd673df49de2d1a0bf30 27-Jul-2015 Chris Banes <chrisbanes@google.com> Return the correct tint/mode from FloatingActionButton

BUG: 22754431
Change-Id: Iab1a35bdc7d11149b7bb0faa24e498788902e0ea
loatingActionButton.java
f7a85d1cca675b1743aa478f8307d5a189f724ec 24-Jul-2015 Chris Banes <chrisbanes@google.com> am 979a9f5a: Merge "Set CollapsingToolbarLayout\'s title from Toolbar" into lmp-mr1-ub-dev

* commit '979a9f5a7949dd93133be948fdc8fcb22117265b':
Set CollapsingToolbarLayout's title from Toolbar
31075a61da61f1f0184ee909a70b1efcd7cee807 24-Jul-2015 Chris Banes <chrisbanes@google.com> Set CollapsingToolbarLayout's title from Toolbar

BUG: 22707786
Change-Id: Ie16737b10524cfc972f12fcf32f9f1cd88aa5434
ollapsingToolbarLayout.java
1bb61e0307f85b728b250b07c2997be9e295d8a9 23-Jul-2015 Chris Banes <chrisbanes@google.com> am eb344aa3: Merge "TextInputLayout fixes" into lmp-mr1-ub-dev

* commit 'eb344aa3dce8765684467c94b6b5b98831ab15fb':
TextInputLayout fixes
eb344aa3dce8765684467c94b6b5b98831ab15fb 22-Jul-2015 Chris Banes <chrisbanes@google.com> Merge "TextInputLayout fixes" into lmp-mr1-ub-dev
9b1c6f5aed973e5c6360c5f7fc2453b85b535bcb 22-Jul-2015 Chris Banes <chrisbanes@google.com> am defa84b4: Merge "API tidy up for Snackbar" into lmp-mr1-ub-dev

* commit 'defa84b419d7235fde1b6a282da1267df04929ae':
API tidy up for Snackbar
b8a3b8ee61756f9f9a856eb2428bf2389fd92926 22-Jul-2015 Chris Banes <chrisbanes@google.com> TextInputLayout fixes

- Respect TextView gravity for hint
- Add flag to disable/enabled animations

BUG: 22651131
BUG: 22651135

Change-Id: Ibf05f30e514fac51db867c8318344f3fae4a4ae0
extInputLayout.java
e51e533995e445f031fc8efcce6ff9a61e7066cc 20-Jul-2015 Chris Banes <chrisbanes@google.com> API tidy up for Snackbar

Made setCallback() return itself for chaining
Add an event type to the dismiss callback
Annotated more of the methods
Tightened up the class' visiblity

Change-Id: I63935be331ec39dce6483fd478f1dd14498c3cd9
nackbar.java
nackbarManager.java
ec2139270829c55b0c50c62612306c18b8c0b98b 14-Jul-2015 Chris Banes <chrisbanes@google.com> am 1629c7c8: Merge "Allow vertical dragging of AppBarLayout" into lmp-mr1-ub-dev

* commit '1629c7c8561372ec8a97df983edad01e0657b1d9':
Allow vertical dragging of AppBarLayout
d4c72f08279df548fbc4d556fe1a8b3500fafdbc 15-Jun-2015 Chris Banes <chrisbanes@google.com> Allow vertical dragging of AppBarLayout

Also fixed onStopNestedScroll() not being called
from NestedScrollView and RecyclerView

BUG: 21843568
BUG: 20679299

Change-Id: I1b19d7cae2db403ede30fc9116ea05aace586b3b
ppBarLayout.java
oordinatorLayout.java
0086f850e457b0a00bd5790e4fb82c559459d3e0 09-Jul-2015 Chris Banes <chrisbanes@google.com> am 6b824bec: Merge "Expand TextInputLayout\'s API with more getters/setters" into lmp-mr1-ub-dev

* commit '6b824becfa480cad6d311f54921624438f1363ed':
Expand TextInputLayout's API with more getters/setters
6b824becfa480cad6d311f54921624438f1363ed 09-Jul-2015 Chris Banes <chrisbanes@google.com> Merge "Expand TextInputLayout's API with more getters/setters" into lmp-mr1-ub-dev
6a1f7414c26c9201ebd8ddee9edbb7242a88541e 09-Jul-2015 Chris Banes <chrisbanes@google.com> am 3211267e: Merge "Fix SwipeDismissBehavior for views not at left=0" into lmp-mr1-ub-dev

* commit '3211267e8a582c1a961316ad3c7b76babc6c65d1':
Fix SwipeDismissBehavior for views not at left=0
2bda001ff9233e3dc3f8e27faf215534656d69af 09-Jul-2015 Chris Banes <chrisbanes@google.com> Fix SwipeDismissBehavior for views not at left=0

BUG: 22368155
Change-Id: I06df7eaba1cbe8e09022a6b6e1fcfa4e87fbfb54
wipeDismissBehavior.java
2aa57abd4531068424642e1a5dfff47c17b84c2e 26-Jun-2015 Chris Banes <chrisbanes@google.com> Expand TextInputLayout's API with more getters/setters

BUG: 22106238
Change-Id: I2f22c3b33067db4688003a6e98271a5f3aa04d0c
extInputLayout.java
8f419d93d8a20de5dd04ada2d7c5a022619b12e4 08-Jul-2015 Chris Banes <chrisbanes@google.com> am fc829ef7: Merge "Overlay custom TextAppearances rather than nuke" into lmp-mr1-ub-dev

* commit 'fc829ef72d0bda580283394f126b775d89421111':
Overlay custom TextAppearances rather than nuke
09afab5f9acdd1b22cb4759ac7e1150bcf2410d6 08-Jul-2015 Chris Banes <chrisbanes@google.com> am dbd769d8: Merge "Remove the need for using a OnFocusChangeListener" into lmp-mr1-ub-dev

* commit 'dbd769d8a0779f91fed732284206ba8c0cc42d66':
Remove the need for using a OnFocusChangeListener
fc829ef72d0bda580283394f126b775d89421111 08-Jul-2015 Chris Banes <chrisbanes@google.com> Merge "Overlay custom TextAppearances rather than nuke" into lmp-mr1-ub-dev
dbd769d8a0779f91fed732284206ba8c0cc42d66 08-Jul-2015 Chris Banes <chrisbanes@google.com> Merge "Remove the need for using a OnFocusChangeListener" into lmp-mr1-ub-dev
4237f26387ad807565851b24b684f89fed2af565 07-Jul-2015 Chris Banes <chrisbanes@google.com> am 9fe887ec: Merge "Annotate Snackbar correctly" into lmp-mr1-ub-dev

* commit '9fe887ec2e219891376ba9c1d353a6d45b5f1153':
Annotate Snackbar correctly
9934230aa2959ee9f1802aa81fd21e25030b0d10 07-Jul-2015 Chris Banes <chrisbanes@google.com> Overlay custom TextAppearances rather than nuke

Currently if a developer sets a custom TextAppearance
on CollapsingToolbarLayout without a text size, it breaks
since it doesn't have a text size to use.

This is fixed by always loading the default text appearances
first, and then overlaying any custom styles.

Also fixed the new margin top.

BUG: 22316083
Change-Id: I762698120cda501f6e335e41f8ceb82a246627c9
ollapsingTextHelper.java
ollapsingToolbarLayout.java
5bb1f5d910c81ed2a31c687583bd90baccc972ac 07-Jul-2015 Chris Banes <chrisbanes@google.com> Annotate Snackbar correctly

BUG: 22313082
Change-Id: I90cd0a5f07d2a38ea0c310a3f5c5252251cb5a98
nackbar.java
3814cf377c0981fb3524f0e2d493c0ee2664a6ec 06-Jul-2015 Chris Banes <chrisbanes@google.com> am 80b7fc1f: Merge "Use Button for Snackbar\'s action" into lmp-mr1-ub-dev

* commit '80b7fc1fa8d9200b81b2409347678af79b128a49':
Use Button for Snackbar's action
295311874d0807bab84fb2091e608da9e9ef3cd9 06-Jul-2015 Chris Banes <chrisbanes@google.com> Remove the need for using a OnFocusChangeListener

Means that developers can set their own listener without
breaking TextInputLayout's listener.

BUG: 22293076

Change-Id: I1bacc3488405dc6aab02c93d648a81af4cdbf13c
extInputLayout.java
5cf1a7e04097b7e116c118cfa823a4cdb48f38a1 06-Jul-2015 Chris Banes <chrisbanes@google.com> Use Button for Snackbar's action

Makes the action focusable for accessbility
purposes, and allows us to use the normal
borderless button style.

Change-Id: Ic94dac43434f0bddca19eb6fcea36ce6913460f5
nackbar.java
02eb1cd6e40c7453bdfe8f1ac9a183d49d72131c 02-Jul-2015 Yuichi Araki <yaraki@google.com> am ff9bf0cc: Merge "Fix potential NPE when proguard is on" into lmp-mr1-ub-dev

* commit 'ff9bf0cc0dfd5c60037620917362789db000dd57':
Fix potential NPE when proguard is on
ff9bf0cc0dfd5c60037620917362789db000dd57 01-Jul-2015 Yuichi Araki <yaraki@google.com> Merge "Fix potential NPE when proguard is on" into lmp-mr1-ub-dev
653c415b857accd91be2396567711b2dd151fd54 30-Jun-2015 Chris Banes <chrisbanes@google.com> am 5605e4ab: Merge "Store OnOffsetChangeListener with hard refs" into lmp-mr1-ub-dev

* commit '5605e4ab277499a708ac24149844ef3a37d193ee':
Store OnOffsetChangeListener with hard refs
5605e4ab277499a708ac24149844ef3a37d193ee 30-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Store OnOffsetChangeListener with hard refs" into lmp-mr1-ub-dev
9d9e5f050714c1f82c3c1adeab97c9a83a795d9e 30-Jun-2015 Yuichi Araki <yaraki@google.com> Fix potential NPE when proguard is on

Bug: 22140597
Change-Id: I0a6039576d88805f74266f4af7418236a74c6577
avigationView.java
a30ee841b517b44825308f1ec24aeb308a8be240 29-Jun-2015 Chris Banes <chrisbanes@google.com> am 66a875e5: Don\'t draw collapsing title if bounds are empty

* commit '66a875e525700de5eed715a52a3329ab5a310d96':
Don't draw collapsing title if bounds are empty
66a875e525700de5eed715a52a3329ab5a310d96 29-Jun-2015 Chris Banes <chrisbanes@google.com> Don't draw collapsing title if bounds are empty

Allows us to fix the issue of the title being
display under an expanded SearchView.

BUG: 22165213
Change-Id: I726b81e9905d7f79a17c929d4443986e9a41baeb
ollapsingTextHelper.java
6f730c0acfb10a929172ea2981a1aded0e39f5c7 29-Jun-2015 Chris Banes <chrisbanes@google.com> Store OnOffsetChangeListener with hard refs

Create a demo app the other day using an anon-inner
listener class. The listener stopped working randomly
which caught me out. There's no real need to store
these weakly.

Change-Id: Ie4e5328bab6f0b40c16f6b2b1f66c8c8415c9cc5
ppBarLayout.java
7944dd73b2a3f9750799340feed27128917410e1 29-Jun-2015 Chris Banes <chrisbanes@google.com> am bb829e3d: Merge "Add APIs to set AppBarLayout to be expanded or not" into lmp-mr1-ub-dev

* commit 'bb829e3d51be7da7e4d02c1abc58c5f9132197c2':
Add APIs to set AppBarLayout to be expanded or not
ddd0314875d48ec987eaad52a865bdfa2197b3b1 27-Jun-2015 Chris Banes <chrisbanes@google.com> am b9c88620: Merge "Setters for CollapsingToolbarLayout title gravity" into lmp-mr1-ub-dev

* commit 'b9c886204009908c9c22c0f9c356a95aeea138fb':
Setters for CollapsingToolbarLayout title gravity
80f2710b679782055404c1ba526fd08ac4b43f4b 27-Jun-2015 Yuichi Araki <yaraki@google.com> am 33c086b1: Merge "Fix SubMenu in NavigationView" into lmp-mr1-ub-dev

* commit '33c086b170ad408746728df4a4b5d6d9f10e7508':
Fix SubMenu in NavigationView
9995f7bdb02dbe16155661545fd64046ad3d56c2 01-Jun-2015 Chris Banes <chrisbanes@google.com> Add APIs to set AppBarLayout to be expanded or not

BUG: 21993903

Change-Id: I840665eab09814e8f09fb1a1f3f8bd13cac0d4b7
ppBarLayout.java
ollapsingTextHelper.java
b9c886204009908c9c22c0f9c356a95aeea138fb 26-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Setters for CollapsingToolbarLayout title gravity" into lmp-mr1-ub-dev
33c086b170ad408746728df4a4b5d6d9f10e7508 26-Jun-2015 Yuichi Araki <yaraki@google.com> Merge "Fix SubMenu in NavigationView" into lmp-mr1-ub-dev
94a4d50356a9a78b38c25411f4660cdb6621dd33 26-Jun-2015 Chris Banes <chrisbanes@google.com> am dcc1ed2b: Merge "Take children\'s margin in account in AppBarLayout" into lmp-mr1-ub-dev

* commit 'dcc1ed2ba688c2dd7398e93c60520269dc40d60c':
Take children's margin in account in AppBarLayout
5c7d7bbceeaebc46dc2e4b2135cc330414f716d4 24-Jun-2015 Chris Banes <chrisbanes@google.com> Setters for CollapsingToolbarLayout title gravity

Most of the work is in CollapsingTextHelper to able
to support both v-grav and h-grav.

BUG: 22078891

Change-Id: Ie034c3a8077fb00174374d145ffba821fd49f0c1
ollapsingTextHelper.java
ollapsingToolbarLayout.java
extInputLayout.java
dcc1ed2ba688c2dd7398e93c60520269dc40d60c 25-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Take children's margin in account in AppBarLayout" into lmp-mr1-ub-dev
025760e00ff7b0baa21981ff79784861841f8f19 24-Jun-2015 Chris Banes <chrisbanes@google.com> am 28193403: Merge "Prefix design lib resources to try and avoid conflicts" into lmp-mr1-ub-dev

* commit '28193403ecefb3f222f1e383adf4f9b331ebebcf':
Prefix design lib resources to try and avoid conflicts
a577676a64e5353b8ec927117151aa6be84adf66 23-Jun-2015 Chris Banes <chrisbanes@google.com> Prefix design lib resources to try and avoid conflicts

BUG: 21363917
Change-Id: I770a01618ac8fefae6d82d1640ccf313111e38e8
loatingActionButton.java
nackbar.java
abLayout.java
75ad93503ad801e1cf76d69e448f955e3ce5c22b 22-Jun-2015 Chris Banes <chrisbanes@google.com> am 1832f6e4: Fix TextInputLayout setErrorEnabled() NPE

* commit '1832f6e483ae37e8b92914819c7e786d6f22f84b':
Fix TextInputLayout setErrorEnabled() NPE
1832f6e483ae37e8b92914819c7e786d6f22f84b 18-Jun-2015 Chris Banes <chrisbanes@google.com> Fix TextInputLayout setErrorEnabled() NPE

Caused by the animation end listener referencing
the now-null error TextView.

BUG: 21991987

Change-Id: Iacba13fb6d3a5d3fcf9069a73d94c91431f13fd4
extInputLayout.java
83548477bd7a50c3a55d22707f17511894df4c5b 22-Jun-2015 Chris Banes <chrisbanes@google.com> am 21f887ec: Make Tab#getCustomView() public

* commit '21f887ec48f1e9780a69833723e1fba64e7557c5':
Make Tab#getCustomView() public
21f887ec48f1e9780a69833723e1fba64e7557c5 22-Jun-2015 Chris Banes <chrisbanes@google.com> Make Tab#getCustomView() public

BUG: 21989932
Change-Id: Iee65d3b3f4ca344d54a5631ab214582e7e74f61e
abLayout.java
6c72ea0134a3309ff8197f0862aad8d7bc712b55 15-Jun-2015 Yuichi Araki <yaraki@google.com> Fix SubMenu in NavigationView

This introduces new wrappers; NavigationMenu and NavigationSubMenu.
These are necessary to notify the top menu when its sub menu is changed.
https://code.google.com/p/android/issues/detail?id=176300

Change-Id: I1ea97880dfb0e0c1dee6426b3c528d6d60323063
avigationView.java
5cb08b09c9dee8fc83c475b4c234f6132e6a3782 19-Jun-2015 Chris Banes <chrisbanes@google.com> am 6fff1f92: Merge "Fix TabLayout when used in a HorizontalScrollView" into lmp-mr1-ub-dev

* commit '6fff1f920e152a0504d9ae745a0bfbc926a8e4c1':
Fix TabLayout when used in a HorizontalScrollView
b263b91ba75dc1a7855186e8b0e9cf75d46a6b8d 01-Jun-2015 Chris Banes <chrisbanes@google.com> Take children's margin in account in AppBarLayout

BUG: 21546828
Change-Id: I2623ff5bfd0395e2528dd3a658d47be1ea5f6573
ppBarLayout.java
d67a60744b4a713ca37e219e349b55743a39272a 18-Jun-2015 Chris Banes <chrisbanes@google.com> Fix TabLayout when used in a HorizontalScrollView

It's not an intended use case, but it does show up
some problems with TabLayout's measure code when
it's given an UNSPECIFIED measure spec. This CL
fixes TabLayout so that it measures itself correctly.

BUG: 21913808
Change-Id: I1674f3da1da334543c943ab3b7aa9d1920f325b6
abLayout.java
2521e5cf58f5353f32db138a9d23afce56570ebe 15-Jun-2015 Chris Banes <chrisbanes@google.com> am 0b004890: Fix FAB not returning after Snackbar dismissal

* commit '0b00489086b22c9688c8c04990dadf54489d45e3':
Fix FAB not returning after Snackbar dismissal
0b00489086b22c9688c8c04990dadf54489d45e3 12-Jun-2015 Chris Banes <chrisbanes@google.com> Fix FAB not returning after Snackbar dismissal

Caused by the fact that sometimes a removed view does
not trigger a onDependentViewChanged() dispatch. As
a removal doesn't really fit that method, I've added
a onDependentViewRemoved() call to Behavior.

BUG: 21799255
Change-Id: Ib86713a38928dfdbbfcf419e44bafe8023e5a8ee
oordinatorLayout.java
loatingActionButton.java
bd917cf89ea7b0afa8a4b9bf3f2e2bc1d0774064 15-Jun-2015 Chris Banes <chrisbanes@google.com> am 180b89d1: Merge "Move the Tab Indicator higher up the draw call stack" into lmp-mr1-ub-dev

* commit '180b89d1ee5a461a68384ee3a68467e591bdbc00':
Move the Tab Indicator higher up the draw call stack
01a40236dc35d361a406e8b393b9db84f3d866fa 15-Jun-2015 Chris Banes <chrisbanes@google.com> am 7a13691b: Ensure that SwipeDismissBehavior only swipes it\'s own View

* commit '7a13691bbc7b9ac557b69a1e8188a6b1a16b86ef':
Ensure that SwipeDismissBehavior only swipes it's own View
4bcf2733862ef3d5178923b68bbc71e671cf17b1 15-Jun-2015 Chris Banes <chrisbanes@google.com> am fa591aab: Merge "Add APIs to TabLayout to get selected tab position" into lmp-mr1-ub-dev

* commit 'fa591aab28de2eacabc23b4ce26791ea6f5a20b6':
Add APIs to TabLayout to get selected tab position
38fbaa586750181d3b9d5875522eecb72ce9450a 15-Jun-2015 Chris Banes <chrisbanes@google.com> am d6771842: Merge "Add LENGTH_INDEFINITE to Snackbar" into lmp-mr1-ub-dev

* commit 'd6771842d5efecd1c726f6acc82ff63113c64484':
Add LENGTH_INDEFINITE to Snackbar
442f2c89dbee247e70b6b82af92ce662b3880afd 15-Jun-2015 Chris Banes <chrisbanes@google.com> Move the Tab Indicator higher up the draw call stack

Allows us to always draw above the TabView children

BUG: 21842796
Change-Id: I6a3d6a90aeaf7a2263a3cd3a612f99f1ec28ed0c
abLayout.java
7a13691bbc7b9ac557b69a1e8188a6b1a16b86ef 15-Jun-2015 Chris Banes <chrisbanes@google.com> Ensure that SwipeDismissBehavior only swipes it's own View

Currently it could intercept the touch for any view within
the CoordinatorLayout. This CL fixes it by checking
that the MotionEvent is within the Behaviors attached
View.

BUG: 21838809
Change-Id: I9f22443ea65a9e7d4b6d63e58a513bd57824204b
wipeDismissBehavior.java
fa591aab28de2eacabc23b4ce26791ea6f5a20b6 15-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Add APIs to TabLayout to get selected tab position" into lmp-mr1-ub-dev
d6771842d5efecd1c726f6acc82ff63113c64484 13-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Add LENGTH_INDEFINITE to Snackbar" into lmp-mr1-ub-dev
6df24a0e8bf73f183e12b83a2095c2276fa0d8f1 12-Jun-2015 Jens Ole Lauridsen <jlauridsen@google.com> am e3b728db: Merge "DesignTime: Do not use animation in design time." into lmp-mr1-ub-dev

* commit 'e3b728db78e4f6a7533f93d70e9a513751b4a005':
DesignTime: Do not use animation in design time.
e3b728db78e4f6a7533f93d70e9a513751b4a005 12-Jun-2015 Jens Ole Lauridsen <jlauridsen@google.com> Merge "DesignTime: Do not use animation in design time." into lmp-mr1-ub-dev
1960354295716c6c4755b917e42e24efec6ca8dc 12-Jun-2015 Chris Banes <chrisbanes@google.com> am fe2bbcd8: Merge "Simplify tab min/max width measure code" into lmp-mr1-ub-dev

* commit 'fe2bbcd84ea174f75852c4c12b1eab782dd80a24':
Simplify tab min/max width measure code
fe2bbcd84ea174f75852c4c12b1eab782dd80a24 12-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Simplify tab min/max width measure code" into lmp-mr1-ub-dev
0bfb0e034ed6b4f7bbf58a111d2fc893e0553350 12-Jun-2015 Chris Banes <chrisbanes@google.com> Add LENGTH_INDEFINITE to Snackbar

BUG: 21802300

Change-Id: Id7b519b0ea08760dea12d1f1b1bb3fcf202b4c6e
nackbar.java
nackbarManager.java
35ee849e74452227047987c4eb2355b8a61b0505 12-Jun-2015 Chris Banes <chrisbanes@google.com> Simplify tab min/max width measure code

Allows us to fix some states when both the min and max are set,
but are not both taken into account.

Change-Id: I7b1edaed29a4cef992b32e85ca61ba1501c15120
abLayout.java
1f9bc6c19bb18b3e10e008d7b1630733d768d8e1 12-Jun-2015 Chris Banes <chrisbanes@google.com> am ca21b5bb: Merge "Drag in the EditText\'s hint colors in TextInputLayout" into lmp-mr1-ub-dev

* commit 'ca21b5bb2db5edfce75bcfc52a7f2125ef1e68ba':
Drag in the EditText's hint colors in TextInputLayout
ca21b5bb2db5edfce75bcfc52a7f2125ef1e68ba 12-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Drag in the EditText's hint colors in TextInputLayout" into lmp-mr1-ub-dev
5c42e6145cc5a917f3e97d241d55f76e2790504a 12-Jun-2015 Chris Banes <chrisbanes@google.com> Drag in the EditText's hint colors in TextInputLayout

BUG: 21797735
Change-Id: I337387169650836763bf0934b3a8172f9adc4e9e
extInputLayout.java
29b4c372fc299966a87890d8a5b4accb02913b6a 12-Jun-2015 Chris Banes <chrisbanes@google.com> am 344bc9b6: Merge "Fix Tab click not updating the visible selected Tab" into lmp-mr1-ub-dev

* commit '344bc9b6f362b9239b02fa4b3fcc461ccc44d73f':
Fix Tab click not updating the visible selected Tab
2b4b6274ed8c85c98489f67ddc8b7410c218e289 11-Jun-2015 Jens Ole Lauridsen <jlauridsen@google.com> DesignTime: Do not use animation in design time.

Animations are used in response to a nested scroll in an App Bar
to: turn off the FAB and make the scrim opaque such that a image
is invisible when the toolbar is collapsed.
In design time: do not use animations.
This will allow LayoutLib to render the controls correctly after
the toolbar is collapsed.

Change-Id: Id168ce24d4539a765ccbe09a11ffc96716f28ae6
ollapsingToolbarLayout.java
loatingActionButton.java
1a2ccecaf4ea84b1a9ecadb0bdba6d99a4935abb 12-Jun-2015 Chris Banes <chrisbanes@google.com> Add APIs to TabLayout to get selected tab position

BUG: 21796426
Change-Id: I6570a224780a37924576f62a9967cd4d8654fbb0
abLayout.java
15ed6a51e94cf108c3e5043d13e02c634c44faae 12-Jun-2015 Chris Banes <chrisbanes@google.com> Fix Tab click not updating the visible selected Tab

BUG: 21795536
Change-Id: Ie51ecc29bce4ff0f9a84b9fa1e64556b2b8a2f92
abLayout.java
fdd6ec4abeb9100944ea5c043ebc07a707cb4764 11-Jun-2015 Jens Ole Lauridsen <jlauridsen@google.com> DesignTime: Compute the size of the collapsed text correctly from start. DO NOT MERGE

CollapsingToolbarLayout has a mDummyView field which computed bounds is
used for the collapsed bounds of the mCollapsingTextHelper.
The initial size is currently computed wrong (will be empty) because the
mDummyView is added during CollapsingToolbarLayout.onLayout().
This CL makes sure that mDummyView is added before the first layout phase
such that the correct size is computed during the first layout.
This fix allows LayoutLib to create a collapsed App Bar where the text
is rendered in the correct size.

Change-Id: I4f56ffe05bb9a9fa533e00a80edb737e13937af9
(cherry picked from commit 33970bf6064d060cdf5a5a4a9fb9286269de6752)
ollapsingToolbarLayout.java
cdc03eb4fed11f97d3e450e112bea0c89bc7a99a 11-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "DesignTime: Compute the size of the collapsed text correctly from start." into mnc-dev
33970bf6064d060cdf5a5a4a9fb9286269de6752 11-Jun-2015 Jens Ole Lauridsen <jlauridsen@google.com> DesignTime: Compute the size of the collapsed text correctly from start.

CollapsingToolbarLayout has a mDummyView field which computed bounds is
used for the collapsed bounds of the mCollapsingTextHelper.
The initial size is currently computed wrong (will be empty) because the
mDummyView is added during CollapsingToolbarLayout.onLayout().
This CL makes sure that mDummyView is added before the first layout phase
such that the correct size is computed during the first layout.
This fix allows LayoutLib to create a collapsed App Bar where the text
is rendered in the correct size.

Change-Id: I4f56ffe05bb9a9fa533e00a80edb737e13937af9
ollapsingToolbarLayout.java
2970824ded7af86ca85b630730a2eda69b3666b9 10-Jun-2015 Chris Banes <chrisbanes@google.com> am b6eaf30a: Merge "Show/hide FloatingActionButton improvements" into lmp-mr1-ub-dev

* commit 'b6eaf30a24affa0d23889abe975c5a326c01e97c':
Show/hide FloatingActionButton improvements
bc44b866f8301d0de5acb85734bb5d4feae3078a 10-Jun-2015 Chris Banes <chrisbanes@google.com> am 6ca28414: Merge "Make TabLayout more customizable" into lmp-mr1-ub-dev

* commit '6ca2841444fa47edede00296d09f21dde6de2f39':
Make TabLayout more customizable
be48ed9161c09c4b2178ab6dbe28638222809fc7 05-Jun-2015 Chris Banes <chrisbanes@google.com> Show/hide FloatingActionButton improvements

We now have an explicit show()/hide() method so that
developers can use the spec'd animation.

Also fixed an issue where the FAB would be animated in,
overriding the developers set vsibility.

BUG: 21652571
BUG: 21652427
BUG: 21689751

Change-Id: I248d49b812c018e6d46a6ccde262433868ae272e
loatingActionButton.java
6ca2841444fa47edede00296d09f21dde6de2f39 10-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Make TabLayout more customizable" into lmp-mr1-ub-dev
39cfe79f2d3d0c0b90c8dbc0159cac1a2440e451 10-Jun-2015 Chris Banes <chrisbanes@google.com> am a0e42834: Merge "Allow AppBarLayout to handle size changes" into lmp-mr1-ub-dev

* commit 'a0e4283492ce60726662ae6f770f1d7d4c7c3a1e':
Allow AppBarLayout to handle size changes
55e77e6a5a099c850b6cf6b1dd84a50c7a7cc050 10-Jun-2015 Chris Banes <chrisbanes@google.com> am 153fa9a0: Add method to change NavigationView text appearance

* commit '153fa9a03422419cd56b7d17def1ae907fc7b5cf':
Add method to change NavigationView text appearance
5a27940cf7e6eabd451b70bfb73ad1dce0950125 10-Jun-2015 Chris Banes <chrisbanes@google.com> am 1cb0698d: Merge "Improvements to TextInputLayout" into lmp-mr1-ub-dev

* commit '1cb0698d30301a4c8488274571461bef5f18971a':
Improvements to TextInputLayout
ac09900da341c0aed722ee7ea93dedc5f6817ef8 10-Jun-2015 Yuichi Araki <yaraki@google.com> am 9b6192b8: Merge "NavigationView handles checked status" into lmp-mr1-ub-dev

* commit '9b6192b8402b2609060a20c72670d8260bd9c0c2':
NavigationView handles checked status
d2212bf028d053cdc978270c2591c74a9cd6d57a 09-Jun-2015 Chris Banes <chrisbanes@google.com> am d9d3addb: Fix CollapsingToolbarLayout not invalidating text

* commit 'd9d3addb4628537f68348d40346765b7f407cf79':
Fix CollapsingToolbarLayout not invalidating text
57a0f459ed169fa770864a6a7ac6e5b42177d564 09-Jun-2015 Chris Banes <chrisbanes@google.com> am 88cccf6c: Fix NoSuchMethodError in CoL on Eclair 2.1

* commit '88cccf6c76b6a1c2d67152c2de5599f3c8301b18':
Fix NoSuchMethodError in CoL on Eclair 2.1
40fc642141f4ee9ce0763febe67dc258eed04a2b 08-Jun-2015 Chris Banes <chrisbanes@google.com> Make TabLayout more customizable

We now try to find a suitable TextView and ImageView
from the provided custom view.

The text and icon views are now also loaded from
resources, which allows external apps to hook
into the LayoutInflater to style them.

I also went crazy with the new support annotations.

BUG: 21689777

Change-Id: I4026d0cb451f82119a8f8a4ca6c265ed50432bac
abLayout.java
a0e4283492ce60726662ae6f770f1d7d4c7c3a1e 09-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Allow AppBarLayout to handle size changes" into lmp-mr1-ub-dev
153fa9a03422419cd56b7d17def1ae907fc7b5cf 08-Jun-2015 Chris Banes <chrisbanes@google.com> Add method to change NavigationView text appearance

BUG: 21455036
Change-Id: I5ce72af991c66ac1f7750bd1820bc4361f95eddf
avigationView.java
1cb0698d30301a4c8488274571461bef5f18971a 09-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Improvements to TextInputLayout" into lmp-mr1-ub-dev
1bf6093c6dab532bc57c75767470afa3cbbe0384 02-Jun-2015 Chris Banes <chrisbanes@google.com> Improvements to TextInputLayout

Also documented the OnFocusChangeListener behavior.

BUG: 21546826

Change-Id: I23b2b59b1d56763d138075a1852ba1e9cb7478b0
ollapsingTextHelper.java
ollapsingToolbarLayout.java
extInputLayout.java
9b6192b8402b2609060a20c72670d8260bd9c0c2 09-Jun-2015 Yuichi Araki <yaraki@google.com> Merge "NavigationView handles checked status" into lmp-mr1-ub-dev
6817ed030b32878564f12554e10d71246ee48a8f 09-Jun-2015 Yuichi Araki <yaraki@google.com> am 9c1547f8: Merge "Fix NPE in NavigationView" into lmp-mr1-ub-dev

* commit '9c1547f89fff53eb2fc20f5726e9cfbf7655fc74':
Fix NPE in NavigationView
762955b388526935ac493c67214ab096b7e88a04 09-Jun-2015 Yuichi Araki <yaraki@google.com> am af016cf1: Merge "Fix for menu XML ending with a sub menu" into lmp-mr1-ub-dev

* commit 'af016cf1032692621ecc05db68b75fc5c33ab659':
Fix for menu XML ending with a sub menu
d9d3addb4628537f68348d40346765b7f407cf79 08-Jun-2015 Chris Banes <chrisbanes@google.com> Fix CollapsingToolbarLayout not invalidating text

BUG: 21693642
Change-Id: Idc0832398c98fb843dfc3db795fa916e2c2d74c6
ollapsingTextHelper.java
88cccf6c76b6a1c2d67152c2de5599f3c8301b18 08-Jun-2015 Chris Banes <chrisbanes@google.com> Fix NoSuchMethodError in CoL on Eclair 2.1

Change-Id: I2388b7b41d0d573fa133c4aa70337d161c27ce57
oordinatorLayout.java
f9b8005bf607feddd9b482f817bd68c46739e4f1 08-Jun-2015 Yuichi Araki <yaraki@google.com> NavigationView handles checked status

NavigationView now handles checked status in its menu. This was
necessary to handle checked status for items in sub menu. Also, it now
forces only one item to be marked as checked among all the checkable
items in the menu. Menu groups can be marked as checkedBehavior="single"
or ="all", but all the items behave the same in either cases.

Change-Id: Ia2e1a39475175b5ada8ec84273a39b995ec414c3
avigationView.java
3e51099621857da0572458c8097b799795ea9a06 08-Jun-2015 Yuichi Araki <yaraki@google.com> Fix NPE in NavigationView

Change-Id: I64fe41e5d823cfa065e6003d17ff356297a4cd8d
avigationView.java
af016cf1032692621ecc05db68b75fc5c33ab659 08-Jun-2015 Yuichi Araki <yaraki@google.com> Merge "Fix for menu XML ending with a sub menu" into lmp-mr1-ub-dev
7afe341ea78b8621e65690cfe1049ab129b3879d 06-Jun-2015 Chris Banes <chrisbanes@google.com> am 6a93c2eb: Merge "Add typeface support to TextInputLayout" into lmp-mr1-ub-dev

* commit '6a93c2eb5ae27f175f71fa025db40660ef0faf69':
Add typeface support to TextInputLayout
f42357c2dd845b71dbad25ee020aa126b688421f 06-Jun-2015 Chris Banes <chrisbanes@google.com> am 26389612: Merge "Ensure TabLayout + ViewPager selected item are in sync" into lmp-mr1-ub-dev

* commit '26389612704e87706994079597ad4b66b9c249e3':
Ensure TabLayout + ViewPager selected item are in sync
55f3d29c12610da3574c4f488fbc3a1c7ca790f1 05-Jun-2015 Chris Banes <chrisbanes@google.com> Allow AppBarLayout to handle size changes

BUG: 21662657
Change-Id: Idcd7ef2b49aa9c0d4a19804f68e644d26c11aa33
ppBarLayout.java
388841ca2f07d0da9bbdc66c51abe789e05cf17b 05-Jun-2015 Chris Banes <chrisbanes@google.com> Add typeface support to TextInputLayout

BUG: 21652436

Change-Id: I008d72e2508f893e402336a8d87a81aaceb5ddbf
ollapsingTextHelper.java
extInputLayout.java
cc7a09fc0018e348027151daecf581b1d1b78f11 05-Jun-2015 Yuichi Araki <yaraki@google.com> Fix for menu XML ending with a sub menu

Bug: 21650306
Change-Id: I4ba4f1f2a04354416ce914914806cf5ec8acd0d4
avigationView.java
8eb2762759cf51ffbe8544f3796a6c58571f1e33 05-Jun-2015 Chris Banes <chrisbanes@google.com> am 5a86f7c8: Merge "Make the FAB appear visually correct pre-L" into lmp-mr1-ub-dev

* commit '5a86f7c87b80dd6146335305aa7ce8027d67408e':
Make the FAB appear visually correct pre-L
26389612704e87706994079597ad4b66b9c249e3 04-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Ensure TabLayout + ViewPager selected item are in sync" into lmp-mr1-ub-dev
5a86f7c87b80dd6146335305aa7ce8027d67408e 03-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Make the FAB appear visually correct pre-L" into lmp-mr1-ub-dev
c179c5f7bbbf5ea934d3e5943113bbf31fe3e4d1 02-Jun-2015 Chris Banes <chrisbanes@google.com> am 613dfb42: Merge "Allow setting the Tab Indicator at runtime" into lmp-mr1-ub-dev

* commit '613dfb42db820c2c82de8a4e1ab99a9be67569f3':
Allow setting the Tab Indicator at runtime
613dfb42db820c2c82de8a4e1ab99a9be67569f3 02-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Allow setting the Tab Indicator at runtime" into lmp-mr1-ub-dev
84a51515c4b2d8b7b8dd619e158589c78048adf9 31-May-2015 Chris Banes <chrisbanes@google.com> Allow setting the Tab Indicator at runtime

BUG: 21538661

Change-Id: I296857a3ba445e40a10848de24c71e437b2c5998
abLayout.java
e882ef3492de3d2bb687b454e08b870b06d8f4e2 02-Jun-2015 Chris Banes <chrisbanes@google.com> Make the FAB appear visually correct pre-L

Caused by the compat shadow's internal padding. We
now offset the FAB to take account of the padding.

BUG: 21576753

Change-Id: Id0c0bf2c9a349f10474c0a869ab943bb69fce128
loatingActionButton.java
f833f72818f63332aaf56e0b0701e9b372f77d0b 02-Jun-2015 Chris Banes <chrisbanes@google.com> am c0b8bcbb: Merge "Add a Callback to Snackbar" into lmp-mr1-ub-dev

* commit 'c0b8bcbbd8d21bb6e80dc322240f17298044a810':
Add a Callback to Snackbar
88099e980603405174b7d608813d524aa3848098 02-Jun-2015 Chris Banes <chrisbanes@google.com> am 252b1765: Merge "Fix TextInputLayout laying out RTL text as LTR" into lmp-mr1-ub-dev

* commit '252b1765004f1df960867ff3640d2f48cb324e17':
Fix TextInputLayout laying out RTL text as LTR
c0b8bcbbd8d21bb6e80dc322240f17298044a810 02-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Add a Callback to Snackbar" into lmp-mr1-ub-dev
252b1765004f1df960867ff3640d2f48cb324e17 02-Jun-2015 Chris Banes <chrisbanes@google.com> Merge "Fix TextInputLayout laying out RTL text as LTR" into lmp-mr1-ub-dev
bfae5eb86f8c5e63b33b6d36073f2230599a716b 01-Jun-2015 Chris Banes <chrisbanes@google.com> Add a Callback to Snackbar

BUG: 21553485
Change-Id: I465ec53a7479979da0dbe464913658e1d1bf3b63
nackbar.java
5e25a58fa24e5e8609972702376746b0baab9e38 01-Jun-2015 Chris Banes <chrisbanes@google.com> am a611711d: Take compound drawables into account for TextInputLayout

* commit 'a611711d69eaf8ba65af12118a96810fc17b4163':
Take compound drawables into account for TextInputLayout
a611711d69eaf8ba65af12118a96810fc17b4163 01-Jun-2015 Chris Banes <chrisbanes@google.com> Take compound drawables into account for TextInputLayout

BUG: 21549903
Change-Id: I932f535a2af700d08190ebfc8c4cf16d1d9e7c8a
extInputLayout.java
fef6dbf449d6e2992872a725170c5fcb4aa16975 31-May-2015 Chris Banes <chrisbanes@google.com> Fix TextInputLayout laying out RTL text as LTR

BUG: 21539571
Change-Id: Ica90dd07dc5cb1e6893740350e429ca5e447a8d7
ollapsingTextHelper.java
112f648090b48c0d00a51983baf148dbbc800abb 31-May-2015 Chris Banes <chrisbanes@google.com> Ensure TabLayout + ViewPager selected item are in sync

BUG: 21539668
Change-Id: I3d472ca8b151af8b8cf56a0e9a9cbcad38bced97
abLayout.java
86385d7bfd33614bccc4350941f9f0747c0f7893 31-May-2015 Chris Banes <chrisbanes@google.com> am b08e15be: Merge "Fix custom Snackbar durations not working" into lmp-mr1-ub-dev

* commit 'b08e15be8c888234a661b28b9c4031f52b369349':
Fix custom Snackbar durations not working
58df9e664892b3a8dd6193f946e9fc9b24c617ba 31-May-2015 Chris Banes <chrisbanes@google.com> am 47f4c78d: Merge "Make sure we always use the provide Tab text colors" into lmp-mr1-ub-dev

* commit '47f4c78d69986fe71d77f6afddeb7fde0265c197':
Make sure we always use the provide Tab text colors
b08e15be8c888234a661b28b9c4031f52b369349 31-May-2015 Chris Banes <chrisbanes@google.com> Merge "Fix custom Snackbar durations not working" into lmp-mr1-ub-dev
2361e349a59da4d3791e5d2a0d842a84dba91b41 31-May-2015 Chris Banes <chrisbanes@google.com> Fix custom Snackbar durations not working

BUG: 21539150
Change-Id: Ib4e2658efeb00803a2571db1408f094bae6f1f3e
nackbarManager.java
82042243a3592851e3ce5aefaa2b784210499ac8 30-May-2015 Chris Banes <chrisbanes@google.com> Make sure we always use the provide Tab text colors

BUG: 21527183
Change-Id: I36375ad94777de19828c5e2f6b5af59e57e541ac
abLayout.java
5b5ca2a4816f62a4e0a2f9988ffbcaba303bbe71 27-May-2015 Chris Banes <chrisbanes@google.com> am a59da11d: Improve the offsetTopAndBottom workaround

* commit 'a59da11da29af8bc9d8e07a21d68e04d6de3df92':
Improve the offsetTopAndBottom workaround
a59da11da29af8bc9d8e07a21d68e04d6de3df92 25-May-2015 Chris Banes <chrisbanes@google.com> Improve the offsetTopAndBottom workaround

BUG: 21413554

Change-Id: Ia0f624ca05f80e3c2949789b448820413ce2e99e
iewOffsetHelper.java
ed048c6c54c76124f3665237fc05bf478d9e5410 26-May-2015 Chris Banes <chrisbanes@google.com> am 790288a0: Merge "Only start nested scrolling if the view is large enough" into lmp-mr1-ub-dev

* commit '790288a03c76cafe367eeb4f5924b1f427e68bed':
Only start nested scrolling if the view is large enough
790288a03c76cafe367eeb4f5924b1f427e68bed 26-May-2015 Chris Banes <chrisbanes@google.com> Merge "Only start nested scrolling if the view is large enough" into lmp-mr1-ub-dev
5df6c6feb859a89a7d9926578b8f9fd62071e584 25-May-2015 Chris Banes <chrisbanes@google.com> am ecd4b988: Fix AppBarLayout not scrolling fully

* commit 'ecd4b988781330e346244be73dca39cd04c71391':
Fix AppBarLayout not scrolling fully
ecd4b988781330e346244be73dca39cd04c71391 25-May-2015 Chris Banes <chrisbanes@google.com> Fix AppBarLayout not scrolling fully

Change-Id: If3804c5339b8eca53ab6d3c3572e841bde0eb06d
iewOffsetHelper.java
624e90dc9b2608718f71876b62f1755c08f30af6 24-May-2015 Chris Banes <chrisbanes@google.com> am b1a51676: Fix offset calculation math

* commit 'b1a51676163f8db131e6d97970459346735253be':
Fix offset calculation math
b1a51676163f8db131e6d97970459346735253be 24-May-2015 Chris Banes <chrisbanes@google.com> Fix offset calculation math

Also removed fixed the invalidation issues to
remove the translationX/Y path

BUG: 21413554
Change-Id: I4fb5a23d189779476f4f694e902415a1455da62b
iewOffsetHelper.java
f57cd2fd5059c43d77bdfec57edfd5a217533103 24-May-2015 Chris Banes <chrisbanes@google.com> Only start nested scrolling if the view is large enough

This CL now checks to see if a view is large enough
before accepting a nested scroll. It also fixes the
positioning of a view in this case.

BUG: 21413205
Change-Id: Ia80c04256214bb89257cbfbce4889232140e5de1
ppBarLayout.java
80eeb54e4439bed49cd23b49ce6e07ddbd4479b6 24-May-2015 Chris Banes <chrisbanes@google.com> am 3fbc0c0f: Merge "More TabLayout fixes" into lmp-mr1-ub-dev

* commit '3fbc0c0fc00769a516ff4b0a4311db228b0b8498':
More TabLayout fixes
3fbc0c0fc00769a516ff4b0a4311db228b0b8498 24-May-2015 Chris Banes <chrisbanes@google.com> Merge "More TabLayout fixes" into lmp-mr1-ub-dev
be84b3b731fbb4f905a5631ba2ca63b1120f5469 22-May-2015 Chris Banes <chrisbanes@google.com> am c1ce4f6c: Fix non-enterAlways scrolling

* commit 'c1ce4f6cf4d99d6856c4259bf1bb1cb56f604737':
Fix non-enterAlways scrolling
c1ce4f6cf4d99d6856c4259bf1bb1cb56f604737 22-May-2015 Chris Banes <chrisbanes@google.com> Fix non-enterAlways scrolling

Was broken due to iterating through the children in the
wrong order. When scrolling down we need to go 0-max.

Change-Id: I805073e7ddedfcd19524b8562bb3091e6023c124
ppBarLayout.java
bd085f17cd76603445c1befc020495f7d9dd00d6 22-May-2015 Chris Banes <chrisbanes@google.com> More TabLayout fixes

- Respect top/bottom padding
- Fix jank caused by checking wrong animator
- Only proxy ViewPager page selected events when
it isn't being dragged (or settling).
- Restore selection properly after a nuke +
layout.

BUG: 21373757
BUG: 21375601

Change-Id: If897051ae15a151bf11df0b4dd50a87086c5ec88
abLayout.java
e3fd421e3017c9eea10ad975f493e42905a8bb90 22-May-2015 Chris Banes <chrisbanes@google.com> am 902c8ca6: Merge "Fix flickering with TabLayout + ViewPager" into lmp-mr1-ub-dev

* commit '902c8ca6506926a6d4561ba83d017b4441260e99':
Fix flickering with TabLayout + ViewPager
a4d0ea328b382109435bcfea115d9c41e750af19 21-May-2015 Chris Banes <chrisbanes@google.com> Fix flickering with TabLayout + ViewPager

BUG: 21359788
Change-Id: I4baa7104c6f1df90a5cbf5d6e858261dd9943bb6
abLayout.java
68c1d88f4288d2f6c7159ad9288df12b622d6e5c 20-May-2015 Adam Powell <adamp@google.com> am d09e24f8: Fix CoordinatorLayout anchor gravity handling

* commit 'd09e24f8d4c10e72dee0e435d3289ddd10223aa0':
Fix CoordinatorLayout anchor gravity handling
d09e24f8d4c10e72dee0e435d3289ddd10223aa0 19-May-2015 Adam Powell <adamp@google.com> Fix CoordinatorLayout anchor gravity handling

CoordinatorLayout would position anchored child views in the wrong place
when using some layout_gravity/layout_anchorGravity settings. Clarify
the responsibility of each gravity handling step - anchor vs. child.

Bug 21282731

Change-Id: I053c6c40802da19e5a7002b6b853413a4d2ee0cc
oordinatorLayout.java
e023adc97bd94950ddbb3bfc9ff1302f4016d46a 19-May-2015 Chris Banes <chrisbanes@google.com> am c0929c71: Merge "Some design lib doc improvements" into lmp-mr1-ub-dev

* commit 'c0929c716cf6402d6877e8998820b98bd012d171':
Some design lib doc improvements
c0929c716cf6402d6877e8998820b98bd012d171 19-May-2015 Chris Banes <chrisbanes@google.com> Merge "Some design lib doc improvements" into lmp-mr1-ub-dev
9fb154338a62edc2c57dc036895199d6f1769400 18-May-2015 Chris Banes <chrisbanes@google.com> Some design lib doc improvements

Change-Id: I0207a11d830d180defacd11c777e6768363cf31b
ppBarLayout.java
loatingActionButton.java
abLayout.java
extInputLayout.java
a42ff812c609b601dc5b6ceb0aa8a29a8b602f46 18-May-2015 Chris Banes <chrisbanes@google.com> am 4112c616: Allow setting of a Snackbar\'s action text color

* commit '4112c61626e5a6107c5874c28829b76bb9fc9f17':
Allow setting of a Snackbar's action text color
cc29b5d757e8127fda9ddde779aca777f6ceaced 18-May-2015 Chris Banes <chrisbanes@google.com> am 302adaa3: Merge "Improve FloatingActionButton border implementation" into lmp-mr1-ub-dev

* commit '302adaa3df485d84e2696ab3aa480fa634828f6d':
Improve FloatingActionButton border implementation
4112c61626e5a6107c5874c28829b76bb9fc9f17 18-May-2015 Chris Banes <chrisbanes@google.com> Allow setting of a Snackbar's action text color

BUG: 21195688
Change-Id: Id5f2e69746b2c42e7ba7aabb1a8070083e2bd077
nackbar.java
80de0674c28a2bd9ade11f24a3b0e46ea83b6847 14-May-2015 Chris Banes <chrisbanes@google.com> Improve FloatingActionButton border implementation

The previous impl had overdraw issues as it draw a whole
oval behind another large opaque oval. This implementation
moves us to a custom Drawable which draw a stroke oval.

It also allows us to move to a custom LinearGradient shader
to more closely match UX's spec.

Change-Id: I93f2c3c444d0a23fd542f2a35ac1d43d4f699bd6
athUtils.java
421affab4e0d1c631f759186f8b2975933c9b5a5 13-May-2015 Chris Banes <chrisbanes@google.com> FloatingActionButton border

This CLs add functionality to add a circular bevel
like stroke around the FAB. Also tidied up the
DrawableWrapper tinting to make sure we invalidate
the tint correctly.

BUG: 21087747

Change-Id: I97e8309574986cdb256c4a9aa7d2c2d1f20d87b1
(cherry picked from commit cd78954a2b32d9c22686f12c194fac7e49566cf6)
loatingActionButton.java
cd78954a2b32d9c22686f12c194fac7e49566cf6 13-May-2015 Chris Banes <chrisbanes@google.com> FloatingActionButton border DO NOT MERGE

This CLs add functionality to add a circular bevel
like stroke around the FAB. Also tidied up the
DrawableWrapper tinting to make sure we invalidate
the tint correctly.

BUG: 21087747

Change-Id: I97e8309574986cdb256c4a9aa7d2c2d1f20d87b1
loatingActionButton.java
2e0019c6e90d046ea2a69fdfabae1e83469931a5 12-May-2015 Chris Banes <chrisbanes@google.com> am e52e1698: Allow CoordinatorLayout Behaviors to save state

* commit 'e52e16988e2500e20052ddd70920f950f4eb4f79':
Allow CoordinatorLayout Behaviors to save state
e52e16988e2500e20052ddd70920f950f4eb4f79 11-May-2015 Chris Banes <chrisbanes@google.com> Allow CoordinatorLayout Behaviors to save state

AppBarLayout is the first customer to make sure that
they restore correctly.

BUG: 20993010

Change-Id: Iad740edbba80abd18b44a0fa69d22fe7f1983677
ppBarLayout.java
oordinatorLayout.java
iewOffsetBehavior.java
e3b8952166d9fbc1965b5fc7a1e8033d01181c5e 12-May-2015 Chris Banes <chrisbanes@google.com> am f42b51c8: Merge "Some fixes for CollapsingToolbarLayout" into lmp-mr1-ub-dev

* commit 'f42b51c8493c508d8d2df1e6f0a11a28d0e3672e':
Some fixes for CollapsingToolbarLayout
f42b51c8493c508d8d2df1e6f0a11a28d0e3672e 12-May-2015 Chris Banes <chrisbanes@google.com> Merge "Some fixes for CollapsingToolbarLayout" into lmp-mr1-ub-dev
66f4aae4b2fcd7e82810bd798088ec690e67924d 11-May-2015 Chris Banes <chrisbanes@google.com> am 44dc3d86: Fix crashes on Gingerbread devices

* commit '44dc3d86d8fa6544d49b2e14f89c9b1f49639dbd':
Fix crashes on Gingerbread devices
44dc3d86d8fa6544d49b2e14f89c9b1f49639dbd 11-May-2015 Chris Banes <chrisbanes@google.com> Fix crashes on Gingerbread devices

Caused by using a LinearLayout constructor and view
method that doesn't exist on GB.

Change-Id: Ibc4f8c09adaf5b7001530bed87027be978b546cf
extInputLayout.java
79208cc336926148978ccb49861f986fada745e0 11-May-2015 Chris Banes <chrisbanes@google.com> Some fixes for CollapsingToolbarLayout

- Allow setting of the primary Toolbar from it's
id
- Fixes around insetting of views
- Added a missing margin dimension

BUG: 21012285

Change-Id: Id907f252f12157795234280b0389a4778c595d67
ollapsingToolbarLayout.java
aa1657a871b457f80209bbf452bf58fe34e226d7 09-May-2015 Chris Banes <chrisbanes@google.com> am 74563660: Tidy up TabLayout + ViewPager integration

* commit '745636602593f0b8ae508eb10266a3c7c675e746':
Tidy up TabLayout + ViewPager integration
745636602593f0b8ae508eb10266a3c7c675e746 07-May-2015 Chris Banes <chrisbanes@google.com> Tidy up TabLayout + ViewPager integration

Also added the ability to add/remove OnPageChangeListeners
to ViewPager.

BUG: 20897298
Change-Id: I51ec2117a1f49aab15f7ed1a30960330fa00c317
abLayout.java
3faf61d1945577dffd78e4c71a0853ba03d7ac6c 08-May-2015 Dan Albert <danalbert@google.com> am 9cf7f2d6: Merge "Revert "Tidy up TabLayout + ViewPager integration"" into lmp-mr1-ub-dev

* commit '9cf7f2d655d042f25a91fbae49596d078c1d45d8':
Revert "Tidy up TabLayout + ViewPager integration"
9cf7f2d655d042f25a91fbae49596d078c1d45d8 08-May-2015 Dan Albert <danalbert@google.com> Merge "Revert "Tidy up TabLayout + ViewPager integration"" into lmp-mr1-ub-dev
92a2d7b7f62472a768e62f66681c0e1841cd57ba 08-May-2015 Dan Albert <danalbert@google.com> Revert "Tidy up TabLayout + ViewPager integration"

Build is still broken in other projects, so reverting for now.

This reverts commit 40f27ea67cb42ab88020275f63cc600fcc42adcb.

Change-Id: I94a6335d10390697e81cba177c9e059b616fedf9
abLayout.java
028d1af69b6f6f8a5277681bdd9205eb236f0c34 08-May-2015 Chris Banes <chrisbanes@google.com> am 5f4bb82d: Merge "Tidy up TabLayout + ViewPager integration" into lmp-mr1-ub-dev

* commit '5f4bb82d07ae3de712e56d38b9b31b62b46b85d0':
Tidy up TabLayout + ViewPager integration
5f4bb82d07ae3de712e56d38b9b31b62b46b85d0 08-May-2015 Chris Banes <chrisbanes@google.com> Merge "Tidy up TabLayout + ViewPager integration" into lmp-mr1-ub-dev
40f27ea67cb42ab88020275f63cc600fcc42adcb 07-May-2015 Chris Banes <chrisbanes@google.com> Tidy up TabLayout + ViewPager integration

Also added the ability to add/remove OnPageChangeListeners
to ViewPager.

BUG: 20897298

Change-Id: I7d944d2ebcd169c5c084000bd17f20da5c60e7ea
abLayout.java
75284fffafacd32f4d178020050589f9e70e5ed9 01-May-2015 Chris Banes <chrisbanes@google.com> Window inset support for CoL + AppBarLayout

CoL now handles and consumes all window insets given
to it on L+. AppBarLayout and it's Behaviors have special
handling to ensure it's view are measured correctly.
CollapsingToolbarLayout has handling to ensure that view are
not laid out within the insets.

BUG: 20652400

Change-Id: Ifa8677aa8abeaf443c53bbe6b53e29ff1859b18d
ppBarLayout.java
ollapsingToolbarLayout.java
oordinatorLayout.java
6ba61c5c79fe025036593c9daf79cb65299bb0b6 01-May-2015 Chris Banes <chrisbanes@google.com> Window inset support for CoL + AppBarLayout DO NOT MERGE

CoL now handles and consumes all window insets given
to it on L+. AppBarLayout and it's Behaviors have special
handling to ensure it's view are measured correctly.
CollapsingToolbarLayout has handling to ensure that view are
not laid out within the insets.

BUG: 20652400

Change-Id: Ifa8677aa8abeaf443c53bbe6b53e29ff1859b18d
ppBarLayout.java
ollapsingToolbarLayout.java
oordinatorLayout.java
81666c3df9543bbeb320474c57c89b8f865328a1 06-May-2015 Chris Banes <chrisbanes@google.com> am 60d5509d: Merge "Tidy up styling and tinting in NavigationView" into lmp-mr1-ub-dev

* commit '60d5509d4ce055532645a889d29f4201e6bc4512':
Tidy up styling and tinting in NavigationView
878384f1e6de7bd9196958224ced1ecfca3be6a7 05-May-2015 Chris Banes <chrisbanes@google.com> Make constructor accessible before calling - AppCompat + Design

ART fixed newInstance method's accessibility checks which means if
provided class/method is not accessible, we will crash.

This CL makes AppCompat + design lib call setAccessible(true) before
calling the constructor to avoid any issues after new ART is released.

Bug: 20824258
Change-Id: I2001bd7fc80713c7effe57bec2eff8622cceb0cc
oordinatorLayout.java
e85c8ed1ff988173007b30fb394ba37025e37126 04-May-2015 Chris Banes <chrisbanes@google.com> am 5023ec97: Merge "Revert "Fix tab blinking while fling"" into lmp-mr1-ub-dev

* commit '5023ec9783e8677de949d2f925a998ff9643b4f2':
Revert "Fix tab blinking while fling"
a63940ca14cd3ad9620e94f709930bb968525c57 01-May-2015 Chris Banes <chrisbanes@google.com> Tidy up styling and tinting in NavigationView

Currently there is no way to set a different tint/color
for the text and icon. This icon splits them up and tidies
up some of the internal state.

Change-Id: I5d81f19dddf2df6cfc983fc2a60b2353a780d522
avigationView.java
5023ec9783e8677de949d2f925a998ff9643b4f2 01-May-2015 Chris Banes <chrisbanes@google.com> Merge "Revert "Fix tab blinking while fling"" into lmp-mr1-ub-dev
ac571281c28a7bcf2937acac3bc47bf224178f0f 01-May-2015 Chris Banes <chrisbanes@google.com> Revert "Fix tab blinking while fling"

This reverts commit 81fdc55233cee968c50c1d24e14fbd26b1016648.

Change-Id: I3be7a0ef90e75fcb39c27741ce2d2de1e3d72ea9
abLayout.java
f564ee15a1d87526f7bdc43fa797654626621bf8 01-May-2015 Chris Banes <chrisbanes@google.com> am 72524118: Merge "Snackbar fixes" into lmp-mr1-ub-dev

* commit '72524118c439feab763ae8e1434f709d1d903afe':
Snackbar fixes
0a1e4545dc6bb9753c33afdd4940b7a88057bb0b 01-May-2015 Chris Banes <chrisbanes@google.com> am 9f97e0cc: Merge "Add app:headerLayout attribute to NavigationView" into lmp-mr1-ub-dev

* commit '9f97e0cc142eb7c3b5a630b90a430f428ae02b4a':
Add app:headerLayout attribute to NavigationView
209a3f062a9e93e2bfbe76d23bcce487f97caa7e 01-May-2015 Chris Banes <chrisbanes@google.com> Merge commit 'e45b270f' into manualmerge

Change-Id: I88e3d8644666168a0eb69cce569d96ae0b724f09
72524118c439feab763ae8e1434f709d1d903afe 30-Apr-2015 Chris Banes <chrisbanes@google.com> Merge "Snackbar fixes" into lmp-mr1-ub-dev
9f97e0cc142eb7c3b5a630b90a430f428ae02b4a 30-Apr-2015 Chris Banes <chrisbanes@google.com> Merge "Add app:headerLayout attribute to NavigationView" into lmp-mr1-ub-dev
45cbb1d10c865209f373a148556191700d8ea345 29-Apr-2015 Chris Banes <chrisbanes@google.com> TabLayout text color handling improvements

We now accept ColorStateLists via app:tabTextColor.

Change-Id: If234a61983b1fd6ddc8509092f39522b63aecb32
abLayout.java
4347bb2377171cee0de932bcdf5a7eb795cda616 29-Apr-2015 Alan Jeon <skyisle@gmail.com> am 81fdc552: Fix tab blinking while fling

* commit '81fdc55233cee968c50c1d24e14fbd26b1016648':
Fix tab blinking while fling
81fdc55233cee968c50c1d24e14fbd26b1016648 29-Apr-2015 Alan Jeon <skyisle@gmail.com> Fix tab blinking while fling

When fling start, onPageSelected called and onPageScrolled called
subsequently. This CL fixes tab blinkig in this situation.

Change-Id: Ice6a8b43b8e5ddb0d9824e66d48124b1f3691d4a
Signed-off-by: Alan Jeon <skyisle@gmail.com>
abLayout.java
cce43873726b7e2e827d2d9ce7a764b5b9fe2315 29-Apr-2015 Chris Banes <chrisbanes@google.com> am e1e5fb58: Merge "Fix design lib\'s attribute doc references" into lmp-mr1-ub-dev

* commit 'e1e5fb58045a2d16dcb09468d639a7c2d879b103':
Fix design lib's attribute doc references
0cf8ecaeccbd07b5259927569eaf79e9a275d34f 29-Apr-2015 Chris Banes <chrisbanes@google.com> Add app:headerLayout attribute to NavigationView

BUG: 20654538
Change-Id: I38a299b514cfcdc3092273fec58d1134b187a928
avigationView.java
149689d3a0b4165577470d7152112674d1d7f87c 28-Apr-2015 Chris Banes <chrisbanes@google.com> Fix design lib's attribute doc references

BUG: 20524332
Change-Id: I6dece9ec425acb3305efd0800d2f5d4f15d0aad2
ppBarLayout.java
abLayout.java
extInputLayout.java
c482f89070ee5032081e394f77a9a1e63c3cd7a8 18-Apr-2015 Chris Banes <chrisbanes@google.com> Snackbar fixes

- Fix possible memory leak
- Crawl up the view hierarcy to find a parent
Allows a Snackbar to bubble up to a root CoL if
it exists, otherwise we just use the content view

Change-Id: I4e17a7522835366047824fa30844748062c8e965
nackbar.java
nackbarManager.java
437af5a85386de8a75ac68e19db1b00e8e05eb24 23-Apr-2015 Chris Banes <chrisbanes@google.com> am d70e8e02: Merge "Use the internal ValueAnimatorCompat in other widgets" into lmp-mr1-ub-dev

* commit 'd70e8e024a94ca0f4c3a1e0ce8a456773393a071':
Use the internal ValueAnimatorCompat in other widgets
d70e8e024a94ca0f4c3a1e0ce8a456773393a071 23-Apr-2015 Chris Banes <chrisbanes@google.com> Merge "Use the internal ValueAnimatorCompat in other widgets" into lmp-mr1-ub-dev
c2c6d9ecfd456993b63ae1aef13fd7ddcd5ab249 22-Apr-2015 Yuichi Araki <yaraki@google.com> am 86568f1f: Content description for tabs in TabLayout

* commit '86568f1f241c4e9a07383cda799b96c7880c5082':
Content description for tabs in TabLayout
86568f1f241c4e9a07383cda799b96c7880c5082 22-Apr-2015 Yuichi Araki <yaraki@google.com> Content description for tabs in TabLayout

A specified content description is used for TextView as well as
ImageView (icon) of a tab.

Change-Id: Ieabea34681f1d6341799e8221629f94aa9cebf1b
abLayout.java
f44e88b81821e61a65886cc7027617ca8995070b 21-Apr-2015 Chris Banes <chrisbanes@google.com> Use the internal ValueAnimatorCompat in other widgets

Allows us to move away from our hack with view animations.

Change-Id: I7d38bf26ce2715d681c75b1a22efeef245269841
ollapsingToolbarLayout.java
abLayout.java
extInputLayout.java
0afaaf631e3c992dc4af9d628444f1eee06758a8 21-Apr-2015 Chris Banes <chrisbanes@google.com> am a196f6c5: Merge "AppBarLayout improvements" into lmp-mr1-ub-dev

* commit 'a196f6c585e08dd962cb14b659790931a6e92e40':
AppBarLayout improvements
a196f6c585e08dd962cb14b659790931a6e92e40 21-Apr-2015 Chris Banes <chrisbanes@google.com> Merge "AppBarLayout improvements" into lmp-mr1-ub-dev
631f64ec9c6255f38a7f746d7949b6a537c1180f 10-Apr-2015 Chris Banes <chrisbanes@google.com> AppBarLayout improvements

- Tidy up listener implementation
- Nested fling support
- Animate FAB pre-v11
- Added internal ValueAnimatorCompat

Change-Id: I3ee6630177015f2bccbf29e5316ef8afe557c5a8
ppBarLayout.java
ollapsingToolbarLayout.java
loatingActionButton.java
iewUtils.java
ad155420a2eb9f341c8ec2f0d5b125375c06a5d9 21-Apr-2015 Chris Banes <chrisbanes@google.com> am 1ea4edc4: am c6ff5383: am f0f36370: Merge "Re-measure tab width after max width is decided"

* commit '1ea4edc4c84bec0a8805ff5e978d36f1401272b8':
Re-measure tab width after max width is decided
1ea4edc4c84bec0a8805ff5e978d36f1401272b8 21-Apr-2015 Chris Banes <chrisbanes@google.com> am c6ff5383: am f0f36370: Merge "Re-measure tab width after max width is decided"

* commit 'c6ff5383d5db2613f0c7325825434300cc2697cc':
Re-measure tab width after max width is decided
c6ff5383d5db2613f0c7325825434300cc2697cc 21-Apr-2015 Chris Banes <chrisbanes@google.com> am f0f36370: Merge "Re-measure tab width after max width is decided"

* commit 'f0f363707e53c83688ee66a029885685de398dd0':
Re-measure tab width after max width is decided
7c71281dc4879e7889c65283aabaeed68521fb14 21-Apr-2015 Alan Jeon <skyisle@gmail.com> Re-measure tab width after max width is decided

Tabview's onMeasure can be called before mTabMaxWidth is decided.

Change-Id: I063f31232041bc6d8447756df9689f824a199019
Signed-off-by: Alan Jeon <skyisle@gmail.com>
abLayout.java
1f054febf6dc91e7c8d9f61500e498af8582f8b4 17-Apr-2015 Chris Banes <chrisbanes@google.com> am de373c43: am 1ef42f18: am 29611577: Merge "FAB: Fix NPE with XML attribute, set clickable by default"

* commit 'de373c43e108bc24b46c947c7a4da26774cdb874':
FAB: Fix NPE with XML attribute, set clickable by default
de373c43e108bc24b46c947c7a4da26774cdb874 17-Apr-2015 Chris Banes <chrisbanes@google.com> am 1ef42f18: am 29611577: Merge "FAB: Fix NPE with XML attribute, set clickable by default"

* commit '1ef42f184c4e9841ebce898a45a7bb7ccd5b757a':
FAB: Fix NPE with XML attribute, set clickable by default
1ef42f184c4e9841ebce898a45a7bb7ccd5b757a 17-Apr-2015 Chris Banes <chrisbanes@google.com> am 29611577: Merge "FAB: Fix NPE with XML attribute, set clickable by default"

* commit '29611577eb234da4c8c73bcc0c4357978ff25bb8':
FAB: Fix NPE with XML attribute, set clickable by default
d039e3555848f678a2e5363e99026df322d02044 16-Apr-2015 Taeho Kim <jyte82@gmail.com> FAB: Fix NPE with XML attribute, set clickable by default

Fixed NPE when the widget has declared in XML layout with
android:background attribute.

Also, set widget clickable by default so that this widget can
act as a button.

Change-Id: I40124653a74c3593c0a44cce580f72a693b04805
Signed-off-by: Taeho Kim <jyte82@gmail.com>
loatingActionButton.java
8b79edbc66759ce2af89ae8d4f1437393729f735 13-Apr-2015 Chris Banes <chrisbanes@google.com> am 81520564: Set default background for AppBarLayout

* commit '81520564f3dd783136e025174021ba4eabd6ff3c':
Set default background for AppBarLayout
81520564f3dd783136e025174021ba4eabd6ff3c 13-Apr-2015 Chris Banes <chrisbanes@google.com> Set default background for AppBarLayout

Change-Id: I8e5809a3d7dedca82fdeaad2e759ba127069e7df
ppBarLayout.java
d836732a8800bb6eebf107696cff44ced8f14afb 13-Apr-2015 Chris Banes <chrisbanes@google.com> am 61c2d94f: Merge "AppBarLayout improvements" into lmp-mr1-ub-dev

* commit '61c2d94faeb79a7a96df402f201a226ed740694a':
AppBarLayout improvements
50dfc33a565c4aefe6d5e844c93aa24a74cb80b3 09-Apr-2015 Chris Banes <chrisbanes@google.com> AppBarLayout improvements

- De-jank the scrim animation
- Add elevation support
- Tidy up API
- Fix 'quick scroll' functionality

Change-Id: If9b494a7626e94ad8a4f034f65ab07bd34cf2871
ppBarLayout.java
ollapsingToolbarLayout.java
iewUtils.java
c005695ca3e01efb3c3486f5cb6bf1e7fb21995c 09-Apr-2015 Chris Banes <chrisbanes@google.com> resolved conflicts for merge of 73a0c3c7 to master

Change-Id: I1652150b1499db455f1eee8d8743d2f7f7bb6fcc
a6a508b2296730ca6954aaebcca52a9962a5cb55 11-Mar-2015 Chris Banes <chrisbanes@google.com> AppBarLayout

There is still a few things missing for this, such as elevation
and fling support. I'll add these in a later CL.

Change-Id: Ie6d6d24a39a21bcd640f09c9da07ec2f6c1f4bb4
ppBarLayout.java
ollapsingTextHelper.java
ollapsingToolbarLayout.java
oordinatorLayout.java
loatingActionButton.java
athUtils.java
iewGroupUtils.java
iewOffsetBehavior.java
iewOffsetHelper.java
de2325c02dd92b683db1ab3798353452c1a4a68a 27-Mar-2015 Chris Banes <chrisbanes@google.com> am fb4d5402: Merge "Add app:menu attribute to NavigationView" into lmp-mr1-ub-dev

* commit 'fb4d54028db8f328d98edf641654e8e7a83fa89e':
Add app:menu attribute to NavigationView
3a2c9c408e240e761b043139c5d228d3ad93f6c2 26-Mar-2015 Chris Banes <chrisbanes@google.com> Add app:menu attribute to NavigationView

Also refactored some of the navigation view internals.

BUG: 19938713
Change-Id: I046761c2c41490fd28b984c035672add77ea9c7a
avigationView.java
nackbar.java
ace080b41ebbfee6cdc0445aa48bfa1f84e27478 18-Mar-2015 Adam Powell <adamp@google.com> am 4f2b30f4: am 0995df61: am 7beb7d75: Merge "CoordinatorLayout bugfixes" into lmp-mr1-ub-dev

* commit '4f2b30f423484e3a5e6abc293f5899cffd82f34b':
CoordinatorLayout bugfixes
42058bc54bdb89b9c9429bf6cbd3260787cf0523 18-Mar-2015 Adam Powell <adamp@google.com> CoordinatorLayout bugfixes

* Make sure subclasses use a DefaultBehavior from a superclass if present

* Fix a bug in calculating child rects for anchoring views

Change-Id: I0083d5196f871d22024113d56f56c7b8d9b90845
oordinatorLayout.java
65ffbe2a9aad39871ca5a3c85db07be05ea3fc03 13-Mar-2015 Chris Banes <chrisbanes@google.com> am 911970bb: am 51c19d26: am b7f9224b: Snackbar

* commit '911970bb8a1337d240e1f87e8c9d969bb99cea90':
Snackbar
b7f9224b1495db47eb8fd813b5912250e900770a 09-Jan-2015 Chris Banes <chrisbanes@google.com> Snackbar

Also added a new default swipe-to-dismiss behavior
and hooked it up. Also hooked up the Snackbar
to the Floating Action Buttons.

Change-Id: I717d4db5d34b6c17a2afabe5a3bc2c79fcee4233
oordinatorLayout.java
loatingActionButton.java
nackbar.java
nackbarManager.java
wipeDismissBehavior.java
abLayout.java
82696f6b1bdb6130677da14e6cdaf9383ddb4cf0 13-Mar-2015 Adam Powell <adamp@google.com> am f39722c9: am a440b195: am 5cb37807: Nested scrolling support for CoordinatorLayout and behaviors

* commit 'f39722c9f529b01ddaa54a6f41d011cd091ac657':
Nested scrolling support for CoordinatorLayout and behaviors
809f652c46ec74ffea3505725e577d680a5f47ab 13-Mar-2015 Chris Banes <chrisbanes@google.com> am d972c3ba: am d421b2b3: am f4e0b1dd: Merge "TextInputLayout - a wrapper around EditText" into lmp-mr1-ub-dev

* commit 'd972c3ba1979b8d3710f537de162c362fde0ea30':
TextInputLayout - a wrapper around EditText
5efe77816a560d9f33a840d4bb3b8a6cbddce49b 13-Mar-2015 Chris Banes <chrisbanes@google.com> am 47599515: am 9f724898: am ccfefa26: Don\'t update selected state as we settle from a scroll

* commit '475995151321ba510e535477011294e0a44e4d74':
Don't update selected state as we settle from a scroll
5cb378077ed5c64d35c1972c5fc84ee11ce31d07 10-Mar-2015 Adam Powell <adamp@google.com> Nested scrolling support for CoordinatorLayout and behaviors

Add support for nested scrolling to CoordinatorLayout behaviors. A
behavior can elect to handle nested scrolling for an arbitrarily
nested child. This allows other elements in the CoordinatorLayout to
respond to scrolling events from other containers deeper in the
hierarchy, for example by scrolling a toolbar off of the top of the
screen as a user scrolls.

Change-Id: I4c2d0e24d8034e2d9662a025ef31d3976f880868
oordinatorLayout.java
f4e0b1dddb77f8be3e61529fbaeb60655b539121 12-Mar-2015 Chris Banes <chrisbanes@google.com> Merge "TextInputLayout - a wrapper around EditText" into lmp-mr1-ub-dev
c5b63021dfda1dd155775a0b4845c5ca3c70b1b0 07-Feb-2015 Chris Banes <chrisbanes@google.com> TextInputLayout - a wrapper around EditText

Currently it implements the floating label
pattern and error message handling.

Change-Id: I65132d06e0eef71f671594c3bb39633e9f89a0da
ollapsingTextHelper.java
abLayout.java
extInputLayout.java
ccfefa26b718c232ec8e3095e05dab75b963f918 12-Mar-2015 Chris Banes <chrisbanes@google.com> Don't update selected state as we settle from a scroll

BUG: 19690332
Change-Id: Ifbd21f3c463d9b7d541e9aafacd06a605386c754
abLayout.java
70acb0c19be3831a2080e4f902324de16bfbf62e 04-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate support library with @ColorInt, @CallSuper, etc

Change-Id: Ifa25a628f89a07d3903cd71eb1c3639297fdf722
loatingActionButton.java
abLayout.java
ecc58a45a7bdd60d9b71e6c413b80a3f8cf85822 04-Mar-2015 Chris Banes <chrisbanes@google.com> Forward onTouchEvent to the View's Behaviour

Change-Id: I1700d7fdfc0991665c1583a4d43fb673ff9e7c01
oordinatorLayout.java
1c1b4c1afa6d9e1c876cd7dfc326c916d74f8554 26-Feb-2015 Chris Banes <chrisbanes@google.com> Merge "Rename and move all of the tint widgets" into lmp-mr1-ub-dev
a966c6cda6a3aa562fcfdb842b6c6b35bdd6a3dc 05-Feb-2015 Adam Powell <adamp@google.com> CoordinatorLayout

CoordinatorLayout is meant to be like a super-powered FrameLayout with
three major additional capabilities:

* Aligning views relative to other views arbitrarily nested within
other siblings (e.g. floating action buttons aligning to one edge of
a content pane)

* Aligning views relative to keylines defining horizontal positioning

* Defining pluggable interaction behaviors from layout xml

This patch implements the first two features and some of the initial
plumbing for the third.

Change-Id: I9c368d298cd35ff507ce5c8449a572fbfe9e5da7
oordinatorLayout.java
2cccf609662389d6a23dbc0711d5fb2e826e8c63 18-Feb-2015 Chris Banes <chrisbanes@google.com> Rename and move all of the tint widgets

They're public so shouldn't live in the internal package.
I've also stopped setting the setting the platform widget styles
(e.g. android:editTextStyle) and instead provide our own versions.
On Lollipop, we set these the default framework styles.

This fixes the times where the framework widgets are used but with
the untinted material style (e.g. Preferences).

BUG: 19407610
BUG: 19300319

Change-Id: I5dbdee240cbf28d4dc9b05f5c56b386d83b18df3
abLayout.java
14d064edb3e4a16a3b90a4a850560177bea1e60d 21-Feb-2015 Chris Banes <chrisbanes@google.com> Position the FAB visually correct pre-Lollipop

Pre-Lollipop we use padding so that the shadow has
enough space to be drawn. This CL adds logic to
offset our layout position so that we're positioned
correctly if we're on one of our parent's edges.

Change-Id: Ia7d2b4286958ac14358a2f6ee270196c00dff9d4
loatingActionButton.java
a5081dfb26b3664d97d5fe09b9b6a9c9667e0e9f 19-Feb-2015 Yuichi Araki <yaraki@google.com> Rename NavigationDrawerView to NavigationView

Change-Id: I639fbb4754add5d72f5baaca6728fc1348e256e0
avigationDrawerView.java
avigationView.java
d3ee2c7d22c0cb204ea9077fa9e64511266d6799 10-Feb-2015 Yuichi Araki <yaraki@google.com> Add selection feature to NavigationDrawerView.

The selected item can be marked by MenuItem#setChecked in
onNavigationItemSelected callback. This also takes MenuGroup into
account, that is, NavigationDrawerView highlights only one item in one
MenuGroup.

Also removes an unnecessary separator when a MenuGroup comes at the top
of the menu.

Change-Id: Ia7373bb8b64836de8a0db7552c5304165afa7d64
avigationDrawerView.java
01090f9556e7518c9ee206de6efe42de9003f6f5 05-Feb-2015 Yuichi Araki <yaraki@google.com> Implement features for NavigationDrawerView menu

- Header
- Visible/invisible items
- Enabled/disabled items
- Subheader using SubMenu
- Divide menu items by <group>
- Paddings and margins

Change-Id: I11dadf09725b4ec1d171403c3828faeb1b2c353b
avigationDrawerView.java
320c3e9fe1e100a5a7cda5dd217d2d1152d08b3f 28-Jan-2015 Chris Banes <chrisbanes@google.com> New TabLayout

Change-Id: If8a0720ab759b80bcfce7fad645e5b2a8d6e7c3a
abLayout.java
31a49efe2adb59e31611f6871895a3243d835127 30-Jan-2015 Yuichi Araki <yaraki@google.com> Initial implementation of NavigationDrawer

NavigationDrawer can be used inside DrawerLayout (support-v4) to provide
navigation menu. The menu can be populated by XML.

This is just a starting point. It still misses a lot of major features,
including marking current item, account switcher API, and pinning items.

This chnage also adds android.support.v4.widget.TextViewCompat with
setCompoundDrawablesRelative* methods.

This reverts commit e34464da9acbbf5891651addc0983d2d920f5be4.

Change-Id: I54cd343be90588cb1735189deb2100552240fde8
avigationDrawerView.java
e34464da9acbbf5891651addc0983d2d920f5be4 30-Jan-2015 Yuichi Araki <yaraki@google.com> Revert "Initial implementation of NavigationDrawer"

This reverts commit d4bea8be0627dac53fb5907f1f64dddf6147d55e.

Change-Id: Ic36cd74dbd8c0ba9b66fd65b096f60a1957011e9
avigationDrawerView.java
d4bea8be0627dac53fb5907f1f64dddf6147d55e 14-Jan-2015 Yuichi Araki <yaraki@google.com> Initial implementation of NavigationDrawer

NavigationDrawer can be used inside DrawerLayout (support-v4) to provide
navigation menu. The menu can be populated by XML.

This is just a starting point. It still misses a lot of major features,
including marking current item, account switcher API, and pinning items.

This chnage also adds android.support.v4.widget.TextViewCompat with
setCompoundDrawablesRelative* methods.

Change-Id: Ife8e39de2e2938d246713bb8cd486489be92cd6a
avigationDrawerView.java
9840efe3dbdc7026521da8576574c55120782f6c 06-Jan-2015 Chris Banes <chrisbanes@google.com> Floating Action Button

Includes a tweaked ShadowDrawableWrapper which supports
circular shapes. FloatingActionButton also support a
internal StateListAnimator for pre-Lollipop.

Change-Id: Ia88c28c2ab0da0779f1092495e3a417969cb1d2a
loatingActionButton.java