Class ButtonAppearance.Builder

    • Method Detail

      • 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.