public enum ImageDensity extends Enum<ImageDensity>
Java class for ImageDensity.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ImageDensity">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="ONE_TO_ONE"/>
<enumeration value="THREE_TO_TWO"/>
<enumeration value="TWO_TO_ONE"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ONE_TO_ONE
Indicates that there is a 1:1 ratio between the dimensions of the raw image and the dimensions
that it should be displayed at in device-independent pixels.
|
THREE_TO_TWO
Indicates that there is a 3:2 ratio between the dimensions of the raw image and the dimensions
that it should be displayed at in device-independent pixels.
|
TWO_TO_ONE
Indicates that there is a 2:1 ratio between the dimensions of the raw image and the dimensions
that it should be displayed at in device-independent pixels.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static ImageDensity |
fromValue(String v) |
String |
value() |
static ImageDensity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageDensity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageDensity ONE_TO_ONE
public static final ImageDensity THREE_TO_TWO
public static final ImageDensity TWO_TO_ONE
public static final ImageDensity UNKNOWN
public static ImageDensity[] values()
for (ImageDensity c : ImageDensity.values()) System.out.println(c);
public static ImageDensity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static ImageDensity fromValue(String v)
Copyright © 2018. All Rights Reserved.