FractionalThreshold

Added in 1.0.0
Deprecated in 1.6.0
  • Common/All
  • Android/JVM

A fractional threshold will be at a fraction of the way between the two anchors.

Summary

Public constructors

Cmn

Public functions

open Float
Density.computeThreshold(fromValue: Float, toValue: Float)

Compute the value of the threshold (in pixels), once the values of the anchors are known.

Cmn

Public constructors

FractionalThreshold

FractionalThreshold(fraction: Float)
Parameters
fraction: Float

The fraction (between 0 and 1) that the threshold will be at.

Public functions

computeThreshold

open fun Density.computeThreshold(fromValue: Float, toValue: Float): Float

Compute the value of the threshold (in pixels), once the values of the anchors are known.

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Feb 16, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024