FlowLayout

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 поддерживает позиционирование с автоматическим построчным переносом.

Author

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

Parameters

context

контекст

attrs

аттрибуты view

defStyleAttr

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

Inheritors

Constructors

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

Types

Link copied to clipboard
object Companion
Link copied to clipboard

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

Properties

Link copied to clipboard
open var alignment: Int

Выравнивание элементов внутри строк по вертикали при горизонтальной ориентации, или внутри столбцов по горизонтали при вертикальной.

Link copied to clipboard
open var arrangement: Int

Расположение элементов относительно выбранной ориентации

Link copied to clipboard
open var gravity: Int

Выравнивание дочерних элементов относительно строки, в которой они находятся.

Link copied to clipboard
open var itemsPerLine: Int

Кол-во элементов в строке/столбце

Link copied to clipboard
open var orientation: Int

Ориентация. Может быть ORIENTATION_VERTICAL или ORIENTATION_HORIZONTAL

Link copied to clipboard
open override val shape: ShapeModel?

Functions

Link copied to clipboard
Link copied to clipboard
open override fun setPressed(pressed: Boolean)