ViewProperties

@Serializable(with = ViewPropertiesSerializer::class)
abstract class ViewProperties : Serializable

An abstract for view properties. This is needed so we can serialize/deserialize view properties map into different data classes. Common view properties MUST be implemented by subclasses for access.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val alignment: ViewAlignment
Link copied to clipboard
abstract val backgroundColor: String?
Link copied to clipboard
abstract val borderRadius: Int
Link copied to clipboard
abstract val clickable: String
Link copied to clipboard
abstract val fillMaxHeight: Boolean
Link copied to clipboard
abstract val fillMaxWidth: Boolean
Link copied to clipboard
abstract val opacity: Float?
Link copied to clipboard
abstract val padding: Int
Link copied to clipboard
abstract val viewType: ViewType
Link copied to clipboard
abstract val visible: String
Link copied to clipboard
abstract val weight: Float

Functions

Link copied to clipboard
abstract fun interpolate(computedValuesMap: Map<String, Any>): ViewProperties