Android Developers Develop API reference 本页内容SummaryPublic constructorsPublic propertiesPublic constructors EnumEntryPublic properties namevalue InspectableProperty.EnumEntry Artifact: androidx.annotation:annotation View Source Added in 1.1.0 Deprecated in 1.3.0 Kotlin |Java Common/AllAndroid/JVMNative/C/iOS选择一个或多个选项Select a platformCommon/AllAndroid/JVMNative/C/iOS android @Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS])@Retention(value = AnnotationRetention.SOURCE)annotation InspectableProperty.EnumEntry One entry in an enumeration packed into a primitive {int}. Summary Public constructors EnumEntry(name: String, value: Int) android Public properties String name The string name of this enumeration value. android Int value The integer value of this enumeration value. android Public constructors EnumEntry android EnumEntry(name: String, value: Int) Public properties name android val name: String The string name of this enumeration value. Returns String A string name value android val value: Int The integer value of this enumeration value. Returns Int An integer value