枚举 MaterialPreset
- 所有已实现的接口:
Serializable, Comparable<MaterialPreset>
Named material-only presets used by the demo settings panel.
The label "Morden" intentionally preserves the requested spelling.
Applying a preset changes exactly the eight material values; it does not
replace the Theme, palette, type settings, geometry, motion, or background.
-
枚举常量概要
枚举常量枚举常量说明Sigma 1.5, refraction 30, dispersion 2, opacity 1, shine 1.5, blur 1, tint .5, selected tint .5.Sigma 15, refraction 15, dispersion 1, opacity 1, shine 1.5, blur 1, tint .5, selected tint .5.Sigma/refraction/dispersion/blur 0, opacity/tint/selected tint 1, shine 1.5. -
方法概要
修饰符和类型方法说明Apply the eight stored values to an existing theme, on its UI thread.Exact label displayed by the settings panel.static MaterialPreset返回带有指定名称的该类型的枚举常量。static MaterialPreset[]values()返回包含该枚举类型的常量的数组, 顺序与声明这些常量的顺序相同
-
枚举常量详细资料
-
MORDEN
Sigma 15, refraction 15, dispersion 1, opacity 1, shine 1.5, blur 1, tint .5, selected tint .5. -
LIQUID_GLASS
Sigma 1.5, refraction 30, dispersion 2, opacity 1, shine 1.5, blur 1, tint .5, selected tint .5. -
NORMAL
Sigma/refraction/dispersion/blur 0, opacity/tint/selected tint 1, shine 1.5.
-
-
方法详细资料
-
values
返回包含该枚举类型的常量的数组, 顺序与声明这些常量的顺序相同- 返回:
- 包含该枚举类型的常量的数组,顺序与声明这些常量的顺序相同
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
displayName
Exact label displayed by the settings panel. -
applyTo
-