com.yandex.mobile.ads.nativeads.template.appearance
Class ButtonAppearance.Builder
java.lang.Object
com.yandex.mobile.ads.nativeads.template.appearance.ButtonAppearance.Builder
- Enclosing class:
- ButtonAppearance
public static final class ButtonAppearance.Builder
extends java.lang.Object
Builds a
ButtonAppearance
.Constructor Summary
Constructor and Description |
---|
Builder()
Creates a new
ButtonAppearance.Builder for constructing a ButtonAppearance |
Method Summary
Modifier and Type | Method and Description |
---|---|
ButtonAppearance | build()
Constructs a
ButtonAppearance with the specified appearance values. |
ButtonAppearance.Builder | setBorderColor(int borderColor)
Returns Button appearance configured with border color.
|
ButtonAppearance.Builder | setBorderWidth(float borderWidth)
Returns Button appearance configured with border width.
|
ButtonAppearance.Builder | setNormalColor(int normalColor)
Returns Button appearance configured with background color for normal state.
|
ButtonAppearance.Builder | setPressedColor(int pressedColor)
Returns Button appearance configured with background color for pressed state.
|
ButtonAppearance.Builder | setTextAppearance(TextAppearance textAppearance)
Returns Button appearance configured with Button text appearance.
|
Method Detail
build
@NonNull public ButtonAppearance build()
Constructs a
ButtonAppearance
with the specified appearance values.- Returns:
ButtonAppearance
.
setBorderColor
@NonNull public ButtonAppearance.Builder setBorderColor(int borderColor)
Returns Button appearance configured with border color.
- Parameters:
borderColor
- Button border color.- Returns:
- ButtonAppearance.Builder with the specified border color.
setBorderWidth
@NonNull public ButtonAppearance.Builder setBorderWidth(float borderWidth)
Returns Button appearance configured with border width.
- Parameters:
borderWidth
- Button border width.- Returns:
- ButtonAppearance.Builder with the specified border width.
setNormalColor
@NonNull public ButtonAppearance.Builder setNormalColor(int normalColor)
Returns Button appearance configured with background color for normal state.
- Parameters:
normalColor
- Button background color for normal state.- Returns:
- ButtonAppearance.Builder with the specified background color for normal state.
setPressedColor
@NonNull public ButtonAppearance.Builder setPressedColor(int pressedColor)
Returns Button appearance configured with background color for pressed state.
- Parameters:
pressedColor
- Button background color for pressed state.- Returns:
- ButtonAppearance.Builder with the specified background color for pressed state.
setTextAppearance
@NonNull public ButtonAppearance.Builder setTextAppearance(@NonNull TextAppearance textAppearance)
Returns Button appearance configured with Button text appearance.
- Parameters:
textAppearance
- Button text appearance.- Returns:
- ButtonAppearance.Builder with the specified text appearance.