All Implemented Interfaces:
android.os.Parcelable


public final class ButtonAppearance
extends java.lang.Object
implements android.os.Parcelable
Класс, который определяет интерфейс для настройки стандартного оформления кнопок в рекламном объявлении. Объект для настройки стандартного оформления кнопок в рекламном объявлении создается с помощью ButtonAppearance.Builder.

Nested Class Summary

Nested Classes
Modifier and TypeClass and Description
static class ButtonAppearance.Builder
Класс для изменения настроек стандартного оформления кнопок в нативной рекламе.

Nested classes/interfaces inherited from interface android.os.Parcelable

android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>

Field Summary

Fields
Modifier and TypeField and Description
static android.os.Parcelable.Creator<ButtonAppearance>CREATOR 

Fields inherited from interface android.os.Parcelable

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

Method Summary

All Methods
Instance Methods
Concrete Methods
Modifier and TypeMethod and Description
intdescribeContents() 
booleanequals(java.lang.Object o) 
intgetBorderColor()
Возвращает цвет рамки кнопки.
floatgetBorderWidth()
Возвращает толщину рамки кнопки.
intgetNormalColor()
Возвращает цвет фона кнопки в обычном состоянии.
intgetPressedColor()
Возвращает цвет фона кнопки в нажатом состоянии.
TextAppearancegetTextAppearance()
Возвращает настройки текста на кнопке.
inthashCode() 
voidwriteToParcel(android.os.Parcel dest, int flags) 

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

CREATOR

public static final android.os.Parcelable.Creator<ButtonAppearance> CREATOR

Method Detail

getBorderColor

public int getBorderColor()
Возвращает цвет рамки кнопки.
Returns:
Цвет рамки кнопки.

getBorderWidth

public float getBorderWidth()
Возвращает толщину рамки кнопки.
Returns:
Толщина рамки кнопки.

getNormalColor

public int getNormalColor()
Возвращает цвет фона кнопки в обычном состоянии.
Returns:
Цвет фона кнопки в обычном состоянии.

getPressedColor

public int getPressedColor()
Возвращает цвет фона кнопки в нажатом состоянии.
Returns:
Цвет фона кнопки в нажатом состоянии.

getTextAppearance

@Nullable
public TextAppearance getTextAppearance()
Возвращает настройки текста на кнопке.
Returns:
Настройки текста на кнопке.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

describeContents

public int describeContents()
Specified by:
describeContents in interface android.os.Parcelable

writeToParcel

public void writeToParcel(android.os.Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface android.os.Parcelable