Enum ResType

java.lang.Object
java.lang.Enum<ResType>
org.robolectric.res.ResType
All Implemented Interfaces:
Serializable, Comparable<ResType>, java.lang.constant.Constable

public enum ResType extends Enum<ResType>
  • Enum Constant Details

    • DRAWABLE

      public static final ResType DRAWABLE
    • ATTR_DATA

      public static final ResType ATTR_DATA
    • BOOLEAN

      public static final ResType BOOLEAN
    • COLOR

      public static final ResType COLOR
    • COLOR_STATE_LIST

      public static final ResType COLOR_STATE_LIST
    • DIMEN

      public static final ResType DIMEN
    • FILE

      public static final ResType FILE
    • FLOAT

      public static final ResType FLOAT
    • FRACTION

      public static final ResType FRACTION
    • INTEGER

      public static final ResType INTEGER
    • LAYOUT

      public static final ResType LAYOUT
    • STYLE

      public static final ResType STYLE
    • CHAR_SEQUENCE

      public static final ResType CHAR_SEQUENCE
    • CHAR_SEQUENCE_ARRAY

      public static final ResType CHAR_SEQUENCE_ARRAY
    • INTEGER_ARRAY

      public static final ResType INTEGER_ARRAY
    • TYPED_ARRAY

      public static final ResType TYPED_ARRAY
    • NULL

      public static final ResType NULL
  • Method Details

    • values

      public static ResType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ResType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • inferType

      @Nullable public static ResType inferType(String itemString)
    • inferFromValue

      public static ResType inferFromValue(String value)
      Parses a resource value to infer the type