Package-level declarations

Types

Link copied to clipboard
open class Accordion @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_accordionStyle, defStyleRes: Int = R.style.Sdds_Components_Accordion) : ListView

Компонент UI, реализующий список с элементами-аккордеонами.

Link copied to clipboard

Интерфейс элемента аккордеона.

Link copied to clipboard
open class AccordionItemView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_accordionItemViewStyle, defStyleRes: Int = R.style.Sdds_Components_AccordionItem) : ViewGroup, ColorStateHolder, Shapeable, HasFocusSelector

Компонент UI, представляющий элемент аккордеона с заголовком и разворачиваемым контентом.

Link copied to clipboard
open class Autocomplete @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_autocompleteStyle, defStyleRes: Int = R.style.Sdds_Components_Autocomplete) : LinearLayout

Компонент ввода текста с выпадающим списком подсказок.

Link copied to clipboard
open class Avatar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_avatarStyle, defStyleRes: Int = R.style.Sdds_Components_Avatar) : ImageView, TextDrawable.Delegate

Компонент Avatar предназначен для отрисовки пользовательских аватаров. Умеет отображать статус, инициалы имени пользователя, а также иконку действия.

Link copied to clipboard
open class AvatarGroup @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_avatarGroupStyle) : ViewGroup

Компонент AvatarGroup предназначен для компоновки нескольких компонентов Avatar вместе.

Link copied to clipboard
open class Badge @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_badgeStyle, defStyleRes: Int = R.style.Sdds_Components_Badge) : View, ColorStateHolder, TextDrawable.Delegate, Shapeable

Компонент Badge.

Link copied to clipboard
open class Button @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = android.R.attr.buttonStyle) : AppCompatButton, Checkable, Shapeable, ViewStateHolder, ColorStateHolder, HasFocusSelector

Компонент "Кнопка". Умеет отображать иконку, индикатор загрузки, а также два текста: основной и дополнительный.

Link copied to clipboard
open class ButtonGroup @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_buttonGroupStyle, defStyleRes: Int = R.style.Sdds_Components_ButtonGroup) : LinearLayout

Компонент "Группа кнопок". Группирует кнопки согласно заданному стилю.

Link copied to clipboard
open class Card @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_cardStyle, defStyleRes: Int = R.style.Sdds_Components_Card) : FlowLayout

Представляет компонент карточки на основе FlowLayout

Link copied to clipboard
open class CardContent @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_cardContentStyle, defStyleRes: Int = R.style.Sdds_Components_CardContent) : ConstraintLayout, Shapeable

Компонент контента карточки, который поддерживает возможность изменения формы (Shapeable) и селектор фокуса.

Link copied to clipboard
open class Carousel @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_carouselStyle, defStyleRes: Int = R.style.Sdds_Components_Carousel) : FrameLayout

Компонент карусели на базе ViewPager2 с кнопками навигации и индикатором страниц.

Link copied to clipboard
open class CellLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_cellStyle, defStyleRes: Int = R.style.Sdds_Components_Cell) : ViewGroup, Shapeable, HasFocusSelector, AnimatedStateManagerHolder

Компонент CellLayout (a.k.a Cell) позволяет компоновать дочерние View согласно заданным им ролей CellContent при помощи атрибута R.styleable.CellLayout_Layout_layout_cellContent. Также поддерживает установку ShapeModel. CellLayout устанавливает isDuplicateParentStateEnabled = true для каждого дочернего элемента, если R.styleable.CellLayout_sd_forceDuplicateParentState = true. Также использование атрибута R.styleable.CellLayout_Layout_sd_layout_forceDuplicateParentState у дочерних View позволяет точечно переопределить это поведение.

Link copied to clipboard
open class CheckBox @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = android.R.attr.checkboxStyle) : AppCompatCheckBox, ColorStateHolder

Компонент CheckBox

Link copied to clipboard
open class CheckBoxGroup @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_checkBoxGroupStyle, defStyleRes: Int = R.style.Sdds_Components_CheckBoxGroup) : LinearLayout

Группа компонентов CheckBox. Группа может выделять главный CheckBox, который способен контролировать состояние остальных CheckBox. При этом главный CheckBox - это всегда первый CheckBox в группе. Данное поведение включено по-умолчанию. Чтобы отключить выделение главного CheckBox в группе, нужно указать атрибут app:sd_hasMain="false".

Link copied to clipboard
open class Chip @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_chipStyle, defStyleRes: Int = R.style.Sdds_Components_Chip) : View, ViewStateHolder, ColorStateHolder, TextDrawable.Delegate, Checkable, Shapeable, HasFocusSelector

Компонент Chip.

Link copied to clipboard
open class ChipGroup @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_chipGroupStyle, defStyleRes: Int = R.style.Sdds_Components_ChipGroup) : FlowLayout, ViewStateHolder, ColorStateHolder

Компонент для группировки нескольких Chip. Поддерживает изменение вертикальных и горизонтальных отступов между дочерними элементами. Если компоненту задана неограниченная ширина, то дочерние элементы будут располагаться друг за другом в одну строку. Если ширина ограничена, то не вместившиеся дочерние элементы будут перенесены на следующие строки. Компоненту также можно задать gravity - выравнивание дочерних элементов относительно размеров строки, в которой они находятся.

Link copied to clipboard
open class CircularProgressBar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_circularProgressBarStyle, defStyleRes: Int = R.style.Sdds_Components_CircularProgressBar) : FrameLayout, ColorStateHolder

Круглый индикатор прогресса от minProgress до maxProgress.

Link copied to clipboard
open class CodeField @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_codeFieldStyle, defStyleRes: Int = R.style.Sdds_Components_CodeField) : ViewGroup, ColorStateHolder

Компонент CodeField

Link copied to clipboard
open class CodeInput @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_codeInputStyle, defStyleRes: Int = R.style.Sdds_Components_CodeInput) : CodeField

Компонент CodeInput

Link copied to clipboard
open class ConstraintLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : ConstraintLayout, Shapeable, HasFocusSelector

Реализация ConstraintLayout с поддержкой ShapeModel и селектором фокуса

Link copied to clipboard
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.

Link copied to clipboard
open class Divider @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_dividerStyle, defStyleRes: Int = R.style.Sdds_Components_Indicator) : View, ColorStateHolder, Shapeable

Компонент Divider.

Link copied to clipboard
open class Drawer @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_drawerStyle, defStyleRes: Int = R.style.Sdds_Components_Drawer) : FrameLayout

Контейнер - играет роль выдвижной панели в DrawerLayout, для удобства расположения контента компонент разделен на три секции - Header, Body, Footer.

Link copied to clipboard
open class DrawerLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : FrameLayout

Контейнер, который содержит выдвижную панель и основной контент экрана.

Link copied to clipboard
open class DropdownMenu @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_dropdownMenuStyle, defStyleRes: Int = R.style.Sdds_Components_DropdownMenu) : Popover

Всплывающее окно — отображает список элементов поверх контента.

Link copied to clipboard
open class Editable @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_editableStyle, defStyleRes: Int = R.style.Sdds_Components_Editable) : AppCompatEditText, ColorStateHolder
Link copied to clipboard
open class File @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_fileStyle, defStyleRes: Int = R.style.Sdds_Components_File) : LinearLayout, ColorStateHolder

Компонент File позволяет компоновать дочерние View согласно заданным им ролей FileContent при помощи атрибута R.styleable.File_Layout_layout_fileContent. Предназначен для отображения информации о загружаемом контенте, показывая прогресс загрузки с помощью компонентов ProgressBar и CircularProgressBar

Link copied to clipboard
open class FlowLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_flowLayoutStyle, defStyleRes: Int = R.style.Sdds_Components_FlowLayout) : ViewGroup, Shapeable, HasFocusSelector

FlowLayout поддерживает позиционирование с автоматическим построчным переносом.

Link copied to clipboard
open class FrameLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : FrameLayout, Shapeable, HasFocusSelector

Реализация FrameLayout с поддержкой ShapeModel и селектором фокуса

Link copied to clipboard
open class HorizontalScrollView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : HorizontalScrollView

Компонент-контейнер для поддержки горизонтального скролла. Компонент также умеет автоматически компенсировать отступы, необходимые для корректной работы селектора фокуса.

Link copied to clipboard
open class IconBadge @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_iconBadgeStyle, defStyleRes: Int = R.style.Sdds_Components_Badge) : Badge

Компонент "Badge с иконкой". Умеет отображать только иконку.

Link copied to clipboard
open class IconButton @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_iconButtonStyle) : Button

Компонент "Кнопка с иконкой". Умеет отображать только иконку и индикатор загрузки.

Link copied to clipboard
open class IconTabItem @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_iconTabItemStyle, defStyleRes: Int = R.style.Sdds_Components_IconTabItem) : TabItem

Таб-элемент с иконкой и опциональным счётчиком.

Link copied to clipboard
open class ImageView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_imageViewStyle, defStyleRes: Int = R.style.Sdds_Components_ImageView) : AppCompatImageView, ViewStateHolder, ColorStateHolder, Shapeable, HasFocusSelector, AnimatedStateManagerHolder

Компонент для отображения изображений. Поддерживает установку внутренних отступов только для контента (app:sd_contentPadding и т.д.). Внутренние отступы для контента не применяются на фон (android:background).

Link copied to clipboard
open class Indicator @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_indicatorStyle, defStyleRes: Int = R.style.Sdds_Components_Indicator) : View, ColorStateHolder, Shapeable

Компонент Indicator.

Link copied to clipboard
open class LinearLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : LinearLayout, Shapeable, HasFocusSelector

Реализация LinearLayout с поддержкой ShapeModel и селектором фокуса

Link copied to clipboard
open class LinkButton @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_linkButtonStyle) : Button

Компонент "Кнопка с иконкой". Умеет отображать только иконку и индикатор загрузки.

Link copied to clipboard
interface ListItem

Базовый интерфейс элемента в ListViewAdapter

Link copied to clipboard
open class ListItemView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_listItemViewStyle, defStyleRes: Int = R.style.Sdds_Components_ListItem) : CellLayout, ColorStateHolder

Компонент - элемента списка ListView Можно использовать в ListViewAdapter.

Link copied to clipboard
open class ListView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_listViewStyle, defStyleRes: Int = R.style.Sdds_Components_List) : RecyclerView, Shapeable

Компонент для отображения списка из элементов на основе RecyclerView. Можно использовать с ListViewAdapter в качестве RecyclerView.Adapter и ListItemView в качестве элементов. Компонент также умеет автоматически компенсировать отступы, необходимые для корректной работы селектора фокуса.

Link copied to clipboard

Базовый адаптер для ListView

Link copied to clipboard

Базовый ViewHolder для ListViewAdapter

Link copied to clipboard
open class Loader @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_loaderStyle, defStyleRes: Int = R.style.Sdds_Components_Loader) : FrameLayout

Компонент, который используется для уведомления пользователей о том, что загрузка началась. Может отображать бесконечный прогресс Spinner или конечный CircularProgressBar.

Link copied to clipboard
open class NavigationBar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_navigationBarStyle, defStyleRes: Int = R.style.Sdds_Components_NavigationBar) : LinearLayout, ColorStateHolder

Верхняя панель интерфейса, служащая для навигации и отображения ключевых действий. Позволяет компоновать дочерние View согласно заданным им ролей NavigationBarContent при помощи атрибута R.styleable.NavigationBar_Layout_layout_navigationBarContent. Также поддерживает установку ShapeModel.

Link copied to clipboard
open class NavigationDrawer @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_navigationDrawerStyle, defStyleRes: Int = R.style.Sdds_Components_NavigationDrawer) : ViewGroup, Shapeable

Компонент NavigationDrawer поддерживающий заголовок, подвал, список элементов и анимацию раскрытия/сворачивания.

Link copied to clipboard
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
Link copied to clipboard
open class NoteCompact @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_noteCompactStyle, defStyleRes: Int = R.style.Sdds_Components_NoteCompact) : Note
Link copied to clipboard

Класс для отображения уведомлений с помощью системы оверлеев SDDS UI Kit. Используйте makeNotification для создания и показа.

Link copied to clipboard
open class NotificationContent @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_notificationContentStyle, defStyleRes: Int = R.style.Sdds_Components_NotificationContent) : LinearLayout, ColorStateHolder

Контент для компонента уведомлений Notification

Link copied to clipboard
open class OverlayView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_overlayViewStyle, defStyleRes: Int = R.style.Sdds_Components_OverlayView) : FrameLayout

Контейнер-подложка для всплывающих компонентов (Modal, Toast и т.д.).

Link copied to clipboard
open class PaginationDots @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_paginationDotsStyle, defStyleRes: Int = R.style.Sdds_Components_PaginationDots) : View

Класс PaginationDots — кастомный View для отображения пагинационных индикаторов (точек) с поддержкой анимаций, адаптивного количества видимых точек, масштабирования краевых индикаторов и других пользовательских настроек.

Link copied to clipboard
open class Popover @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_popoverStyle, defStyleRes: Int = R.style.Sdds_Components_Popover) : PopupWindow, Shapeable, ColorStateHolder

Всплывающее окно — появляется при наведении или клике на элемент, используется для отображения одного контента поверх другого.

Link copied to clipboard
open class ProgressBar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = android.R.attr.progressBarStyle, defStyleRes: Int = R.style.Sdds_Components_ProgressBar) : View, ColorStateHolder

Индикатор прогресса от minProgress до maxProgress.

Link copied to clipboard
open class RadioBox @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = android.R.attr.radioButtonStyle) : AppCompatRadioButton

Компонент RadioBox

Link copied to clipboard
open class RadioBoxGroup @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_radioBoxGroupStyle, defStyleRes: Int = R.style.Sdds_Components_RadioBoxGroup) : RadioGroup

Группа RadioBox.

Link copied to clipboard
open class RectSkeleton @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_rectSkeletonStyle, defStyleRes: Int = R.style.Sdds_Components_RectSkeleton) : ShimmerLayout, ColorStateHolder

Компонент-заглушка с эффектом мерцания.

Link copied to clipboard
open class ScrollBar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_scrollBarStyle, defStyleRes: Int = R.style.Sdds_Components_ScrollBar) : View

Класс для отображения скролла в контейнерах поддерживающих скроллинг.

Link copied to clipboard
open class ScrollView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : ScrollView

Компонент-контейнер для поддержки вертикального скролла. Компонент также умеет автоматически компенсировать отступы, необходимые для корректной работы селектора фокуса.

Link copied to clipboard
open class Segment @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_segmentStyle, defStyleRes: Int = R.style.Sdds_Components_Segment) : LinearLayout

Компонент для группировки нескольких SegmentItem

Link copied to clipboard
open class SegmentItem @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_segmentItemStyle) : Button, TextDrawable.Delegate

Компонент "SegmentItem". Умеет отображать иконку, counter, а также два текста: основной и дополнительный.

Link copied to clipboard
open class Select @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_selectStyle, defStyleRes: Int = R.style.Sdds_Components_Select) : FrameLayout

Компонент Select представляет триггер, при нажатии на который, появляется всплывающее окно — выпадающий список элементов поверх контента. Если в качестве триггера устанавливается Button или TextField - они будут автоматически стилизованы (при использовании готовых стилей дизайн системы или при верно настроенном стиле Select). В качестве выпадающего списка используется компонент DropdownMenu, который так же автоматически стилизуется.

Link copied to clipboard
abstract class SelectAdapter<T : ListItem, VH : ListViewHolder>(diffCallback: DiffUtil.ItemCallback<T> = DefaultSelectItemDiffCallback(), var selectionMode: Select.SelectionMode = SelectionMode.SINGLE) : ListViewAdapter<T, VH>

Базовый адаптер для Select

Link copied to clipboard
open class SelectItemView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_selectItemStyle, defStyleRes: Int = R.style.Sdds_Components_SelectItem) : LinearLayout, ColorStateHolder, Checkable

Компонент SelectItemView - обертка компонента CellLayout c возможностью отображения в начале компоннета Иконки или CheckBox, информирующих о том, что SelectItemView выбран (находится в состоянии checked). Используется в качестве элемента списка в выпадающем меню компонента Select.

Link copied to clipboard
open class ShimmerLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0) : FrameLayout

Контейнер для отрисовки эффекта мерцания. Если установить цвет, то эффект мерцания будет достигаться за счет изменения альфы установленного цвета. Если установить градиент (шейдер), то эффект мерцания будет достигаться за счет перемещения прямоугольника с примененным шейдером.

Link copied to clipboard

Простая реализация AccordionAdapter для стандартных элементов.

Link copied to clipboard

Простая реализация адаптера ListViewAdapter для ListView

Link copied to clipboard

Простая реализация адаптера SelectAdapter для Select

Link copied to clipboard

Предоставлет ширину строки в TextSkeleton

Link copied to clipboard
open class Slider @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_sliderStyle, defStyleRes: Int = R.style.Sdds_Components_Slider) : LinearLayout, ColorStateHolder

Компонент Slider - применяется для указания значения (value) из заданного диапозона. Представляет собой контейнер для отображения SliderView совместно с Label, блоком, включающим в себя заголовок (title) и иконку (icon), с возможностью конфигурирования расположения этих блоков.

Link copied to clipboard
open class Spinner @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_spinnerStyle, defStyleRes: Int = R.style.Sdds_Components_Spinner) : View, ColorStateHolder

Индикатор загрузки (спиннер)

Link copied to clipboard
open class Switch @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_switchStyle, defStyleRes: Int = R.style.Sdds_Components_Switch) : CompoundButton, Shapeable

Компонент Switch (переключатель)

Link copied to clipboard
open class TabItem @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_tabItemStyle, defStyleRes: Int = R.style.Sdds_Components_TabItem) : LinearLayout, ColorStateHolder

Компонент таб-элемента с иконкой, текстами и опциональными: иконкой-действием и счётчиком. Поддерживает состояние цвета через ColorStateHolder.

Link copied to clipboard
open class Tabs @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_tabsStyle, defStyleRes: Int = R.style.Sdds_Components_Tabs) : ViewGroup, Shapeable, ColorStateHolder

Контейнер вкладок (tabs) с поддержкой скролла, индикатора выбранного таба и режима раскрытия скрытых вкладок через disclosure-элемент.

Link copied to clipboard
open class TextArea @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_textAreaStyle, defStyleRes: Int = R.style.Sdds_Components_TextArea) : TextField

Компонент TextField - многострочное текстовое поле с поддержкой отображения статуса, заголовка, плейсхолдера, иконок и чипов.

Link copied to clipboard
open class TextField @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_textFieldStyle, defStyleRes: Int = R.style.Sdds_Components_TextField) : ViewGroup, ColorStateHolder

Компонент TextField - однострочное текстовое поле с поддержкой отображения статуса, заголовка, плейсхолдера и иконок.

Link copied to clipboard
open class TextSkeleton @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_textSkeletonStyle, defStyleRes: Int = R.style.Sdds_Components_TextSkeleton) : LinearLayout, ColorStateHolder

Компонент - заглушка, может отображать заданное количество RectSkeleton, с эффектом мерцания.

Link copied to clipboard
open class TextView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = android.R.attr.textViewStyle) : AppCompatTextView, ViewStateHolder, ColorStateHolder, HasFocusSelector, AnimatedStateManagerHolder

Компонент для отображения текста.

Link copied to clipboard

Класс для отображения временных сообщений (тостов) с помощью системы оверлеев SDDS UI Kit. Используйте makeToast или simpleToast для создания и показа.

Link copied to clipboard
class ToastView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_toastStyle, defStyleRes: Int = R.style.Sdds_Components_Toast) : CellLayout, ColorStateHolder

Представление для отображения тоста. Поддерживает иконки слева/справа, стилизованный текст и состояния цвета.

Link copied to clipboard
open class ToolBar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_toolBarStyle, defStyleRes: Int = 0) : LinearLayout

Компонент ToolBar. Группирует кнопки согласно заданному стилю.

Link copied to clipboard
open class Tooltip @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_tooltipStyle, defStyleRes: Int = R.style.Sdds_Components_Tooltip) : Popover

Простое всплывающее окно с текстом и иконкой.

Link copied to clipboard
open class View @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : View, Shapeable, HasFocusSelector

Реализация android.view.View с поддержой селектора фокуса и Shapeable

Link copied to clipboard
open class Wheel @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.sd_wheelStyle, defStyleRes: Int = R.style.Sdds_Components_Wheel) : LinearLayout

Компонент выбора значения в виде набора вертикальных колес (списков), напоминающих колесо прокрутки.

Properties

Link copied to clipboard

Возвращает кол-во px в указанном кол-ве dp

val Int.dp: Int

Возвращает кол-во целых px в указанном кол-ве целых dp

Functions

Link copied to clipboard

Возвращает целочисленное значение цвета по аттрибуту цвета темы

Link copied to clipboard

Устанавливает для Popover фиксированную высоту height

Link copied to clipboard

Устанавливает для Popover фиксированную ширину width