AttributeSetBuilder
instead.@Deprecated
public static interface Robolectric.AttributeSetBuilder
Builder of AttributeSet
s.
Modifier and Type | Method and Description |
---|---|
Robolectric.AttributeSetBuilder |
addAttribute(int resId,
java.lang.String value)
Deprecated.
Set an attribute to the given value.
|
android.util.AttributeSet |
build()
Deprecated.
Build an
AttributeSet with the antecedent attributes. |
Robolectric.AttributeSetBuilder |
setStyleAttribute(java.lang.String value)
Deprecated.
Set the style attribute to the given value.
|
Robolectric.AttributeSetBuilder addAttribute(@IdRes int resId, java.lang.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(java.lang.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
.android.util.AttributeSet build()
Build an AttributeSet
with the antecedent attributes.
AttributeSet
.