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.UseAttributeSetBuilder
instead.Builder ofAttributeSet
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods 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 Detail
-
addAttribute
Robolectric.AttributeSetBuilder addAttribute(@IdRes int resId, String value)
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
Robolectric.AttributeSetBuilder setStyleAttribute(String value)
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
.
-
-