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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.java
|
3d81c900316412b4130bf40e0dd8b0d3d3a93e78 |
|
04-Nov-2015 |
Chris Banes <chrisbanes@google.com> |
Add getter for FAB content background BUG: 25450451 Change-Id: I513e5fe2f9e0fb7013f03f6d1f8edd957d5ab8dd
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.java
|
8603357c9433b9aef1805413a3bfc4a4f8decc50 |
|
15-Oct-2015 |
Chris Banes <chrisbanes@google.com> |
Make sure that FAB's border respects tint updates BUG: 24699109 Change-Id: I15469769242abfe9edf8b87b2f88f46dac7aa3de
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.java
|
0ad7ef59b28d8ffafd551d2756b5a8ec47c90682 |
|
18-Sep-2015 |
Mark Wei <markwei@google.com> |
Add a listener to FloatingActionButton show() and hide(). Bug: 24053775 Change-Id: I36495bd56c48afc3249d3e09761c823a9b6c377a
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.java
|
a577676a64e5353b8ec927117151aa6be84adf66 |
|
23-Jun-2015 |
Chris Banes <chrisbanes@google.com> |
Prefix design lib resources to try and avoid conflicts BUG: 21363917 Change-Id: I770a01618ac8fefae6d82d1640ccf313111e38e8
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.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
/frameworks/support/design/base/android/support/design/widget/FloatingActionButtonImpl.java
|