History log of /frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9ee6a3fbb89698ebd7c26d4a86e2892a37a0d87a 19-May-2016 Aurimas Liutikas <aurimas@google.com> Actually change api to use long in CollapsingToolbarLayout.

Bug: 28775495
Change-Id: I25d3ff3007914ac1db0abb8f9b151b9cac4ca0e3
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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/CollapsingToolbarLayout.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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
cb849a71706ac0660a5383c11629bc8d9c1a9f28 06-Apr-2016 Chris Banes <chrisbanes@google.com> Merge "Use StateListAnimator for AppBarLayout elevation changes" 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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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/CollapsingToolbarLayout.java
57f39186667b8acef1a0ebeda585c357a751a8b3 02-Apr-2016 Adam Lesinski <adamlesinski@google.com> Revert "Build support libs with AAPT2"

This reverts commit 66b8608151c5923de3c9877bc03218d83f6b3beb.

Change-Id: I2178c0336bef8386e1f36ff3816b6dbf1e6a64d0
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
4ac91fa3f14db2f25345595fb921497c11d4e5c0 31-Mar-2016 Adam Lesinski <adamlesinski@google.com> Revert "Build support libs with AAPT2"

This reverts commit 0dac8d82e2a249d7c9c42ab259389e11cac15400.

Change-Id: I830fb18162b6eea8dde9e38f9dc39b02449ec846
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
7e268c7de8bb10fc24ddda5d237d5cc5ce3b591b 22-Feb-2016 Chris Banes <chrisbanes@google.com> Add default style attrs for design components

BUG: 27285523
Change-Id: Id19144f3fe58fe61ea132c2ca4fbf2cda5595277
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
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
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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/CollapsingToolbarLayout.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
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
874a5968599b8c53212ff49af5c047b1211b547a 15-Dec-2015 Chris Banes <chrisbanes@google.com> resolve merge conflicts of fc349fd483 to master.

Change-Id: I94a731888f74c6b0e9d9af60fe752d2086cb0f77
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
c0d908fa15305aa1efe58738c74d54933772186c 19-Oct-2015 Chris Banes <chrisbanes@google.com> resolved conflicts for d687245e to master

Change-Id: I245e42a399585bd1788db6ba09486ef1c1a6b691
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
34550bb9e60e8935f2007ffea069c5bacd971e36 15-Oct-2015 Chris Banes <chrisbanes@google.com> Add getters/setters for CollapsingToolbarLayout title margins

Change-Id: I9b97757066d4f7cfb34f443648fb8e965caa3bb6
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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/CollapsingToolbarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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/CollapsingToolbarLayout.java
1701feace5652372dd2fe1913f74169a12e2c940 28-Jul-2015 Chris Banes <chrisbanes@google.com> Allow CollapsingToolbarLayout's title is be disabled

BUG: 22782543
Change-Id: I72e513abae20cd5b25fefe6ff5061fee34daab0f
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
31075a61da61f1f0184ee909a70b1efcd7cee807 24-Jul-2015 Chris Banes <chrisbanes@google.com> Set CollapsingToolbarLayout's title from Toolbar

BUG: 22707786
Change-Id: Ie16737b10524cfc972f12fcf32f9f1cd88aa5434
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
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
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.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)
/frameworks/support/design/src/android/support/design/widget/CollapsingToolbarLayout.java
1bf6093c6dab532bc57c75767470afa3cbbe0384 02-Jun-2015 Chris Banes <chrisbanes@google.com> Improvements to TextInputLayout

Also documented the OnFocusChangeListener behavior.

BUG: 21546826

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