History log of /frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e977fb30d84d42ac77198e6f700404f34e9dbbc0 05-May-2016 Chris Banes <chrisbanes@google.com> Fix srcCompat set ordering issue

If srcCompat is set, it will always overwrite
android:src. This isn't what most developers
expect though so we'll flip the ordering so
that android:src overwrites srcCompat.

This allows developers to override AppCompat
styles which use srcCompat, with drawables set
with android:src.

BUG: 28613558
Change-Id: I927123a06b2ce4d762920564c9e545f6ede48734
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java
8c3f75732bc35cf683f9014816b26c77d9c8f4e8 23-Mar-2016 Chris Banes <chrisbanes@google.com> Add workaround for ripple + alpha animation bug

BUG: 27715789

Change-Id: I56d76ac85274c6471701af0b38e9b54a8eacfb9f
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.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
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java
aaa85b7d563d27fdf10048dd619a317451477ad5 12-Jan-2016 Chris Banes <chrisbanes@google.com> Add a workaround for VectorDrawable issues on API 21

It seems to have an issue on API 21 where it doesn't create
its internal mTintFilter. Fixed by toggling its state
to force a tint filter creation.

BUG: 26198700
Change-Id: If692e468bf3fb34009138af734cfe3279e4b78d8
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java
e4beadba70aecabbd7f6677943ab7c0b94809b8a 10-Nov-2015 Chris Banes <chrisbanes@google.com> AppCompat + VectorDrawableCompat

AppCompat now depends on VectorDrawableCompat and makes use
of it for certain drawables (radio button, checkmark, back, etc).

We make use of the few extension points in the Drawable loading
system to make this possible. Most drawable loading happens
in Resources.loadDrawable() which can't be overriden. On API 19
and below though, most DrawableContainers load their child
drawables through Resources.getDrawable(), which we can hook into.

This means that a <vector> resource file can be loaded as long as it
is wrapped in a seperate DrawableContainer (Inset, StateList, etc).

For the times that wrapping the drawable isn't an option, we now also
have a app:srcCompat attribution on ImageView and ImageButton.

AppCompat statically compiles in VDC into the Make build artifacts.
This is to aid migration. Gradle is unaffected.

Change-Id: If2ab63e561354fe290e5df47e7560533725175fc
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java
26528ab5f9c144f9a6e48ebf6a3a4a603d93003c 08-Dec-2015 Chris Banes <chrisbanes@google.com> Only set an ImageView's image if we know the resource

Allows us to workaround a API 16 bug.

BUG: 26018279
Change-Id: Ia5ae2d27bbfd0dc4f81c3808b9b7bdce63b2a4f4
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java
66698bb15ba0f873aa1c2290cc50d6bb839a474a 26-Oct-2015 Chris Banes <chrisbanes@google.com> Flatten AppCompat class hierarchy

This allows us to do two things:

1) Move away from using public @hidden classes
everywhere.
2) Workaround silly OEM bugs.

BUG: 18218511

Change-Id: I7582e242c7564c32feeb044fc9eff6bfb5c56536
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java
a96db697796f1d93fa86c3087b97775c75bd7309 16-Oct-2015 Chris Banes <chrisbanes@google.com> Make AppCompatImageView.setImageResource(0) work

BUG: 24998069
Change-Id: I8cea71d4afe0e975fed9c113eb9f85a0bed75f18
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java
7e4e8b664820f773bc96e37ee1d2bbf500d64e69 12-Oct-2015 Chris Banes <chrisbanes@google.com> Add AppCompatDrawableManager

Refactored from TintManager, AppCompatDrawableManager
is now architectured differently. It is now a singleton
which keeps multi-map of cached tints.

This is to enable the new InflateDelegate extension point,
which will allows libraries (and eventually apps) to hook
into the compat drawable inflation.

While this CL looks large, it's mostly just updating method
calls to match the new parameters.

BUG: 24852773

Change-Id: Ic9f5ecc6fd0208d2f7a8a686f077f16588020516
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java
e687450a3272d931ea33e5f65048eb69ef1f8d9e 25-Sep-2015 Chris Banes <chrisbanes@google.com> Add AppCompatImageButton + AppCompatImageView

Moved usage of the old ImageView impl to be
implicit through our view inflater functionality.

Also re-ordered the view order so that more common
views are at the top.

BUG: 21715295

Change-Id: I28eedbc1f7d0bd55fbfbdb5aa85b72a8498f790f
/frameworks/support/v7/appcompat/src/android/support/v7/widget/AppCompatImageHelper.java