Package org.robolectric
Interface Robolectric.AttributeSetBuilder
- All Known Subinterfaces:
AttributeSetBuilder
- All Known Implementing Classes:
AttributeSetBuilderImpl
- Enclosing class:
- Robolectric
@Deprecated public static interface Robolectric.AttributeSetBuilder
Deprecated.
Use
AttributeSetBuilder
instead.Builder of
AttributeSet
s.-
Method Summary
Modifier and Type Method Description Robolectric.AttributeSetBuilder
addAttribute(int resId, String value)
Deprecated.Set an attribute to the given value.AttributeSet
build()
Deprecated.Build anAttributeSet
with the antecedent attributes.Robolectric.AttributeSetBuilder
setStyleAttribute(String value)
Deprecated.Set the style attribute to the given value.
-
Method Details
-
addAttribute
Deprecated.Set an attribute to the given value. The value will be interpreted according to the attribute's format.- Parameters:
resId
- The attribute resource id to set.value
- The value to set.- Returns:
- This
AttributeSetBuilder
.
-
setStyleAttribute
Deprecated.Set the style attribute to the given value. The value will be interpreted as a resource reference.- Parameters:
value
- The value for the specified attribute in thisAttributeSet
.- Returns:
- This
AttributeSetBuilder
.
-
build
AttributeSet build()Deprecated.Build anAttributeSet
with the antecedent attributes.- Returns:
- A new
AttributeSet
.
-