ListView

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 в качестве элементов. Компонент также умеет автоматически компенсировать отступы, необходимые для корректной работы селектора фокуса.

Author

Малышев Александр on 04.06.2025

Parameters

context

контекст

attrs

аттрибуты view

defStyleAttr

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

defStyleRes

стиль по умолчанию

Inheritors

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val shape: ShapeModel?

Форма объекта

Functions

Link copied to clipboard
open override fun onScrollStateChanged(state: Int)