1055b4925fb282a029e6058b2d670f4a416df205bTor Norbye/* 2055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * Copyright (C) 2015 The Android Open Source Project 3055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * 4055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * Licensed under the Apache License, Version 2.0 (the "License"); 5055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * you may not use this file except in compliance with the License. 6055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * You may obtain a copy of the License at 7055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * 8055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * http://www.apache.org/licenses/LICENSE-2.0 9055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * 10055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * Unless required by applicable law or agreed to in writing, software 11055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * distributed under the License is distributed on an "AS IS" BASIS, 12055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * See the License for the specific language governing permissions and 14055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * limitations under the License. 15055b4925fb282a029e6058b2d670f4a416df205bTor Norbye */ 16055b4925fb282a029e6058b2d670f4a416df205bTor Norbyepackage android.support.annotation; 17055b4925fb282a029e6058b2d670f4a416df205bTor Norbye 18055b4925fb282a029e6058b2d670f4a416df205bTor Norbyeimport static java.lang.annotation.ElementType.FIELD; 19055b4925fb282a029e6058b2d670f4a416df205bTor Norbyeimport static java.lang.annotation.ElementType.LOCAL_VARIABLE; 20055b4925fb282a029e6058b2d670f4a416df205bTor Norbyeimport static java.lang.annotation.ElementType.METHOD; 21055b4925fb282a029e6058b2d670f4a416df205bTor Norbyeimport static java.lang.annotation.ElementType.PARAMETER; 22055b4925fb282a029e6058b2d670f4a416df205bTor Norbyeimport static java.lang.annotation.RetentionPolicy.CLASS; 23055b4925fb282a029e6058b2d670f4a416df205bTor Norbye 24bf4b77f1b6bfa3ccf6c4fc8c89f1a1fb563b7a65Aurimas Liutikasimport java.lang.annotation.Retention; 25bf4b77f1b6bfa3ccf6c4fc8c89f1a1fb563b7a65Aurimas Liutikasimport java.lang.annotation.Target; 26bf4b77f1b6bfa3ccf6c4fc8c89f1a1fb563b7a65Aurimas Liutikas 27055b4925fb282a029e6058b2d670f4a416df205bTor Norbye/** 28055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * Denotes that the annotated element represents a packed color 29055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * int, {@code AARRGGBB}. If applied to an int array, every element 30055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * in the array represents a color integer. 31055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * <p> 32bf66ea26f969ec4025fbed83b43b6025f04863caTor Norbye * Example: 33bf66ea26f969ec4025fbed83b43b6025f04863caTor Norbye * <pre>{@code 34385cccb8927b54284505b0bfdadb95e157cbdfd2Neil Fuller * public abstract void setTextColor(@ColorInt int color); 35055b4925fb282a029e6058b2d670f4a416df205bTor Norbye * }</pre> 36055b4925fb282a029e6058b2d670f4a416df205bTor Norbye */ 37055b4925fb282a029e6058b2d670f4a416df205bTor Norbye@Retention(CLASS) 38055b4925fb282a029e6058b2d670f4a416df205bTor Norbye@Target({PARAMETER,METHOD,LOCAL_VARIABLE,FIELD}) 39055b4925fb282a029e6058b2d670f4a416df205bTor Norbyepublic @interface ColorInt { 40055b4925fb282a029e6058b2d670f4a416df205bTor Norbye}