be678137d44778590a6220ae0ef13649e83363a9 |
|
21-Apr-2016 |
Chris Banes <chrisbanes@google.com> |
Tidy up DrawableCompat + VDC/AVDC calls Currently DrawableCompat will wrap any drawable on API < 22. As VDC supports tinting natively, we should use that instead of wrapping. This CL fixes this by extracting the calls to an marker interface and making VDC + AVDC implement it. Also tidied up the doc on DrawableCompat.wrap(). BUG: 28296684 Change-Id: I6e23db54aa10758b3c0a08e8d110210799453595
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
ffbf42aa3acb41b82cc6c1226c63c3649bedfe49 |
|
06-Apr-2016 |
Chris Banes <chrisbanes@google.com> |
Tidy up CardView's background handling - Moved the CardViewDelegate instance to be a member variable. Allows us to actually hide implementation methods. - Removed some methods from the Delegate which are no longer needed. - Allow CardView's background to work with DrawableCompat.setTint calls - Fixed an issue with DrawableCompat where we would NPE if setTint*() was called before mutate()ing the drawable. BUG: 26478024 Change-Id: I01162774fe193a0c9a6f9ab266f117e0a940dee5
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
c3b9589f61cbfda8c60344a47f8f87c0ded98554 |
|
09-Mar-2016 |
Chris Banes <chrisbanes@google.com> |
Make sure that DrawableWrapper sets a Callback Currently, we don't always set a callback on the wrapped drawable. This CL fixes this, and adds a test to make sure. BUG: 27563606 Change-Id: If15606b6a19627249ef5e64a299e51aad3ef0f29
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
4da36b0dfa8436b197314094337fa3102fcca1bc |
|
25-Feb-2016 |
Chris Banes <chrisbanes@google.com> |
Fix issue with DrawableCompat.wrap() + mutation The following is workaround for issues for certain DrawableContainers on some API levels. They expect getConstantState() to always return non-null, which will only happen after our wrapper has been mutated. Since most Drawables provided to wrap() will be from Resources, they will nearly always have been mutated. Therefore the wrapper should act as it has been too, and return a constant state. BUG: 27353857 Change-Id: Ib244f8f26f2e09979885d1fe2b84f0ec55cf2f02
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
9925d4a53e0dbaacf07901fb48907fe1aff9bbbd |
|
22-Jan-2016 |
Chris Banes <chrisbanes@google.com> |
Implement ConstantState in DrawableCompat.wrap()s wrappers Mostly copied from M's DrawableWrapper class BUG: 26698785 Change-Id: I2580e10883c4b2ec8d274ad66a3cd1c6ab1dfc95
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
b1ba192200941f2a8c1eb2796c9fedc781bfe97f |
|
20-Nov-2015 |
Chris Banes <chrisbanes@google.com> |
Fix NPE in DrawableCompat Also copy over the wrapped drawable fix over to API 22. BUG: 25814094 BUG: 25488702 Change-Id: Ic9c0aa603ca42d9971e99b19f692414e6dee7454
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
ac54e3ed316c378f9f339b88811613feb176e75d |
|
19-Nov-2015 |
Chris Banes <chrisbanes@google.com> |
Copy over the wrapped drawable's bounds in wrap() Also ensure that we don't have multi-nested drawable wrappers on L+, there is no need for them. BUG: 25488702 Change-Id: I6b2d2a8f03abfad7fafd5e0eb4f77349b4f2c381
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
7797b9f22c8c404309b778a0966266d2b1a84915 |
|
22-Oct-2015 |
Chris Banes <chrisbanes@google.com> |
Workaround stateful tinting bug on <= API 23 Since the framework doesn't guarantee a drawable invalidation for state changes, we need to workaround it in DrawableCompat by wrapping the drawable and forcing one. BUG: 25174572 Change-Id: Ie793ae2056bd72954d3fa8df4db0fb72bf17de41
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
421affab4e0d1c631f759186f8b2975933c9b5a5 |
|
13-May-2015 |
Chris Banes <chrisbanes@google.com> |
FloatingActionButton border 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 (cherry picked from commit cd78954a2b32d9c22686f12c194fac7e49566cf6)
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
c88bcc13910d9d1a0ddd077e7cb96f3d95bde76c |
|
16-Feb-2015 |
Chris Banes <chrisbanes@google.com> |
MenuItem, navigation and overflow icon tinting - support edition - iconTint and iconTintMode attrs for MenuItem, with associated setters. - navigationTint and navigationTintMode attrs for Toolbar with associated setters. - overflowTint and overflowTintMode attrs for Toolbar with associated setters. Depends on Ibd1fae7cdbc7a7c42809e52541fae5d8beb18e92 BUG: 18126050 BUG: 19148351 BUG: 19305408 Change-Id: I04e9ce376c925efe6f43e03e9627a9a83865dab8
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|
7e82b99953680915596eaf0eb35927388e574ca8 |
|
27-Jan-2015 |
Chris Banes <chrisbanes@google.com> |
Add tintable Drawables to support-v4 Works by using AppCompat's tinting Drawbale wrapper in support v4. I've also moved over AppCompat and design lib to use DrawableCompat. I've also added a workaround due to GradientDrawable not supporting tinting of Lollipop. Change-Id: Ifa178eae99207051bf72ba6b9f3148cdcbe1579f
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/DrawableWrapperDonut.java
|