Note

open class Note @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_noteStyle, defStyleRes: Int = R.style.Sdds_Components_Note) : FrameLayout, ColorStateHolder

Parameters

context

контекст

attrs

аттрибуты view

defStyleAttr

аттрибут стиля по умолчанию

defStyleRes

ресурс стиля по умолчанию

Inheritors

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_noteStyle, defStyleRes: Int = R.style.Sdds_Components_Note)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Расположение contentBefore

Link copied to clipboard

Параметры расположения дочерних View в Note

Link copied to clipboard

Роли для дочерних элементов View в Note

Properties

Link copied to clipboard
open var closeIconSize: Int

Размер иконки close

Link copied to clipboard
open override var colorState: ColorState?

Состояние внешнего вида Note

Link copied to clipboard

Устанавливает расположение contentBefore

Link copied to clipboard
open var iconSize: Int

Размер иконки в contentBefore

Link copied to clipboard
open var text: CharSequence?

Текст

Link copied to clipboard
open var textTopMargin: Int

Отступ text от title

Link copied to clipboard
open var title: CharSequence?

Заголовок

Functions

Link copied to clipboard
open override fun addView(child: View?, index: Int, params: ViewGroup.LayoutParams?)
Link copied to clipboard
Link copied to clipboard
open override fun onViewRemoved(child: View?)
Link copied to clipboard
open fun removeAction()

Удаляет контент из слота Action

Link copied to clipboard

Удаляет контент из слота ContentBefore

Link copied to clipboard
open override fun removeView(view: View?)
Link copied to clipboard
open fun setAction(view: View?, params: ViewGroup.LayoutParams? = null)
open fun setAction(@LayoutRes id: Int, params: ViewGroup.LayoutParams? = null)

Устанавливает контент в слот Action

Link copied to clipboard
open fun setActionMarginTop(topMargin: Int)

Устанавливает отступ от text до action topMargin

Link copied to clipboard

Устанавливает слушатель нажатий на иконку закрытия.

Link copied to clipboard
open fun setCloseIconMargins(topMargin: Int = 0, endMargin: Int = 0)

Устанавливает отступы от closeIcon

Link copied to clipboard
open fun setCloseIconResource(@DrawableRes closeIconRes: Int)

Устанавливает иконку close из ресурсов по идентификатору

Link copied to clipboard
open fun setCloseIconTintList(newCloseIconTint: ColorStateList?)

Устанавливает цвета иконки close newCloseIconTint

Link copied to clipboard
open fun setContentBefore(view: View?, params: ViewGroup.LayoutParams? = null)

Устанавливает контент в слот ContentBefore

Link copied to clipboard
open fun setContentBeforeEndMargin(endMargin: Int)

Устанавливает отступ от слота contentBefore в конце

Link copied to clipboard
fun setHasClose(hasClose: Boolean)

Устанавливает видимость иконки close

Link copied to clipboard
open fun setIconResource(@DrawableRes iconRes: Int)

Устанавливает иконку из ресурсов по идентификатору

Link copied to clipboard
open fun setIconTintList(newIconTint: ColorStateList?)

Устанавливает цвета иконки в contentBefore newIconTint

Link copied to clipboard
open fun setTextColor(newTextColor: ColorStateList?)

Устанавливает цвета текста newTextColor

open fun setTextColor(@ColorInt textColor: Int)

Устанавливает цвет текста textColor

Link copied to clipboard
open fun setTitleColor(newTitleColor: ColorStateList?)

Устанавливает цвета заголовка newTitleColor

open fun setTitleColor(@ColorInt titleColor: Int)

Устанавливает цвет заголовка titleColor

Link copied to clipboard
open fun setTitlePaddingEnd(paddingEnd: Int)

Устанавливает отступ от title до иконки close paddingEnd