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.UseAttributeSetBuilderinstead.Builder ofAttributeSets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Robolectric.AttributeSetBuilderaddAttribute(int resId, String value)Deprecated.Set an attribute to the given value.AttributeSetbuild()Deprecated.Build anAttributeSetwith the antecedent attributes.Robolectric.AttributeSetBuildersetStyleAttribute(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 anAttributeSetwith the antecedent attributes.- Returns:
- A new
AttributeSet.
-
-