public class LayoutBoostUtils extends Object
| 构造器 | 说明 |
|---|---|
LayoutBoostUtils() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static Color |
getColorValue(String value) |
Obtains the color value.
|
static int |
getDimensionValue(Context context,
String value) |
Obtains the pixel value based on the specified dimension value.
|
static Element |
getElement(Context context,
String value,
int elementValue,
String path) |
Obtains the element value based on the input parameters.
|
static Font |
getItalic(Text text,
Boolean value) |
Obtains the text italic value.
|
static Font |
getTextFont(Text text,
String value) |
Obtains the text font value.
|
static Font |
getTextWeight(Text text,
int value) |
Obtains the text font weight.
|
public static int getDimensionValue(Context context, String value)
context - Indicates the application context.value - Indicates the dimension value.public static Element getElement(Context context, String value, int elementValue, String path)
context - Indicates the application context.value - Indicates the attribute value of the element in the XML.elementValue - Indicates the attribute value of the element in the resource file.path - Indicates the storage path of the element value resources.public static Color getColorValue(String value)
value - Indicates the color value as a string.Color object.