History log of /frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
e308f98b5b0f3f7517304f2a79c8fc3817520be1 18-Jan-2017 Chris Banes <chrisbanes@google.com> Fix scroll|enterAlways when we have a top inset
am: 116332176f

Change-Id: I4e82c1b062266066f0a1ab92686b38c1bdd28b5a
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
e22ae93397361d1bd5568fa51d82e2f7553712e1 08-Dec-2016 Alan Viverette <alanv@google.com> Remove unnecessary @TargetApi annotations

Bug: 33412815
Test: ./gradlew assemble
Change-Id: I0be3358fb97d6e637357c253f3f43f39355a643a
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
3d039d19e57ebf44185b9b58b9705a3b6af88971 09-Sep-2016 Chris Banes <chrisbanes@google.com> Fix title not showing when AppBarLayout initially collapsed
am: 824644fc70

Change-Id: I875b43e6cca48b7b0a31b9e3f7e2111e34e438d1
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
4cf1d92509224fab3ca69b419a005c536ab75c5c 13-Jul-2016 Chris Banes <chrisbanes@google.com> API review fixes

BUG: 30088092
BUG: 30088343

Change-Id: I3abc24bd5f7876ff12b42f13a579399123d50470
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
926cd28257536b1206934d69585a2dab100147d5 06-Apr-2016 Chris Banes <chrisbanes@google.com> Fix design support lib docs build

Change-Id: Ifde9b6a5a01699c802e6d6c541ac827e0a1c5332
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
75fd07ac981ba1f3e02ea4e67029b6c95088ff5f 04-Feb-2016 Chris Banes <chrisbanes@google.com> Merge "Fix window insets for AppBarLayouts in ViewPager" into mnc-ub-dev
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
dfb857dd12b359c0bdae11a23e039f286d54dc0a 18-Sep-2015 Chris Banes <chrisbanes@google.com> Fix ABL overlapTop behavior

Change-Id: I447bbc14c8d72a149abc0af2de2293573bff138a
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
0eb4e73f0dbc959094353ec01dbdf480a569c001 17-Sep-2015 Mady Mellor <madym@google.com> Merge "Update NavigationView to use CoordinatorLayout for header and list." into mnc-ub-dev
60319b11a12f9b4b9c88ba4cb75d4029f172f745 16-Sep-2015 Chris Banes <chrisbanes@google.com> Merge "Take the window insets into account when ABL is dragged" into mnc-ub-dev
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
bc22c4fd37e99643b3e7b87e2849a9e63fb8c5fc 26-May-2015 Chris Banes <chrisbanes@google.com> Add ability to snap AppBarLayout children to edges

BUG: 23792717

Change-Id: Ic373fb30c1c3b97f2e1c845c496e97e766f078ec
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
9995f7bdb02dbe16155661545fd64046ad3d56c2 01-Jun-2015 Chris Banes <chrisbanes@google.com> Add APIs to set AppBarLayout to be expanded or not

BUG: 21993903

Change-Id: I840665eab09814e8f09fb1a1f3f8bd13cac0d4b7
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
b263b91ba75dc1a7855186e8b0e9cf75d46a6b8d 01-Jun-2015 Chris Banes <chrisbanes@google.com> Take children's margin in account in AppBarLayout

BUG: 21546828
Change-Id: I2623ff5bfd0395e2528dd3a658d47be1ea5f6573
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
55f3d29c12610da3574c4f488fbc3a1c7ca790f1 05-Jun-2015 Chris Banes <chrisbanes@google.com> Allow AppBarLayout to handle size changes

BUG: 21662657
Change-Id: Idcd7ef2b49aa9c0d4a19804f68e644d26c11aa33
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
9fb154338a62edc2c57dc036895199d6f1769400 18-May-2015 Chris Banes <chrisbanes@google.com> Some design lib doc improvements

Change-Id: I0207a11d830d180defacd11c777e6768363cf31b
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
149689d3a0b4165577470d7152112674d1d7f87c 28-Apr-2015 Chris Banes <chrisbanes@google.com> Fix design lib's attribute doc references

BUG: 20524332
Change-Id: I6dece9ec425acb3305efd0800d2f5d4f15d0aad2
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
81520564f3dd783136e025174021ba4eabd6ff3c 13-Apr-2015 Chris Banes <chrisbanes@google.com> Set default background for AppBarLayout

Change-Id: I8e5809a3d7dedca82fdeaad2e759ba127069e7df
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/AppBarLayout.java