1be678137d44778590a6220ae0ef13649e83363a9Chris Banes/*
2be678137d44778590a6220ae0ef13649e83363a9Chris Banes * Copyright (C) 2016 The Android Open Source Project
3be678137d44778590a6220ae0ef13649e83363a9Chris Banes *
4be678137d44778590a6220ae0ef13649e83363a9Chris Banes * Licensed under the Apache License, Version 2.0 (the "License");
5be678137d44778590a6220ae0ef13649e83363a9Chris Banes * you may not use this file except in compliance with the License.
6be678137d44778590a6220ae0ef13649e83363a9Chris Banes * You may obtain a copy of the License at
7be678137d44778590a6220ae0ef13649e83363a9Chris Banes *
8be678137d44778590a6220ae0ef13649e83363a9Chris Banes *      http://www.apache.org/licenses/LICENSE-2.0
9be678137d44778590a6220ae0ef13649e83363a9Chris Banes *
10be678137d44778590a6220ae0ef13649e83363a9Chris Banes * Unless required by applicable law or agreed to in writing, software
11be678137d44778590a6220ae0ef13649e83363a9Chris Banes * distributed under the License is distributed on an "AS IS" BASIS,
12be678137d44778590a6220ae0ef13649e83363a9Chris Banes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13be678137d44778590a6220ae0ef13649e83363a9Chris Banes * See the License for the specific language governing permissions and
14be678137d44778590a6220ae0ef13649e83363a9Chris Banes * limitations under the License.
15be678137d44778590a6220ae0ef13649e83363a9Chris Banes */
16be678137d44778590a6220ae0ef13649e83363a9Chris Banes
17be678137d44778590a6220ae0ef13649e83363a9Chris Banespackage android.support.v4.graphics.drawable;
18be678137d44778590a6220ae0ef13649e83363a9Chris Banes
19be678137d44778590a6220ae0ef13649e83363a9Chris Banesimport android.content.res.ColorStateList;
20be678137d44778590a6220ae0ef13649e83363a9Chris Banesimport android.graphics.PorterDuff;
21be678137d44778590a6220ae0ef13649e83363a9Chris Banesimport android.graphics.drawable.Drawable;
22be678137d44778590a6220ae0ef13649e83363a9Chris Banesimport android.support.annotation.ColorInt;
23c39d9c75590eca86a5e7e32a8824ba04a0d42e9bAlan Viveretteimport android.support.annotation.RestrictTo;
24c39d9c75590eca86a5e7e32a8824ba04a0d42e9bAlan Viverette
25c39d9c75590eca86a5e7e32a8824ba04a0d42e9bAlan Viveretteimport static android.support.annotation.RestrictTo.Scope.GROUP_ID;
26be678137d44778590a6220ae0ef13649e83363a9Chris Banes
27be678137d44778590a6220ae0ef13649e83363a9Chris Banes/**
28be678137d44778590a6220ae0ef13649e83363a9Chris Banes * Interface which allows a {@link android.graphics.drawable.Drawable} to receive tinting calls
29be678137d44778590a6220ae0ef13649e83363a9Chris Banes * from {@code DrawableCompat}.
30be678137d44778590a6220ae0ef13649e83363a9Chris Banes *
31be678137d44778590a6220ae0ef13649e83363a9Chris Banes * @hide
32be678137d44778590a6220ae0ef13649e83363a9Chris Banes */
33c39d9c75590eca86a5e7e32a8824ba04a0d42e9bAlan Viverette@RestrictTo(GROUP_ID)
34be678137d44778590a6220ae0ef13649e83363a9Chris Banespublic interface TintAwareDrawable {
35be678137d44778590a6220ae0ef13649e83363a9Chris Banes    void setTint(@ColorInt int tint);
36be678137d44778590a6220ae0ef13649e83363a9Chris Banes    void setTintList(ColorStateList tint);
37be678137d44778590a6220ae0ef13649e83363a9Chris Banes    void setTintMode(PorterDuff.Mode tintMode);
38be678137d44778590a6220ae0ef13649e83363a9Chris Banes}
39