AttributeSetBuilder instead.@Deprecated public static interface Robolectric.AttributeSetBuilder
Builder of AttributeSets.
| Modifier and Type | Method and Description |
|---|---|
Robolectric.AttributeSetBuilder |
addAttribute(int resId,
String value)
Deprecated.
Set an attribute to the given value.
|
AttributeSet |
build()
Deprecated.
Build an
AttributeSet with the antecedent attributes. |
Robolectric.AttributeSetBuilder |
setStyleAttribute(String value)
Deprecated.
Set the style attribute to the given value.
|
Robolectric.AttributeSetBuilder addAttribute(@IdRes int resId, String value)
Set an attribute to the given value.
The value will be interpreted according to the attribute’s format.
resId - The attribute resource id to set.value - The value to set.AttributeSetBuilder.Robolectric.AttributeSetBuilder setStyleAttribute(String value)
Set the style attribute to the given value.
The value will be interpreted as a resource reference.
value - The value for the specified attribute in this AttributeSet.AttributeSetBuilder.AttributeSet build()
Build an AttributeSet with the antecedent attributes.
AttributeSet.