Robolectric.AttributeSetBuilder
AttributeSetBuilderImpl
public interface AttributeSetBuilder extends Robolectric.AttributeSetBuilder
AttributeSet
s.Modifier and Type | Method | Description |
---|---|---|
AttributeSetBuilder |
addAttribute(int resId,
String value) |
Set an attribute to the given value.
|
AttributeSet |
build() |
Build an
AttributeSet with the antecedent attributes. |
AttributeSetBuilder |
setClassAttribute(String value) |
Set the class attribute to the given value.
|
AttributeSetBuilder |
setIdAttribute(String value) |
Set the id attribute to the given value.
|
AttributeSetBuilder |
setStyleAttribute(String value) |
Set the style attribute to the given value.
|
AttributeSetBuilder addAttribute(@IdRes int resId, String value)
addAttribute
in interface Robolectric.AttributeSetBuilder
resId
- The attribute resource id to set.value
- The value to set.AttributeSetBuilder
.AttributeSetBuilder setStyleAttribute(String value)
setStyleAttribute
in interface Robolectric.AttributeSetBuilder
value
- The value for the specified attribute in this AttributeSet
.AttributeSetBuilder
.AttributeSetBuilder setClassAttribute(String value)
value
- The value for this AttributeSet
's class
attribute.AttributeSetBuilder
.AttributeSetBuilder setIdAttribute(String value)
value
- The value for this AttributeSet
's id
attribute.AttributeSetBuilder
.AttributeSet build()
AttributeSet
with the antecedent attributes.build
in interface Robolectric.AttributeSetBuilder
AttributeSet
.