Class ButtonAppearance
- java.lang.Object
-
- com.yandex.mobile.ads.nativeads.template.appearance.ButtonAppearance
-
- All Implemented Interfaces:
android.os.Parcelable,com.monetization.ads.nativeads.template.appearance.NativeTemplateButtonAppearance
public final class ButtonAppearance extends java.lang.Object implements android.os.Parcelable, com.monetization.ads.nativeads.template.appearance.NativeTemplateButtonAppearanceButtonAppearance provides interfaces for Button customization. ButtonAppearance are created usingButtonAppearance.Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classButtonAppearance.BuilderBuilds aButtonAppearance.
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<ButtonAppearance>CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protectedButtonAppearance(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(java.lang.Object o)intgetBorderColor()Returns the border color specified for Button.floatgetBorderWidth()Returns the border width specified for Button.intgetNormalColor()Returns the background color specified for normal state of the Button.intgetPressedColor()Returns the backgroundcolor specified for pressed state of the Button.TextAppearancegetTextAppearance()Returns the text appearance specified for Button.inthashCode()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<ButtonAppearance> CREATOR
-
-
Method Detail
-
getBorderColor
public int getBorderColor()
Returns the border color specified for Button.- Specified by:
getBorderColorin interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateButtonAppearance- Returns:
- border color of the Button.
-
getBorderWidth
public float getBorderWidth()
Returns the border width specified for Button.- Specified by:
getBorderWidthin interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateButtonAppearance- Returns:
- border width of the Button.
-
getNormalColor
public int getNormalColor()
Returns the background color specified for normal state of the Button.- Specified by:
getNormalColorin interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateButtonAppearance- Returns:
- background color of the Button in the normal state.
-
getPressedColor
public int getPressedColor()
Returns the backgroundcolor specified for pressed state of the Button.- Specified by:
getPressedColorin interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateButtonAppearance- Returns:
- background color of the Button in the pressed state.
-
getTextAppearance
@Nullable public TextAppearance getTextAppearance()
Returns the text appearance specified for Button.- Specified by:
getTextAppearancein interfacecom.monetization.ads.nativeads.template.appearance.NativeTemplateButtonAppearance- Returns:
- text appearance of the Button.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-