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.ObjectBuilds aButtonAppearance.
-
-
Constructor Summary
Constructors Constructor Description Builder()Creates a newButtonAppearance.Builderfor constructing aButtonAppearance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ButtonAppearancebuild()Constructs aButtonAppearancewith the specified appearance values.ButtonAppearance.BuildersetBorderColor(int borderColor)Returns Button appearance configured with border color.ButtonAppearance.BuildersetBorderWidth(float borderWidth)Returns Button appearance configured with border width.ButtonAppearance.BuildersetNormalColor(int normalColor)Returns Button appearance configured with background color for normal state.ButtonAppearance.BuildersetPressedColor(int pressedColor)Returns Button appearance configured with background color for pressed state.ButtonAppearance.BuildersetTextAppearance(TextAppearance textAppearance)Returns Button appearance configured with Button text appearance.
-
-
-
Constructor Detail
-
Builder
public Builder()
Creates a newButtonAppearance.Builderfor constructing aButtonAppearance
-
-
Method Detail
-
build
@NonNull public ButtonAppearance build()
Constructs aButtonAppearancewith 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.
-
-