Size

sealed class Size

Determines how a BaseAxis sizes itself.

Inheritors

Types

Link copied to clipboard
class Auto(val minDp: Float = 0.0f, val maxDp: Float = Float.MAX_VALUE) : BaseAxis.Size

Allows a BaseAxis to adopt its preferred size from the given range.

Link copied to clipboard
object Companion

Provides access to BaseAxis.Size factory functions.

Link copied to clipboard
class Fixed(val valueDp: Float) : BaseAxis.Size

Instructs a BaseAxis to adopt the given size.

Link copied to clipboard
class Fraction(val fraction: Float) : BaseAxis.Size

The axis will use a fraction of the available space.

Link copied to clipboard
class Text(val text: CharSequence) : BaseAxis.Size

The axis will measure the size of its label component (label) for the given String (text), and it will use this size. In the case of VerticalAxis, the width of the axis line and the tick length will also be considered.