@@ -14,18 +14,19 @@
  * the License.
  */
 
+import com.wnafee.vector.compat.ResourcesCompat;
+
 import android.content.Context;
 import android.content.res.Resources;
 import android.content.res.TypedArray;
+import android.graphics.PorterDuff;
 import android.graphics.drawable.Animatable;
 import android.graphics.drawable.Drawable;
 import android.os.Parcel;
 import android.os.Parcelable;
 import android.util.AttributeSet;
 import android.widget.CompoundButton;
 
-import com.wnafee.vector.compat.ResourcesCompat;
-
 
 //TODO: Add tint support compatibility
 //TODO: attempt reversing animation if no morphEndDrawable is provided
@@ -102,6 +103,16 @@ public void toggle() {
         mIsToggling = false;
     }
 
+    public void setColorFilter(int color, PorterDuff.Mode mode) {
+        if (mStartMorph != null) {
+            mStartMorph.setColorFilter(color, mode);
+        }
+
+        if (mEndMorph != null) {
+            mEndMorph.setColorFilter(color, mode);
+        }
+    }
+
     private boolean beginStartAnimation() {
         if (mStartMorph != null && mStartCanMorph) {
             ((Animatable) mStartMorph).start();