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 aButtonAppearance
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a newButtonAppearance.Builder
for constructing aButtonAppearance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ButtonAppearance
build()
Constructs aButtonAppearance
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.
-
-
-
Constructor Detail
-
Builder
public Builder()
Creates a newButtonAppearance.Builder
for constructing aButtonAppearance
-
-
Method Detail
-
build
@NonNull public ButtonAppearance build()
Constructs aButtonAppearance
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.
-
-