Package org.robolectric.res.android
Enum DataType
- All Implemented Interfaces:
- Serializable,- Comparable<DataType>,- java.lang.constant.Constable
Resource type codes.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptiondataholds an attribute resource identifier.dataholds a complex number encoding a dimension value, such as "100in".dataholds an attribute resource identifier, which needs to be resolved before it can be used like a TYPE_ATTRIBUTE.dataholds a dynamicResourceTableChunkentry reference.dataholds a single-precision floating point number.dataholds a complex number encoding a fraction of a container.datais either 0 (false) or 1 (true).datais a raw integer value of the form #argb.datais a raw integer value of the form #aarrggbb.datais a raw integer value of the form #rgb.datais a raw integer value of the form #rrggbb.datais a raw integer value of the form n..n.datais a raw integer value of the form 0xn..n.datais either 0 (undefined) or 1 (empty).dataholds aResourceTableChunkentry reference.dataholds an index into the containing resource table's string pool.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionbytecode()static DataTypefromCode(byte code) static DataTypefromCode(int code) static DataTypeReturns the enum constant of this type with the specified name.static DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
NULLdatais either 0 (undefined) or 1 (empty).
- 
REFERENCEdataholds aResourceTableChunkentry reference.
- 
ATTRIBUTEdataholds an attribute resource identifier.
- 
STRINGdataholds an index into the containing resource table's string pool.
- 
FLOATdataholds a single-precision floating point number.
- 
DIMENSIONdataholds a complex number encoding a dimension value, such as "100in".
- 
FRACTIONdataholds a complex number encoding a fraction of a container.
- 
DYNAMIC_REFERENCEdataholds a dynamicResourceTableChunkentry reference.
- 
DYNAMIC_ATTRIBUTEdataholds an attribute resource identifier, which needs to be resolved before it can be used like a TYPE_ATTRIBUTE.
- 
INT_DECdatais a raw integer value of the form n..n.
- 
INT_HEXdatais a raw integer value of the form 0xn..n.
- 
INT_BOOLEANdatais either 0 (false) or 1 (true).
- 
INT_COLOR_ARGB8datais a raw integer value of the form #aarrggbb.
- 
INT_COLOR_RGB8datais a raw integer value of the form #rrggbb.
- 
INT_COLOR_ARGB4datais a raw integer value of the form #argb.
- 
INT_COLOR_RGB4datais a raw integer value of the form #rgb.
 
- 
- 
Field Details- 
TYPE_FIRST_INTpublic static final int TYPE_FIRST_INT
- 
TYPE_LAST_INTpublic static final int TYPE_LAST_INT
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
codepublic byte code()
- 
fromCode
- 
fromCode
 
-