Example usage for Java android.util TypedValue fields, constructors, methods, implement or subclass
The text is from its open source code.
int | TYPE_NULL The value contains no data. |
int | TYPE_REFERENCE The data field holds a resource identifier. |
int | TYPE_STRING The string field holds string data. |
int | TYPE_FLOAT The data field holds an IEEE 754 floating point number. |
int | TYPE_DIMENSION The data field holds a complex number encoding a dimension value. |
int | TYPE_FRACTION The data field holds a complex number encoding a fraction of a container. |
int | TYPE_FIRST_INT Identifies the start of plain integer values. |
int | TYPE_INT_BOOLEAN The data field holds 0 or 1 that was originally specified as "false" or "true". |
int | TYPE_FIRST_COLOR_INT Identifies the start of integer values that were specified as color constants (starting with '#'). |
int | TYPE_INT_COLOR_ARGB8 The data field holds a color that was originally specified as #aarrggbb. |
int | TYPE_LAST_COLOR_INT Identifies the end of integer values that were specified as color constants. |
int | TYPE_LAST_INT Identifies the end of plain integer values. |
int | COMPLEX_UNIT_SHIFT Complex data: bit location of unit information. |
int | COMPLEX_UNIT_MASK Complex data: mask to extract unit information (after shifting by #COMPLEX_UNIT_SHIFT ). |
int | COMPLEX_UNIT_PX #TYPE_DIMENSION complex unit: Value is raw pixels. |
int | COMPLEX_UNIT_DIP #TYPE_DIMENSION complex unit: Value is Device Independent Pixels. |
int | COMPLEX_UNIT_SP #TYPE_DIMENSION complex unit: Value is a scaled pixel. |
int | COMPLEX_UNIT_PT #TYPE_DIMENSION complex unit: Value is in points. |
int | COMPLEX_UNIT_IN #TYPE_DIMENSION complex unit: Value is in inches. |
int | COMPLEX_UNIT_MM #TYPE_DIMENSION complex unit: Value is in millimeters. |
float | applyDimension(int unit, float value, DisplayMetrics metrics) Converts an unpacked complex data value holding a dimension to its final floating point value. |
CharSequence | coerceToString() Regardless of the actual type of the value, try to convert it to a string value. |
float | complexToDimension(int data, DisplayMetrics metrics) Converts a complex data value holding a dimension to its final floating point value. |
int | complexToDimensionPixelOffset(int data, DisplayMetrics metrics) Converts a complex data value holding a dimension to its final value as an integer pixel offset. |
int | complexToDimensionPixelSize(int data, DisplayMetrics metrics) Converts a complex data value holding a dimension to its final value as an integer pixel size. |
float | complexToFloat(int complex) Retrieve the base value from a complex data integer. |
float | getDimension(DisplayMetrics metrics) Return the data for this value as a dimension. |
float | getFloat() Return the data for this value as a float. |
float | getFraction(float base, float pbase) Return the data for this value as a fraction. |