| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
getBoolValue() |
Obtains the Boolean value of an attribute.
|
Color |
getColorValue() |
Obtains the
Color value of an attribute. |
Context |
getContext() |
Obtains the context associated with an attribute.
|
int |
getDimensionValue() |
Obtains the dimension value of an attribute.
|
Element |
getElement() |
Obtains the
Element value of an attribute. |
float |
getFloatValue() |
Obtains the floating point value of an attribute.
|
int |
getIntegerValue() |
Obtains the integer value of an attribute.
|
long |
getLongValue() |
Obtains the long value of an attribute.
|
String |
getName() |
Obtains the name of an attribute, for example, width.
|
String |
getStringValue() |
Obtains the character string value of an attribute.
|
String getName()
String getStringValue()
int getIntegerValue()
0 if the attribute does
not have an integer value.boolean getBoolValue()
true or false) of the attribute; returns the default value
false if the attribute does not have a Boolean value.float getFloatValue()
0 if the
attribute does not have a floating point value.long getLongValue()
0 if the attribute does not
have a long value.int getDimensionValue()
0 if the attribute does not have a dimension value.Context getContext()