• Home
  • History
  • Annotate
  • only in /frameworks/support/design/base/android/support/design/widget/
History log of /frameworks/support/design/base/android/support/design/widget/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
alueAnimatorCompat.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
isibilityAwareImageButton.java
b0f719227b3fa5d5bb7683bd835f7df504fcc733 18-Feb-2016 Chris Banes <chrisbanes@google.com> Fix some rough edges in AppCompat + VDC

- Make the Resources in AppCompatActivity, more
efficient and allows all calls to
getResources().getDrawable() to work for vectors.
- Make FloatingActionButton extend from AppCompat's
ImageButton. This allows it to support vector assets.

BUG: 27238402
Change-Id: Id39c6d7a8c431ed811bd552e14eba583311c5693
isibilityAwareImageButton.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
loatingActionButtonImpl.java
hadowViewDelegate.java
3d81c900316412b4130bf40e0dd8b0d3d3a93e78 04-Nov-2015 Chris Banes <chrisbanes@google.com> Add getter for FAB content background

BUG: 25450451
Change-Id: I513e5fe2f9e0fb7013f03f6d1f8edd957d5ab8dd
loatingActionButtonImpl.java
9d42ab847a9187fe54c53553a0593fad0aea9263 27-Oct-2015 Chris Banes <chrisbanes@google.com> Fix crash in FAB background tint

Caused by moving the base class to AppCompatImageButton.
That class's functionality interferes with FAB.

BUG: 25302006
Change-Id: I283508caa8ddf5664a5b15209cfff06c464ec187
isibilityAwareImageButton.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
loatingActionButtonImpl.java
isibilityAwareImageButton.java
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
loatingActionButtonImpl.java
8603357c9433b9aef1805413a3bfc4a4f8decc50 15-Oct-2015 Chris Banes <chrisbanes@google.com> Make sure that FAB's border respects tint updates

BUG: 24699109
Change-Id: I15469769242abfe9edf8b87b2f88f46dac7aa3de
ircularBorderDrawable.java
loatingActionButtonImpl.java
e667a56703ca0c7cdf1b9890435cace86f224ed7 15-Oct-2015 Chris Banes <chrisbanes@google.com> Merge "Use the correct interpolators in the design lib" into mnc-ub-dev
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
nimationUtils.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
ircularBorderDrawable.java
loatingActionButtonImpl.java
hadowDrawableWrapper.java
0ad7ef59b28d8ffafd551d2756b5a8ec47c90682 18-Sep-2015 Mark Wei <markwei@google.com> Add a listener to FloatingActionButton show() and hide().

Bug: 24053775
Change-Id: I36495bd56c48afc3249d3e09761c823a9b6c377a
loatingActionButtonImpl.java
3d176d204e7e671b68ec4051c578c9a48068c422 07-Aug-2015 Chris Banes <chrisbanes@google.com> Merge "Fix tab indicator getting out of sync" into mnc-ub-dev
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
alueAnimatorCompat.java
92d279ce7d51389b254846fbc802f6950b33eeff 06-Aug-2015 Chris Banes <chrisbanes@google.com> Fix FAB visibility=gone not working pre-v21

Caused by using a view Animation for the elevation
changes. As an animation is kicked off via
jumpDrawableToCurrentState(), the animation will
temporarily make the view visible.

BUG: 23000525
Change-Id: If1ce17f8eb9ba44175508dc7bac232294bdd0a9b
tateListAnimator.java
a577676a64e5353b8ec927117151aa6be84adf66 23-Jun-2015 Chris Banes <chrisbanes@google.com> Prefix design lib resources to try and avoid conflicts

BUG: 21363917
Change-Id: I770a01618ac8fefae6d82d1640ccf313111e38e8
loatingActionButtonImpl.java
hadowDrawableWrapper.java
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
loatingActionButtonImpl.java
092f4b4fc5610ed1a2c4f5108066726ee59d8f16 08-Jun-2015 Chris Banes <chrisbanes@google.com> Re-enable border sheen (aka border)

Seems that certain devices have problems with the
DST_OVER PorterDuff mode. We workaround it by
manually compositing the colors in the LinearGradient.

BUG: 21527675

Change-Id: Ideacb357533297ff3af17fdbf1e8b65dcea48150
ircularBorderDrawable.java
loatingActionButtonImpl.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
ircularBorderDrawable.java
loatingActionButtonImpl.java
athUtils.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
loatingActionButtonImpl.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
oordinatorLayoutInsetsHelper.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
alueAnimatorCompat.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
nimationUtils.java
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
nimationUtils.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
loatingActionButtonImpl.java
hadowDrawableWrapper.java
hadowViewDelegate.java
tateListAnimator.java