com.yandex.mobile.ads.nativeads.template.appearance
Class ButtonAppearance
java.lang.Object
com.yandex.mobile.ads.nativeads.template.appearance.ButtonAppearance
- All Implemented Interfaces:
- android.os.Parcelable
public final class ButtonAppearance
extends java.lang.Object
implements android.os.Parcelable
ButtonAppearance provides interfaces for Button customization. ButtonAppearance are created using
ButtonAppearance.Builder
.Nested Class Summary
Modifier and Type | Class and Description |
---|---|
static class | ButtonAppearance.Builder
Builds a
ButtonAppearance . |
Field Summary
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<ButtonAppearance> | CREATOR |
Method Summary
Modifier and Type | Method and Description |
---|---|
int | describeContents() |
boolean | equals(java.lang.Object o) |
int | getBorderColor()
Returns the border color specified for Button.
|
float | getBorderWidth()
Returns the border width specified for Button.
|
int | getNormalColor()
Returns the background color specified for normal state of the Button.
|
int | getPressedColor()
Returns the backgroundcolor specified for pressed state of the Button.
|
TextAppearance | getTextAppearance()
Returns the text appearance specified for Button.
|
int | hashCode() |
void | writeToParcel(android.os.Parcel dest, int flags) |
Method Detail
getBorderColor
public int getBorderColor()
Returns the border color specified for Button.
- Returns:
- border color of the Button.
getBorderWidth
public float getBorderWidth()
Returns the border width specified for Button.
- Returns:
- border width of the Button.
getNormalColor
public int getNormalColor()
Returns the background color specified for normal state of the Button.
- Returns:
- background color of the Button in the normal state.
getPressedColor
public int getPressedColor()
Returns the backgroundcolor specified for pressed state of the Button.
- Returns:
- background color of the Button in the pressed state.
getTextAppearance
@Nullable public TextAppearance getTextAppearance()
Returns the text appearance specified for Button.
- Returns:
- text appearance of the Button.
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable