Counter

open class Counter @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_counterStyle, defStyleRes: Int = R.style.Sdds_Components_Counter) : View, Shapeable, ColorStateHolder, TextDrawable.Delegate

Компонент Counter.

Parameters

context

контекст

attrs

аттрибуты view

defStyleAttr

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

Constructors

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

Properties

Link copied to clipboard
open override var colorState: ColorState?

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

Link copied to clipboard
open override val shape: ShapeModel?
Link copied to clipboard
open var text: CharSequence

Текст

Functions

Link copied to clipboard
open override fun onDrawableSizeChange()

Колбэк изменения размера TextDrawable

Link copied to clipboard
open override fun setEnabled(enabled: Boolean)
Link copied to clipboard
open override fun setPadding(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open override fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)
Link copied to clipboard
open fun setTextAppearance(@StyleRes appearanceId: Int)

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

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

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