• 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 >>>)
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
athUtils.java
54474fe93eb3943a9d77b00b3f4aaead59646f23 09-Mar-2017 Aurimas Liutikas <aurimas@google.com> Remove unused class AnimationListenerAdapter.

Test: None
Change-Id: Ib700d13a8288e28f258444bc5f7882dc6c1d2d6c
nimationUtils.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
loatingActionButtonImpl.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
loatingActionButtonImpl.java
tateListAnimator.java
alueAnimatorCompat.java
1c4d0c9dec028624cd661be53e68b1464b14ab7f 10-Nov-2016 Chris Banes <chrisbanes@google.com> Fix FAB setBackgroundTintList on L+

Caused by LayerDrawable caching its isStateful
value, meaning that if our shape drawable is not
stateful at instantiation (which is the default),
and a stateful tint is later set, it doesn't work
across state changes.

Test: included
BUG: 32785441

Change-Id: Id81951c5312785821f577c04ff657042edd899ed
loatingActionButtonImpl.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
tateListAnimator.java
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
loatingActionButtonImpl.java
hadowDrawableWrapper.java
15d1695da89eed196884b44fe90f19f83fb37a4f 01-Aug-2016 Chris Banes <chrisbanes@google.com> Fix testHideShow on pre-ICS

Ports fix Ib32bcd9fff276819a8790b9f03c985cf48671a8f
to the pre-ICS code path.

BUG: 30508426
Change-Id: Ic33999a8a647c8730fc94941195bd05901186cc6
loatingActionButtonImpl.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
loatingActionButtonImpl.java
tateListAnimator.java
alueAnimatorCompat.java
f41803d681c7761268dd9e3c89db3d829973519f 22-Jun-2016 Chris Banes <chrisbanes@google.com> Merge "Update FloatingActionButton's elevation handling"
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
oordinatorLayoutInsetsHelper.java
f0aec033caa46d2cdddad020b8748d24f921ad5b 20-Jun-2016 Chris Banes <chrisbanes@google.com> Update FloatingActionButton's elevation handling

We now use a StateListAnimator for both the elevation
and translationZ handling. Matches the framework's button
impl more closely.

Also adds a disabled state which we didn't previously
handle.

Change-Id: I1c86d71495d75680d542a4fab7a1e87834ed572d
loatingActionButtonImpl.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
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