AnyRes.java revision 75aea14c26565d3fde46c4ce410f5c384c42162c
175aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye/* 275aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * Copyright (C) 2014 The Android Open Source Project 375aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * 475aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * Licensed under the Apache License, Version 2.0 (the "License"); 575aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * you may not use this file except in compliance with the License. 675aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * You may obtain a copy of the License at 775aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * 875aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * http://www.apache.org/licenses/LICENSE-2.0 975aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * 1075aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * Unless required by applicable law or agreed to in writing, software 1175aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * distributed under the License is distributed on an "AS IS" BASIS, 1275aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1375aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * See the License for the specific language governing permissions and 1475aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * limitations under the License. 1575aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye */ 1675aea14c26565d3fde46c4ce410f5c384c42162cTor Norbyepackage android.support.annotation; 1775aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye 1875aea14c26565d3fde46c4ce410f5c384c42162cTor Norbyeimport java.lang.annotation.Documented; 1975aea14c26565d3fde46c4ce410f5c384c42162cTor Norbyeimport java.lang.annotation.Retention; 2075aea14c26565d3fde46c4ce410f5c384c42162cTor Norbyeimport java.lang.annotation.Target; 2175aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye 2275aea14c26565d3fde46c4ce410f5c384c42162cTor Norbyeimport static java.lang.annotation.ElementType.FIELD; 2375aea14c26565d3fde46c4ce410f5c384c42162cTor Norbyeimport static java.lang.annotation.ElementType.METHOD; 2475aea14c26565d3fde46c4ce410f5c384c42162cTor Norbyeimport static java.lang.annotation.ElementType.PARAMETER; 2575aea14c26565d3fde46c4ce410f5c384c42162cTor Norbyeimport static java.lang.annotation.RetentionPolicy.SOURCE; 2675aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye 2775aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye/** 2875aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * Denotes that an integer parameter, field or method return value is expected 2975aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * to be a resource reference of any type. If the specific type is known, use 3075aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * one of the more specific annotations instead, such as {@link StringRes} or 3175aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye * {@link DrawableRes}. 3275aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye */ 3375aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye@Documented 3475aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye@Retention(SOURCE) 3575aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye@Target({METHOD, PARAMETER, FIELD}) 3675aea14c26565d3fde46c4ce410f5c384c42162cTor Norbyepublic @interface AnyRes { 3775aea14c26565d3fde46c4ce410f5c384c42162cTor Norbye} 38