public enum Subunits extends java.lang.Enum<Subunits>
DisplayMetrics.density
所造成的对于其他使用 dp 布局的系统控件或三方库控件的不良影响
Created by JessYan on 2018/8/28 10:27 Contact me Follow me ================================================
| Enum Constant and Description |
|---|
IN
单位 in
|
MM
单位 mm
|
NONE
不使用副单位
|
PT
单位 pt
|
| Modifier and Type | Method and Description |
|---|---|
static Subunits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Subunits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Subunits NONE
public static final Subunits PT
TypedValue.COMPLEX_UNIT_PTpublic static final Subunits IN
TypedValue.COMPLEX_UNIT_INpublic static final Subunits MM
TypedValue.COMPLEX_UNIT_MMpublic static Subunits[] values()
for (Subunits c : Subunits.values()) System.out.println(c);
public static Subunits valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null